【发布时间】:2017-08-11 18:00:30
【问题描述】:
我的分区键是 id(int) 和 name(text)。 下面的命令可以正常工作,直到名称(文本)中没有空格。 nodetool getendpoints test testtable2 1:aaa;
如果我正在使用 nodetool getendpoints test testtable2 3:aac cc; 它会引发错误:nodetool: getendpoints requires keyspace, table and partition key arguments 请参阅“节点工具帮助”或“节点工具帮助”。
我通过执行获得令牌 SELECT id,name,token(id,name) FROM test.testtable2 where name='aac cc'AND id=3; 并试图搜索 nodetool getendpoints test testtable2 -7072928299163215694; 错误:对于输入字符串:“-7072928299163215694” - 堆栈跟踪 - java.lang.NumberFormatException:对于输入字符串:“-7072928299163215694”
如何搜索分区键(名称)是否有空间?
【问题讨论】:
标签: cassandra datastax cql3 distributed-database