Docker Cloudera存储库上的Ambari现在需要用户名和密码

问题描述 投票:1回答:1

我有一个脚本,该脚本会自动使用docker创建Ambari集群。在文件中:https://github.com/ortizfabio/caochong/blob/master/from-ambari/Dockerfile有一行可以下载Ambari。在Cloudera接管之前,这一直有效。我正在尝试更改从以下位置下载Ambari的命令:

RUN wget -O /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.6.0.0/ambari.repo

至:

RUN wget --http-user=email_logon --http-password=my_password  -O /etc/yum.repos.d/ambari.repo https://archive.cloudera.com/p/ambari/centos7/2.x/updates/2.7.5.0/ambari.repo

但是我收到错误:

Connecting to archive.cloudera.com (archive.cloudera.com)|151.101.208.167|:443... connected.
HTTP request sent, awaiting response... 401 Authentication required
Authentication selected: Basic realm=Secured
Connecting to archive.cloudera.com (archive.cloudera.com)|151.101.208.167|:443... connected.
HTTP request sent, awaiting response... 403 Authentication failed
2020-05-29 00:35:40 ERROR 403: Authentication failed.
wget cloudera ambari
1个回答
0
投票

@ Fabio您的选择是:

  1. 联系Cloudera,成为客户,并获得具有使用其付费版本的授权用户名和密码的企业许可证
  2. 使用最新的免费版本2.7.4
  3. 从源代码构建

如果您要使用HDP,建议将#2作为最简单的选择:

wget -O /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.4.0/ambari.repo

如果您确实想要2.7.5,则可以从源代码自己构建,或者我创建了一些无需HDP即可使用的RPMS:

wget -O /etc/yum.repos.d/mosga.repo https://makeopensourcegreatagain.com/rpms/mosga.repo
yum install ambari-server ambari-agent -y
ambari-server setup -s

我目前仍在研究下一个部分,我的RPMS将安装带有通用HDP组件和我们在DFHz处使用的一些其他第三方组件的DDP(演示数据平台)。

© www.soinside.com 2019 - 2024. All rights reserved.