yaw <yawyway <at> gmail.com> writes:

> 
> Hi all, connecting to a cluster with cassandra-cli and trying a 
> describe command,
> I obtain a  "missing K_TABLE" message

<snip>

> Is this a real issue?

I would chock this one up to a mix of user error and cryptic 
CLI message.

describe command is describe keyspace <keyspaceName>

------
[defa...@unknown] describe keyspace alerts
Keyspace: alerts

Column Family Name: byLocation
Column Family Type: Super
Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
flush period: null minutes
------

The CLI seems to be nice enough to guess that what you want
is describe keyspace.  If the CLI responded with something 
informative, users would have a d'oh moment and type it right 
next time.

------
[defa...@unknown] describe alerts
line 1:9 missing K_TABLE at 'alerts'
Keyspace: alerts

Column Family Name: byLocation
Column Family Type: Super
Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
flush period: null minutes
------

I'm guessing that as describe <keyspaceName> gives a message
that the developers plan to describe other things in the future.
At which point, it'll become a worst bet that the user intends 
to describe keyspace as more things can be described.


Reply via email to