I configured source code of Cassandra 2.0.3 in eclipse. JDK:jdk1.7.0_45 Win 7-32 bits, python 2.7.3 python but cqlsh just doesnt start. Please help me what can be the possible problem?
Asked
Active
Viewed 821 times
0
-
how you are trying to start cassandra? what errors are you getting? give some more details. – Helping Hand.. Mar 06 '14 at 05:35
-
And what is the error you got? – Mikhail Stepura Mar 06 '14 at 05:47
-
If I start cassandra from the bat file.everything runs perfectly fine including cqlsh and all cql commands..but when I run server from my configured source code (eclipse)..cli works fine but cqlsh throws error which is: ValueError: invalid literal for int() with base10:'Unknown' – user1540371 Mar 06 '14 at 06:46
1 Answers
0
ValueError: invalid literal for int() with base10:'Unknown'
It happens when you run Cassandra from sources, and version.properties
file is missing. Just execute ant generate-eclipse-files
in the cassandra folder, that will generate the file.

Mikhail Stepura
- 3,374
- 20
- 16
-
While searching for solutions I got one which says to remove the line in cqlsh file, acquiring version i-e: self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', 1)[0].split('.')[:3])) It did the trick.. Whats you suggestion? Should I stick to it or revert back and generate version.properties file? – user1540371 Mar 07 '14 at 05:03
-
Either way will work. Though my personal preference would be using of a proper version file – Mikhail Stepura Mar 07 '14 at 05:06