Support Questions
Find answers, ask questions, and share your expertise

I am trying to install ambari server, i have choosen services, assigned them to systems. but for activity analyzer it is giving error. please find below details of stderr and stdout.

stderr: /var/lib/ambari-agent/data/errors-836.txt
Failed to execute command:  /usr/sbin/hst activity-analyzer setup root:root '/etc/rc.d/init.d'; Exit code: 127; stdout: ; stderr: /usr/sbin/hst: line 322: install-activity-analyzer.sh: command not found
stdout: /var/lib/ambari-agent/data/output-836.txt
2017-05-30 13:47:55,937 - Stack Feature Version Info: stack_version=2.6, version=None, current_cluster_version=None -> 2.6
2017-05-30 13:47:55,937 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
User Group mapping (user_group) is missing in the hostLevelParams
2017-05-30 13:47:55,938 - Group['livy'] {}
2017-05-30 13:47:55,939 - Group['spark'] {}
2017-05-30 13:47:55,939 - Group['hadoop'] {}
2017-05-30 13:47:55,939 - Group['users'] {}
2017-05-30 13:47:55,939 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,939 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,940 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,940 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,940 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']}
2017-05-30 13:47:55,941 - User['accumulo'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,941 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,942 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,942 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']}
2017-05-30 13:47:55,942 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,943 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,943 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,943 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,944 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-05-30 13:47:55,944 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-05-30 13:47:55,945 - 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-05-30 13:47:55,950 - 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-05-30 13:47:55,950 - Group['hduser'] {}
2017-05-30 13:47:55,951 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'hduser']}
2017-05-30 13:47:55,951 - FS Type: 
2017-05-30 13:47:55,951 - Directory['/etc/hadoop'] {'mode': 0755}
2017-05-30 13:47:55,963 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2017-05-30 13:47:55,964 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2017-05-30 13:47:55,975 - Initializing 2 repositories
2017-05-30 13:47:55,976 - Repository['HDP-2.6'] {'base_url': 'http://172.65.0.188/HDP/centos6', 'action': ['create'], 'components': ['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-05-30 13:47:55,981 - File['/etc/yum.repos.d/HDP.repo'] {'content': '[HDP-2.6]\nname=HDP-2.6\nbaseurl=http://172.21.0.188/HDP/centos6\n\npath=/\nenabled=1\ngpgcheck=0'}
2017-05-30 13:47:55,981 - Repository['HDP-UTILS-1.1.0.21'] {'base_url': 'http://172.65.0.188/HDP-UTILS/', 'action': ['create'], 'components': ['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-05-30 13:47:55,985 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': '[HDP-UTILS-1.1.0.21]\nname=HDP-UTILS-1.1.0.21\nbaseurl=http://172.65.0.188/HDP-UTILS/\n\npath=/\nenabled=1\ngpgcheck=0'}
2017-05-30 13:47:55,985 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-05-30 13:47:56,044 - Skipping installation of existing package unzip
2017-05-30 13:47:56,044 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-05-30 13:47:56,052 - Skipping installation of existing package curl
2017-05-30 13:47:56,052 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-05-30 13:47:56,061 - 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.0.3-7.x86_64

Std Err: None
('ignore_groupsusers_create', False)
2017-05-30 13:47:56,712 - User['activity_analyzer'] {'gid': 'hadoop'}
Created user without additional group hdfs
Deploying activity analyzer
Command:  /usr/sbin/hst activity-analyzer setup root:root '/etc/rc.d/init.d'
Exit code: 127
Std Out: None
Std Err: /usr/sbin/hst: line 322: install-activity-analyzer.sh: command not found

Command failed after 1 tries
1 ACCEPTED SOLUTION

Accepted Solutions

Expert Contributor
2017-05-3013:47:55,985-File['/etc/yum.repos.d/HDP-UTILS.repo']{'content':'[HDP-UTILS-1.1.0.21]\nname=HDP-UTILS-1.1.0.21\nbaseurl=http://172.21.0.188/HDP-UTILS/\n\npath=/\nenabled=1\ngpgcheck=0'}

-repo files not configured properly like (ambari, OS repo files), try to setup correctly....

yum repolist

View solution in original post

5 REPLIES 5

Expert Contributor
2017-05-3013:47:55,985-File['/etc/yum.repos.d/HDP-UTILS.repo']{'content':'[HDP-UTILS-1.1.0.21]\nname=HDP-UTILS-1.1.0.21\nbaseurl=http://172.21.0.188/HDP-UTILS/\n\npath=/\nenabled=1\ngpgcheck=0'}

-repo files not configured properly like (ambari, OS repo files), try to setup correctly....

yum repolist

View solution in original post

Expert Contributor

I have tried setting up local repository, also i have installed ambari.repo from hortonworks site. but no luck. same error coming up again and again. please help.

Expert Contributor

just want to confirm you, trying to install ambari-server am right ? and provide the below output....

output:

-cat /etc/yum.repo.d/ambari.repo

-cat /etc/yum.repo.d/OS.repo <operating system repos)

-yum repolist

@Palanivelrajan Chellakutty Thanks for your comment, i changed repository file and issue got resolved. thank you very much for your help.