简体   繁体   English

通过Cassandra中的用户名和密码进行身份验证

[英]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. 不幸的是,当我修改authenticatorauthorizer参数时,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.

相关问题 为Cassandra数据库设置用户名和密码 - Setting Username and Password For Cassandra database 如何找到cassandra的用户名​​密码 - How to Find Username Password of cassandra C#到Cassandra服务的用户名和密码 - C# to Cassandra service with username and password 可以在cassandra的连接URL中传递用户名和密码吗 - Can username and password be passed in connection url for cassandra 如何在python中将用户名和密码传递给cassandra - How to pass along username and password to cassandra in python 访问cassandra没有硬编码的用户名密码 - Accessing cassandra without hardcoded username password Phantom Scala Cassandra连接器:如何指定端口,用户名,节点密码 - Phantom Scala Cassandra connector: how to specify port, username, password of nodes 我应该如何使用 python 脚本将用户名和密码传递给 Cassandra - How should i pass username and password to Cassandra using python script 我应该为 Amazon Keyspaces(托管 Cassandra)使用哪个用户名和密码? - Which username and password should I use for Amazon Keyspaces (managed Cassandra)? 如何安装Cassandra以及如何为Netbeans设置Cassandra用户名和密码及其正确的连接器 - how to install Cassandra and how to set Cassandra username and password & its proper connector for netbeans
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM