分享

Install, Start and Test ambari 出错

luwl 2017-7-20 16:00:48 发表于 异常错误 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 8 15522
stderr:
Failed to execute command:  /usr/sbin/hst activity-explorer setup root:root; Exit code: 127; stdout: ; stderr: /usr/sbin/hst:行334: install-activity-explorer.sh: 未找到命令
stdout:
2017-07-20 15:09:44,660 - Stack Feature Version Info: stack_version=2.6, version=None, current_cluster_version=None -> 2.6
2017-07-20 15:09:44,671 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
User Group mapping (user_group) is missing in the hostLevelParams
2017-07-20 15:09:44,673 - Group['hadoop'] {}
2017-07-20 15:09:44,674 - Group['users'] {}
2017-07-20 15:09:44,675 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-20 15:09:44,676 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-20 15:09:44,676 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-07-20 15:09:44,677 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-20 15:09:44,678 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-20 15:09:44,679 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-07-20 15:09:44,679 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-07-20 15:09:44,681 - Execute['/var/lib/ambari-agent/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-07-20 15:09:44,687 - Skipping Execute['/var/lib/ambari-agent/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-07-20 15:09:44,688 - Group['hdfs'] {}
2017-07-20 15:09:44,688 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': [u'hadoop', u'hdfs']}
2017-07-20 15:09:44,689 - FS Type:
2017-07-20 15:09:44,689 - Directory['/etc/hadoop'] {'mode': 0755}
2017-07-20 15:09:44,690 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2017-07-20 15:09:44,710 - Initializing 2 repositories
2017-07-20 15:09:44,711 - Repository['HDP-2.6'] {'base_url': 'http://192.168.100.101/hdp/HDP/centos7/', '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-07-20 15:09:44,720 - File['/etc/yum.repos.d/HDP.repo'] {'content': '[HDP-2.6]\nname=HDP-2.6\nbaseurl=http://192.168.100.101/hdp/HDP/centos7/\n\npath=/\nenabled=1\ngpgcheck=0'}
2017-07-20 15:09:44,721 - Repository['HDP-UTILS-1.1.0.21'] {'base_url': 'http://192.168.100.101/hdp', '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-07-20 15:09:44,724 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': '[HDP-UTILS-1.1.0.21]\nname=HDP-UTILS-1.1.0.21\nbaseurl=http://192.168.100.101/hdp\n\npath=/\nenabled=1\ngpgcheck=0'}
2017-07-20 15:09:44,725 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-07-20 15:09:44,834 - Skipping installation of existing package unzip
2017-07-20 15:09:44,834 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-07-20 15:09:44,845 - Skipping installation of existing package curl
2017-07-20 15:09:44,846 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-07-20 15:09:44,856 - Skipping installation of existing package hdp-select
installing using command: {sudo} rpm -qa | grep smartsense- || {sudo} yum -y install smartsense-hst || {sudo} rpm -i /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/files/rpm/*.rpm
Command:  rpm -qa | grep smartsense- ||  yum -y install smartsense-hst ||  rpm -i /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/files/rpm/*.rpm
Exit code: 0
Std Out: smartsense-hst-1.4.0.2.5.1.0-159.x86_64

Std Err: None
Deploying activity explorer
Command:  /usr/sbin/hst activity-explorer setup root:root
Exit code: 127
Std Out: None
Std Err: /usr/sbin/hst:行334: install-activity-explorer.sh: 未找到命令

Command failed after 1 tries

install-activity-explorer.sh是一个文件吗?


已有(8)人评论

跳转到指定楼层
langke93 发表于 2017-7-20 18:20:44
这是shell命令封装的,安装的用户是否为root
回复

使用道具 举报

luwl 发表于 2017-7-21 09:09:39
安装的用户是root
回复

使用道具 举报

nextuser 发表于 2017-7-21 09:33:02
luwl 发表于 2017-7-21 09:09
安装的用户是root

install-activity-explorer.sh
找一下是否有这个文件

/usr/sbin/hst:行334: install-activity-explorer.sh: 未找到命令
然后看下hst行334,具体是什么情况
回复

使用道具 举报

luwl 发表于 2017-7-21 09:41:50
没有找到这个文件
回复

使用道具 举报

luwl 发表于 2017-7-21 09:47:52
/usr/sbin/hst 334行
if [ "$2" == "start" ]; then
          activity_explorer_start_cmd
        elif [ "$2" == "setup" ]; then
          install-activity-explorer.sh $3 $4 $5 $6
        else
          $PYTHON $ACTIVITY_EXPLORER_PY_SCRIPT $@
        fi
回复

使用道具 举报

hyj 发表于 2017-7-21 12:27:23
luwl 发表于 2017-7-21 09:47
/usr/sbin/hst 334行
if [ "$2" == "start" ]; then
          activity_explorer_start_cmd

shell里面是有的,再看看目录中是否有
回复

使用道具 举报

luwl 发表于 2017-7-21 13:32:03
我find -name 没有找到
回复

使用道具 举报

大洋子13148 发表于 2017-9-1 13:16:36
这位同鞋?解决了嘛?
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条