启用Cassandra身份验证时,核心RELOAD / CREATE等操作失败并显示以下消息:
WARN [SolrDistributedRequestTemplate thread-0] 2014-10-22 02:09:26,355 SolrCoreResourceManager.java(第310行)在节点上创建核心myks.mycf时出错:/111.222.333.444 WARN [SolrDistributedRequestTemplate thread-0] 2014-10-22 02:09:26,357 SolrCoreResourceManager.java(第310行)在节点上创建核心myks.mycf时出错:/222.333.444.555 WARN [SolrDistributedRequestTemplate thread-0] 2014-10-22 02:09:26,360 SolrCoreResourceManager.java(第310行)在节点上创建核心myks.mycf时出错:/333.444.555.666 WARN [SolrDistributedRequestTemplate thread-0] 2014-10-22 02:09:26,365 SolrCoreResourceManager.java(第310行)在节点上创建核心myks.mycf时出错:/444.555.666.777 WARN [SolrDistributedRequestTemplate thread-0] 2014-10-22 02:09:26,368 SolrCoreResourceManager.java(第310行)在节点上创建核心myks.mycf时出错:/555.666.777.888
禁用身份验证时,相同的操作会成功。这是一个已知的错误吗?
可能与this
有关修改
我的用户和权限:
[cqlsh 4.1.1 | Cassandra 2.0.10.71 | DSE 4.5.2 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
Use HELP for help.
cqlsh> select * from system_auth.users;
name | super
--------------------------------------+-------
node682507b669a04443b3af75916a2ccd7d | False
nodea41d1fc13e784e41ba0a925d95f26953 | False
nodeba7fb6409207469db924db64841e9e9e | False
node69d6ac2ff17348ca80ab00921c455440 | False
cassandra | False
node98c907bc0f2b4225b3823616627ed309 | False
node61a9d13323504e7b019c97292a1cdb6b | False
dse_admin | True
失败的CREATE / RELOAD命令如下所示:
curl -u dse_admin:password "http://111.222.333.444:8983/solr/admin/cores?action=CREATE&name=myks.mycf"
system_auth
键空间的定义:
cqlsh> describe keyspace system_auth;
CREATE KEYSPACE system_auth WITH replication = {
'class': 'NetworkTopologyStrategy',
'DC2': '3'
};
myks
键空间的定义:
cqlsh> describe keyspace myks;
CREATE KEYSPACE myks WITH replication = {
'class': 'NetworkTopologyStrategy',
'DC2': '2'
};