Cassandra CLI: specify name of primary key

cassandra, cql

Solution

The attribute you're looking for is `key_alias`. Unfortunately, you can't currently set it through cassandra-cli, only cqlsh. I've opened CASSANDRA-4158 to fix this.

Problem

Is it possible to specify a name of primary key via cassandra CLI, like via CQL: ``` create columnfamily test ( my_key_name varchar primary key, value varchar); ``` By default, cassandra cli creates primary key with name 'KEY'

Original source