使用yum安装cassandra datastax企业版:如何设置用户名&密码

时间:2016-04-12 14:38:11

标签: cassandra datastax datastax-enterprise

我正在尝试使用Amazon Linux OS在EC2群集上安装cassandra datastax企业版。我按照安装说明在这里安装yum: https://docs.datastax.com/en/datastax_enterprise/4.0/datastax_enterprise/install/installRHELdse.html

它要求我输入一个如下所示的正确网址,并在文件/etc/yum.repos.d/datastax.repo中包含我的用户名和密码:

baseurl=https://dsa_email_address:password@rpm.datastax.com/enterprise

现在说我的电子邮件地址是my@email.com,密码是我的密码(包括问号)。我试图将网址设置为:

https://my@email.com:my?password@rpm.datastax.com/enterprise

然后我运行yum update -y,它会生成以下错误消息:

[Errno 14] PYCURL ERROR 51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
Trying other mirror.

现在,如果我按照指示在我的电子邮件地址中将@转移到%40,即:

https://my%40email.com:my?password@rpm.datastax.com/enterprise

我收到错误:

[Errno 14] PYCURL ERROR 6 - "Could not resolve host: my%40email.com"
Trying other mirror.

我还尝试用?转义\?,它没有任何区别。我还仔细检查过我能用电子邮件和密码组合登录datastax网站。那么我应该如何设置我的电子邮件和密码来下载并安装在yum中呢?谢谢你的帮助!

1 个答案:

答案 0 :(得分:2)

好的,我刚刚找到了自己修复的方法。我需要使用""引用网址,并使用@转义%40。另外,我更改了密码以删除问号,因为?在网址中肯定不是一个友好的角色。所以现在网址就像:

baseurl="https://my%40email.com:mypassword@rpm.datastax.com/enterprise"