【问题标题】:Install cassandra datastax enterprise version with yum: how to set username & password用 yum 安装 cassandra datastax 企业版:如何设置用户名和密码
【发布时间】:2016-04-12 23:06:12
【问题描述】:

我正在尝试在具有 Amazon Linux 操作系统的 EC2 集群上安装 cassandra datastax 企业版。我正在按照此处的安装说明通过 yum 安装它: https://docs.datastax.com/en/datastax_enterprise/4.0/datastax_enterprise/install/installRHELdse.html

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

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

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

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 中下载并安装它呢?感谢您的帮助!

【问题讨论】:

    标签: cassandra datastax datastax-enterprise


    【解决方案1】:

    好的,我刚刚找到了自己解决问题的方法。我需要用"" 引用url,并用%40 转义@。另外,我更改了密码以删除问号,因为?肯定不是 url 中的友好字符。所以现在的网址是这样的:

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

    【讨论】:

    • 谢谢。请注意其他人...文档状态仅替换电子邮件地址中的@,我也在主机部分这样做,Doh!
    猜你喜欢
    • 2020-08-21
    • 2015-11-21
    • 1970-01-01
    • 1970-01-01
    • 2016-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-05
    相关资源
    最近更新 更多