[英]Authentication via username and password in Cassandra
In order to create a DBLink from Oracle to Cassandra, I am trying to have a connection in Cassandra via username and password. 为了创建从Oracle到Cassandra的DBLink,我试图通过用户名和密码在Cassandra中建立连接。 By default, the installation of Cassandra does not ask for username.
默认情况下,Cassandra的安装不询问用户名。 Searching here, I found a topic where it is described the steps for that.
在这里搜索时,我找到了一个描述该步骤的主题 。 unfortunately, when I modify the
authenticator
and authorizer
parameters, the Cassandra CQL Shell opens and immediately closes. 不幸的是,当我修改
authenticator
和authorizer
参数时,Cassandra CQL Shell将打开并立即关闭。
Cassandra Installer version: datastax-ddc-64bit-3.9.0.msi Cassandra安装程序版本:datastax-ddc-64bit-3.9.0.msi
OS: Windows 7 作业系统:Windows 7
Can someone tell me how to solve this, please? 有人可以告诉我如何解决吗?
Thank you, 谢谢,
To Solve CQL Shell error edit cqlshrc file. 解决CQL Shell错误,编辑cqlshrc文件。
Default location in windows is C:\\Users\\USER\\.cassandra
where USER is windows username. Windows中的默认位置是
C:\\Users\\USER\\.cassandra
,其中USER是Windows用户名。
In cqlshrc file edit following: 在cqlshrc文件中,编辑以下内容:
[authentication]
;; If Cassandra has auth enabled, fill out these options
username = cassandra
password = cassandra
Note cassandra is default username & password which is also a superuser. 注意cassandra是默认的用户名和密码,也是超级用户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.