从 Ambari 控制台向正在运行的集群添加一个新的 DataNode

我正在尝试从 Ambari 控制台向正在运行的集群添加一个新的 DataNode。 主机>操作>添加新主机。

提供datanode的FQDN>SSH私钥>用户root>22>注册并确认。 以下日志失败。请帮助

========================== 正在创建目标目录...

命令开始时间 2021-04-21 07:29:50 chmod: 无法访问 ‘/var/lib/ambari-agent/data’: 没有那个文件或目录

与 IP.compute.internal 的连接已关闭。 SSH 命令执行完毕 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:51

========================== 正在复制 ambari sudo 脚本...

命令开始时间 2021-04-21 07:29:51

scp /var/lib/ambari-server/ambari-sudo.sh 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:51

========================== 正在复制常用函数脚本...

命令开始时间 2021-04-21 07:29:51

scp /usr/lib/ambari-server/lib/ambari_commons 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:52

========================== 正在复制 create-python-wrap 脚本...

命令开始时间 2021-04-21 07:29:52

scp /var/lib/ambari-server/create-python-wrap.sh 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:52

========================== 正在复制操作系统类型检查脚本...

命令开始时间 2021-04-21 07:29:52

scp /usr/lib/ambari-server/lib/ambari_server/os_check_type.py 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:53

========================== 运行 create-python-wrap 脚本...

命令开始时间 2021-04-21 07:29:53

与 IP.compute.internal 的连接已关闭。 SSH 命令执行完毕 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:53

========================== 正在运行操作系统类型检查...

命令开始时间 2021-04-21 07:29:53 集群主/集群操作系统系列是redhat7,本地/当前操作系统系列是redhat7

与 IP.compute.internal 的连接已关闭。 SSH 命令执行完毕 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:53

========================== 在远程主机上检查“sudo”包...

命令开始时间 2021-04-21 07:29:53

与 IP.compute.internal 的连接已关闭。 SSH 命令执行完毕 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:53

========================== 正在将 repo 文件复制到“tmp”文件夹...

命令开始时间 2021-04-21 07:29:53

scp /etc/yum.repos.d/ambari.repo 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:54

========================== 正在将文件移动到存储库目录...

命令开始时间 2021-04-21 07:29:54

与 IP.compute.internal 的连接已关闭。 SSH 命令执行完毕 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:54

========================== 更改 ambari.repo 的权限...

命令开始时间 2021-04-21 07:29:54

与 IP.compute.internal 的连接已关闭。 SSH 命令执行完毕 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:54

========================== 正在复制安装脚本文件...

命令开始时间 2021-04-21 07:29:54

scp /usr/lib/ambari-server/lib/ambari_server/setupAgent.py 主机=IP.compute.internal,退出代码=0 命令结束时间 2021-04-21 07:29:55

========================== 正在运行设置代理脚本...

命令开始时间 2021-04-21 07:29:55 http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/repodata/repomd.xml:[Errno 14] HTTP 错误 403 - 禁止 尝试其他镜像。 要解决此问题,请参阅以下 wiki 文章

https://wiki.centos.org/yum-errors

如果以上文章不能帮助解决此问题,请使用 https://bugs.centos.org/

其中一个配置的存储库失败(ambari 版本 - ambari-2.7.0.0), yum 没有足够的缓存数据来继续。此时唯一 yum 可以做的安全事情就是失败。有几种方法可以“修复”这个问题:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository,to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=ambari-2.7.0.0 ...

 4. Disable the repository permanently,so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable ambari-2.7.0.0
    or
        subscription-manager repos --disable=ambari-2.7.0.0

 5. Configure the failing repository to be skipped,if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though,this is often a nice
    compromise:

        yum-config-manager --save --setopt=ambari-2.7.0.0.skip_if_unavailable=true

失败:来自 ambari-2.7.0.0 的 repodata/repomd.xml:[Errno 256] 没有更多的镜像可以尝试。 http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/repodata/repomd.xml:[Errno 14] HTTP 错误 403 - 禁止 http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/repodata/repomd.xml:[Errno 14] HTTP 错误 403 - 禁止 尝试其他镜像。 要解决此问题,请参阅以下 wiki 文章

https://wiki.centos.org/yum-errors

如果以上文章不能帮助解决此问题,请使用 https://bugs.centos.org/

其中一个配置的存储库失败(ambari 版本 - ambari-2.7.0.0), yum 没有足够的缓存数据来继续。此时唯一 yum 可以做的安全事情就是失败。有几种方法可以“修复”这个问题:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository,this is often a nice
    compromise:

        yum-config-manager --save --setopt=ambari-2.7.0.0.skip_if_unavailable=true

失败:来自 ambari-2.7.0.0 的 repodata/repomd.xml:[Errno 256] 没有更多的镜像可以尝试。 http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/repodata/repomd.xml:[Errno 14] HTTP 错误 403 - 禁止 所需的 ambari-agent 包版本 (2.7.0.0) 不可用。

与 IP.compute.internal 的连接已关闭。 SSH 命令执行完毕 主机=IP.compute.internal,退出代码=1 命令结束时间 2021-04-21 07:29:59

错误:主机 IP.compute.internal 的引导程序失败,因为前一个操作以非零退出代码 (1) 完成 错误消息:与 IP.compute.internal 的连接已关闭。

标准输出:http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/repodata/repomd.xml:[Errno 14] HTTP 错误 403 - 禁止 尝试其他镜像。 要解决此问题,请参阅以下 wiki 文章

https://wiki.centos.org/yum-errors

如果以上文章不能帮助解决此问题,请使用 https://bugs.centos.org/

其中一个配置的存储库失败(ambari 版本 - ambari-2.7.0.0), yum 没有足够的缓存数据来继续。此时唯一 yum 可以做的安全事情就是失败。有几种方法可以“修复”这个问题:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository,this is often a nice
    compromise:

        yum-config-manager --save --setopt=ambari-2.7.0.0.skip_if_unavailable=true

失败:来自 ambari-2.7.0.0 的 repodata/repomd.xml:[Errno 256] 没有更多的镜像可以尝试。 http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/repodata/repomd.xml:[Errno 14] HTTP 错误 403 - 禁止 http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/repodata/repomd.xml:[Errno 14] HTTP 错误 403 - 禁止 尝试其他镜像。 要解决此问题,请参阅以下 wiki 文章

https://wiki.centos.org/yum-errors

如果以上文章不能帮助解决此问题,请使用 https://bugs.centos.org/

其中一个配置的存储库失败(ambari 版本 - ambari-2.7.0.0), yum 没有足够的缓存数据来继续。此时唯一 yum 可以做的安全事情就是失败。有几种方法可以“解决”这个问题:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository,this is often a nice
    compromise:

        yum-config-manager --save --setopt=ambari-2.7.0.0.skip_if_unavailable=true

失败:来自 ambari-2.7.0.0 的 repodata/repomd.xml:[Errno 256] 没有更多的镜像可以尝试。 http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/repodata/repomd.xml:[Errno 14] HTTP 错误 403 - 禁止 所需的 ambari-agent 包版本 (2.7.0.0) 不可用。

与 IP.compute.internal 的连接已关闭。

YesKing_new 回答:从 Ambari 控制台向正在运行的集群添加一个新的 DataNode

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/545705.html

大家都在问