我使用ApacheAmbari 2.1.0创建了hadoop集群,其中包含3个数据节点。现在,当我尝试将另一个datanode添加到(现有集群)中时,它抛出一个错误
resource\u management.core.exceptions.fail:执行'/usr/bin/yum-d 0-e 0-y install'hadoop\u 2\u 3.*''返回1。没有可用于base的presto元数据
增量RPM将3.6 m更新减少到798 k(节省78%)
以下是我的web ui控制台日志:
回溯(最近一次呼叫):
datanode().execute()中的文件“/var/lib/ambari-agent/cache/common-services/hdfs/2.1.0.2.0/package/scripts/datanode.py”,第153行
文件“/usr/lib/python2.6/site packages/resource\u management/libraries/script/script.py”,第218行,在execute method(env)中
文件“/var/lib/ambari agent/cache/common services/hdfs/2.1.0.2.0/package/scripts/datanode.py”,第34行,在install self.install\u packages(env,params.exclude\u packages)中
文件“/usr/lib/python2.6/site packages/resource\u management/libraries/script/script.py”,第376行,在install\u packages(name)中
文件“/usr/lib/python2.6/site packages/resource\u management/core/base.py”,第157行,在init self.env.run()中
文件“/usr/lib/python2.6/site packages/resource\u management/core/environment.py”,第152行,in run self.run\u action(resource,action)
文件“/usr/lib/python2.6/site packages/resource\u management/core/environment.py”,第118行,in run\u action provider\u action()
文件“/usr/lib/python2.6/site packages/resource\u management/core/providers/package/init.py”,第45行,in action\u install self.install\u package(package\u name,self.resource.use\u repos,self.resource.skip\u repos)
文件“/usr/lib/python2.6/site packages/resource\u management/core/providers/package/yumrpm.py”,第49行,在install\u package shell.checked\u call(cmd,sudo=true,logoutput=self.get\u logoutput())
文件“/usr/lib/python2.6/site packages/resource\u management/core/shell.py”,第70行,inner result=function(命令,**kwargs)
文件“/usr/lib/python2.6/site packages/resource\u management/core/shell.py”,第92行,在checked\u call tries=tries,try\u sleep=try\u sleep中)
文件“/usr/lib/python2.6/site packages/resource\u management/core/shell.py”,第140行,在\u call\u wrapper result=\u call(command,**kwargs\u copy)中
文件“/usr/lib/python2.6/site packages/resource\u management/core/shell.py”,第291行,in\u call raise fail(err\u msg)
resource\u management.core.exceptions.fail:执行'/usr/bin/yum-d 0-e 0-y install'hadoop\u 2\u 3.*''返回1。没有可用于基本增量RPM的presto元数据将3.6 m更新减少到798 k(节省78%)
下载包时出错:
hadoop\ u 2\ u 3\ u 4\ u 0\ u 3485-yarn-proxyserver-2.7.1.2.3.4.0-3485.el6.x86\ u 64:[errno 256]没有更多镜像可供尝试。
1条答案
按热度按时间hpcdzsge1#
看起来yum和您的存储库有两个问题。
首先我看到的信息是:
没有可用于基本增量RPM的presto元数据将3.6 m更新减少到798 k(节省78%)
尝试在尝试添加为datanode的主机上运行以下命令以修复第一个问题:
然后查看是否可以成功执行此命令:
如果出现提示询问是否要安装(y/n),则说明安装成功,请选择no选项,然后从ambari重试adddatanode操作。如果出现错误或失败,请查看详细的输出以进一步解决问题。