2014-11-23 88 views
1

我是Cassandra中的新成员。我正在使用Datastax社区版,并且只使用Windows 7中的单个节点。尝试更改我的身份验证,请在Cassandra.yaml中将身份验证器值AllowAllAuthenticator设置为PasswordAuthenticator。在设置之后,它不让我运行我的Cassandra CQL Shell。在Cassandra.yaml中设置authenticator:PasswordAuthenticator后,Cassandra CQL Shell不运行

Q1。为什么发生这种情况? Q2302。如何克服它?

回答

1

你是如何访问cqlsh的?如果您激活了密码认证器,那么您将需要使用用户名和密码标志指定默认的Cassandra超级用户。

的Linux:

./cqlsh -u cassandra -p cassandra 

在Windows中,我要去猜测,它是这样的:

cqlsh -u cassandra -p cassandra 

注意,一旦你的,你要创建自己的超级用户和disable the default cassandra account, as described here

“我从开始 - > Datastax社区版 - >卡桑德拉CQL壳牌访问cqlsh”我不知道的是,Windows版本现在有一个快捷方式cqlsh。尝试修改该快捷方式的目标(as shown here),然后将-u cassandra -p cassandra添加到最后。我能得到这个通过安装和修改我的快捷方式的“目标”属性,这个工作:

​​

基本上,把-u-p标志外的双引号,它应该工作。

+0

以下是我遵循的步骤。 1.将cassandra.yaml中的验证器从AllowAllAuthenticator更改为PasswordAuthenticator。 2.重新启动社区服务器,Opscenter代理,Opscenter社区的服务3. START-> Cassandra CQL Shell(未打开)4.再次将身份验证器更改为AllowAllAuthenticator 5.重复步骤2,3(此时它已打开,我可以看到system_auth密钥空间)。 – 2014-11-24 04:53:13

+0

我从START-> Datastax Community Edition-> Cassandra CQL Shell – 2014-11-24 05:05:25

+0

访问cqlsh我按照您的建议进行了更改,但仍然CQL shell无法正常工作。 – 2014-11-24 08:08:15