[jira] [Commented] (CASSANDRA-7524) cqlsh fails when version number parts are not int
[ https://issues.apache.org/jira/browse/CASSANDRA-7524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14084376#comment-14084376 ] Tuukka Mustonen commented on CASSANDRA-7524: Would it be possible to fix this already for the next RC release? The problem appears with RC-releases due to version identifier containing non-numeric parts. After 2.1.0, it's sort of a "too late"... > cqlsh fails when version number parts are not int > - > > Key: CASSANDRA-7524 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7524 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Alexander Bulaev >Assignee: Mikhail Stepura >Priority: Trivial > Labels: cqlsh > Fix For: 2.1.1 > > Attachments: CASSANDRA-2.1-7524.patch > > > {code} > alexbool@gibson ~> cqlsh > Traceback (most recent call last): > File "/usr/bin/cqlsh", line 1894, in > main(*read_options(sys.argv[1:], os.environ)) > File "/usr/bin/cqlsh", line 1877, in main > single_statement=options.execute) > File "/usr/bin/cqlsh", line 496, in __init__ > self.get_connection_versions() > File "/usr/bin/cqlsh", line 595, in get_connection_versions > self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', > 1)[0].split('.')[:3])) > ValueError: invalid literal for int() with base 10: '0~rc2' > {code} > I used cassandra 2.1-rc2 debs from Apache repository -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CASSANDRA-7524) cqlsh fails when version number parts are not int
[ https://issues.apache.org/jira/browse/CASSANDRA-7524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14083654#comment-14083654 ] Jonathan Ellis commented on CASSANDRA-7524: --- +1 > cqlsh fails when version number parts are not int > - > > Key: CASSANDRA-7524 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7524 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Alexander Bulaev >Assignee: Mikhail Stepura >Priority: Trivial > Labels: cqlsh > Fix For: 2.1.1 > > Attachments: CASSANDRA-2.1-7524.patch > > > {code} > alexbool@gibson ~> cqlsh > Traceback (most recent call last): > File "/usr/bin/cqlsh", line 1894, in > main(*read_options(sys.argv[1:], os.environ)) > File "/usr/bin/cqlsh", line 1877, in main > single_statement=options.execute) > File "/usr/bin/cqlsh", line 496, in __init__ > self.get_connection_versions() > File "/usr/bin/cqlsh", line 595, in get_connection_versions > self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', > 1)[0].split('.')[:3])) > ValueError: invalid literal for int() with base 10: '0~rc2' > {code} > I used cassandra 2.1-rc2 debs from Apache repository -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CASSANDRA-7524) cqlsh fails when version number parts are not int
[ https://issues.apache.org/jira/browse/CASSANDRA-7524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14057419#comment-14057419 ] Brandon Williams commented on CASSANDRA-7524: - [~tuukka.mustonen] I fixed that in 420c68511, but it's not related to this issue. > cqlsh fails when version number parts are not int > - > > Key: CASSANDRA-7524 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7524 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Alexander Bulaev >Assignee: Mikhail Stepura >Priority: Trivial > Labels: cqlsh > Fix For: 2.1.0 > > > {code} > alexbool@gibson ~> cqlsh > Traceback (most recent call last): > File "/usr/bin/cqlsh", line 1894, in > main(*read_options(sys.argv[1:], os.environ)) > File "/usr/bin/cqlsh", line 1877, in main > single_statement=options.execute) > File "/usr/bin/cqlsh", line 496, in __init__ > self.get_connection_versions() > File "/usr/bin/cqlsh", line 595, in get_connection_versions > self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', > 1)[0].split('.')[:3])) > ValueError: invalid literal for int() with base 10: '0~rc2' > {code} > I used cassandra 2.1-rc2 debs from Apache repository -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CASSANDRA-7524) cqlsh fails when version number parts are not int
[ https://issues.apache.org/jira/browse/CASSANDRA-7524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14057216#comment-14057216 ] Tuukka Mustonen commented on CASSANDRA-7524: On debian package at least, {{nodetool}} does not work either: {noformat} $ nodetool Error opening zip file or JAR manifest missing : /usr/share/cassandra/lib/jamm-0.2.5.jar Error occurred during initialization of VM agent library failed to init: instrument {noformat} One has to adjust {{/usr/share/cassandra/cassandra.in.sh}} and update line: {code} JAVA_AGENT="$JAVA_AGENT -javaagent:$CASSANDRA_HOME/lib/jamm-0.2.5.jar" {code} to point to the correct version (jamm 0.2.6). Part of packaging / similar issue I'm just reporting as a comment here. > cqlsh fails when version number parts are not int > - > > Key: CASSANDRA-7524 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7524 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Alexander Bulaev >Assignee: Mikhail Stepura >Priority: Trivial > Labels: cqlsh > Fix For: 2.1.0 > > > {code} > alexbool@gibson ~> cqlsh > Traceback (most recent call last): > File "/usr/bin/cqlsh", line 1894, in > main(*read_options(sys.argv[1:], os.environ)) > File "/usr/bin/cqlsh", line 1877, in main > single_statement=options.execute) > File "/usr/bin/cqlsh", line 496, in __init__ > self.get_connection_versions() > File "/usr/bin/cqlsh", line 595, in get_connection_versions > self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', > 1)[0].split('.')[:3])) > ValueError: invalid literal for int() with base 10: '0~rc2' > {code} > I used cassandra 2.1-rc2 debs from Apache repository -- This message was sent by Atlassian JIRA (v6.2#6252)