分享

ambari 安装flume报错怎么解决

welcome 发表于 2017-11-1 15:51:58 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 2 7209
本帖最后由 welcome 于 2017-11-1 15:55 编辑


[mw_shl_code=java,true]标准错误:   /var/lib/ambari-agent/data/errors-1444.txt

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py", line 129, in <module>
    FlumeHandler().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
    return fn(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py", line 44, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 376, in install_packages
    Package(name)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 157, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 45, in action_install
    self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 49, in install_package
    shell.checked_call(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install 'flume_2_3_*'' returned 1. Delta RPMs disabled because /usr/bin/applydeltarpm not installed.


Error downloading packages:
  flume_2_3_0_0_2557-agent-1.5.2.2.3.0.0-2557.el6.noarch: [Errno 256] No more mirrors to try.
  flume_2_3_0_0_2557-1.5.2.2.3.0.0-2557.el6.noarch: [Errno 256] No more mirrors to try.

标准输出:   /var/lib/ambari-agent/data/output-1444.txt

2017-11-01 23:14:51,090 - Group['hadoop'] {'ignore_failures': False}
2017-11-01 23:14:51,092 - Group['users'] {'ignore_failures': False}
2017-11-01 23:14:51,093 - User['hive'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,094 - User['mahout'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,095 - User['zookeeper'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,096 - User['oozie'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2017-11-01 23:14:51,097 - User['ambari-qa'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2017-11-01 23:14:51,098 - User['flume'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,099 - User['tez'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2017-11-01 23:14:51,101 - User['hdfs'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,103 - User['yarn'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,104 - User['hcat'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,105 - User['mapred'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,106 - User['hbase'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2017-11-01 23:14:51,107 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-11-01 23:14:51,109 - Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2017-11-01 23:14:51,120 - Skipping Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] due to not_if
2017-11-01 23:14:51,121 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'recursive': True, 'mode': 0775, 'cd_access': 'a'}
2017-11-01 23:14:51,122 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-11-01 23:14:51,124 - Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2017-11-01 23:14:51,136 - Skipping Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to not_if
2017-11-01 23:14:51,137 - Group['hdfs'] {'ignore_failures': False}
2017-11-01 23:14:51,138 - User['hdfs'] {'ignore_failures': False, 'groups': [u'hadoop', u'hdfs']}
2017-11-01 23:14:51,139 - Directory['/etc/hadoop'] {'mode': 0755}
2017-11-01 23:14:51,165 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2017-11-01 23:14:51,185 - Repository['HDP-2.3'] {'base_url': 'http://192.168.1.180/HDP/centos7/2.x/updates/2.3.0.0', 'action': ['create'], 'components': [u'HDP', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP', 'mirror_list': None}
2017-11-01 23:14:51,199 - File['/etc/yum.repos.d/HDP.repo'] {'content': InlineTemplate(...)}
2017-11-01 23:14:51,201 - Repository['HDP-UTILS-1.1.0.20'] {'base_url': 'http://192.168.1.180/HDP-UTILS-1.1.0.20/repos/centos7', 'action': ['create'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP-UTILS', 'mirror_list': None}
2017-11-01 23:14:51,208 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': InlineTemplate(...)}
2017-11-01 23:14:51,209 - Package['unzip'] {}
2017-11-01 23:14:51,376 - Skipping installation of existing package unzip
2017-11-01 23:14:51,377 - Package['curl'] {}
2017-11-01 23:14:51,394 - Skipping installation of existing package curl
2017-11-01 23:14:51,394 - Package['hdp-select'] {}
2017-11-01 23:14:51,410 - Skipping installation of existing package hdp-select
2017-11-01 23:14:51,715 - Package['flume_2_3_*'] {}
2017-11-01 23:14:51,885 - Installing package flume_2_3_* ('/usr/bin/yum -d 0 -e 0 -y install 'flume_2_3_*'')[/mw_shl_code]

怎么卸载 不会用啊 有了解的吗

怎么卸载 不会用啊 有了解的吗

已有(2)人评论

跳转到指定楼层
nextuser 发表于 2017-11-2 08:20:54
不止flume报错,好像都报错了。原因是因为找不到mirrors
Error downloading packages:
  flume_2_3_0_0_2557-agent-1.5.2.2.3.0.0-2557.el6.noarch: [Errno 256] No more mirrors to try.
  flume_2_3_0_0_2557-1.5.2.2.3.0.0-2557.el6.noarch: [Errno 256] No more mirrors to try.

回复

使用道具 举报

welcome 发表于 2017-11-2 11:26:10
nextuser 发表于 2017-11-2 08:20
不止flume报错,好像都报错了。原因是因为找不到mirrors
Error downloading packages:
  flume_2_3_0_0_ ...

这个应该是先下载flume文件 由ambari导向安装? 还是可以直接用ambari安装?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条