cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafał Furmański (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8012) cqlsh "DESCRIBE KEYSPACES;" returns empty after upgrade
Date Wed, 12 Nov 2014 09:20:35 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-8012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14207860#comment-14207860
] 

Rafał Furmański commented on CASSANDRA-8012:
--------------------------------------------

I have exact same issue in cassandra v. 2.1.1

{code}
root@db1:~# cqlsh 10.210.3.221 --debug
Using CQL driver: <module 'cassandra' from '/usr/share/cassandra/lib/cassandra-driver-internal-only-2.1.1.post.zip/cassandra-driver-2.1.1.post/cassandra/__init__.py'>
Connected to Production Cluster at 10.210.3.221:9042.
[cqlsh 5.0.1 | Cassandra 2.1.1 | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh> DESCRIBE keyspaces;

<empty>

cqlsh> DESCRIBE keyspace sync;

Traceback (most recent call last):
  File "/usr/bin/cqlsh", line 861, in onecmd
    self.handle_statement(st, statementtext)
  File "/usr/bin/cqlsh", line 899, in handle_statement
    return custom_handler(parsed)
  File "/usr/bin/cqlsh", line 1265, in do_describe
    self.describe_keyspace(ksname)
  File "/usr/bin/cqlsh", line 1137, in describe_keyspace
    self.print_recreate_keyspace(self.get_keyspace_meta(ksname), sys.stdout)
  File "/usr/bin/cqlsh", line 699, in get_keyspace_meta
    raise KeyspaceNotFound('Keyspace %r not found.' % ksname)
KeyspaceNotFound: Keyspace 'sync' not found.
cqlsh> use sync;
cqlsh:sync> 
{code}

Any ideas how to fix this? Attaching cluster info:

{code}
root@db1:~# nodetool describecluster
Cluster Information:
	Name: Production Cluster
	Snitch: org.apache.cassandra.locator.DynamicEndpointSnitch
	Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
	Schema versions:
		f8040381-4d5b-38da-9eda-5fd96474694a: [10.210.3.160, 10.210.3.224, 10.210.3.221, 10.195.15.163,
10.195.15.162]
{code}

> cqlsh "DESCRIBE KEYSPACES;" returns empty after upgrade
> -------------------------------------------------------
>
>                 Key: CASSANDRA-8012
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8012
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: cassandra 2.1.0 
>            Reporter: Shawn Zhou
>            Assignee: Tyler Hobbs
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 2.1.3
>
>
> after upgrade from 2.0.7 to 2.1.0
> run cqlsh  "DESCRIBE KEYSPACES;" returns empty result;
> query individual table does return data;
> See below:
> {noformat}
> [root@dc1-stg-cassandra-08 cassandra]# cqlsh dc1-stg-cassandra-08.dc01.revsci.net -k
as_user_segment
> Connected to Stage Cluster at dc1-stg-cassandra-08.dc01.revsci.net:9042.
> [cqlsh 5.0.1 | Cassandra 2.1.0 | CQL spec 3.2.0 | Native protocol v3]
> Use HELP for help.
> cqlsh:as_user_segment> DESCRIBE KEYSPACES;
> <empty>
> cqlsh:as_user_segment>  select * from user_segments_blob where id = '8e6090087fc1a7591a99dc4cb744ac43';
>  id                               | segments
> ----------------------------------+------------------------------------------------------------------------------------
>  8e6090087fc1a7591a99dc4cb744ac43 | 0x94160000b0150000911d00003b0e0000211a0000ee22000072160000ab1c0000df0f000042040000
> (1 rows)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message