Support Questions

Find answers, ask questions, and share your expertise

Failed to Install Activity Analyzer Install

avatar
Contributor

I was trying to launch a single node test cluster but it fails on Activity Analyzer Install step. Please find the logs below: 

 

stderr: /usr/sbin/hst: line 460: install-activity-analyzer.sh: command not found

 

stderr:
Failed to execute command: /usr/sbin/hst activity-analyzer setup root:root '/etc/rc.d/init.d'; Exit code: 1; stdout: User root failed to execute command : /usr/sbin/hst activity-analyzer setup root:root /etc/rc.d/init.d
; stderr: /usr/sbin/hst: line 460: install-activity-analyzer.sh: command not found
stdout:
2020-07-25 10:25:15,752 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=None -> 3.1
2020-07-25 10:25:15,756 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2020-07-25 10:25:15,757 - Group['hdfs'] {}
2020-07-25 10:25:15,758 - Group['hadoop'] {}
2020-07-25 10:25:15,758 - Group['users'] {}
2020-07-25 10:25:15,758 - User['yarn-ats'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,759 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,759 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,760 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,760 - User['atlas'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,761 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,761 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'users'], 'uid': None}
2020-07-25 10:25:15,762 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'users'], 'uid': None}
2020-07-25 10:25:15,762 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,763 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop'], 'uid': None}
2020-07-25 10:25:15,763 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,764 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,764 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2020-07-25 10:25:15,765 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2020-07-25 10:25:15,765 - 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 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2020-07-25 10:25:15,769 - 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 0'] due to not_if
2020-07-25 10:25:15,770 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2020-07-25 10:25:15,770 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2020-07-25 10:25:15,771 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2020-07-25 10:25:15,771 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
2020-07-25 10:25:15,777 - call returned (0, '1017')
2020-07-25 10:25:15,777 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1017'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2020-07-25 10:25:15,780 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1017'] due to not_if
2020-07-25 10:25:15,781 - Group['hdfs'] {}
2020-07-25 10:25:15,781 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop', u'hdfs']}
2020-07-25 10:25:15,781 - FS Type: HDFS
2020-07-25 10:25:15,781 - Directory['/etc/hadoop'] {'mode': 0755}
2020-07-25 10:25:15,782 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2020-07-25 10:25:15,794 - Repository['HDP-3.1-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP/ubuntu16/3.x/updates/3.1.4.0', 'action': ['prepare'], 'components': [u'HDP', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
2020-07-25 10:25:15,798 - Repository with url http://public-repo-1.hortonworks.com/HDP-GPL/ubuntu16/3.x/updates/3.1.4.0 is not created due to its tags: set([u'GPL'])
2020-07-25 10:25:15,798 - Repository['HDP-UTILS-1.1.0.22-repo-1'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu16', 'action': ['prepare'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'ambari-hdp-1', 'mirror_list': None}
2020-07-25 10:25:15,799 - Repository[None] {'action': ['create']}
2020-07-25 10:25:15,800 - File['/tmp/tmppaNhTZ'] {'content': 'deb http://public-repo-1.hortonworks.com/HDP/ubuntu16/3.x/updates/3.1.4.0 HDP main\ndeb http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu16 HDP-UTILS main'}
2020-07-25 10:25:15,801 - Writing File['/tmp/tmppaNhTZ'] because contents don't match
2020-07-25 10:25:15,801 - File['/tmp/tmpFRaRaj'] {'content': StaticFile('/etc/apt/sources.list.d/ambari-hdp-1.list')}
2020-07-25 10:25:15,801 - Writing File['/tmp/tmpFRaRaj'] because contents don't match
2020-07-25 10:25:15,802 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2020-07-25 10:25:15,871 - Skipping installation of existing package unzip
2020-07-25 10:25:15,872 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2020-07-25 10:25:15,906 - Skipping installation of existing package curl
2020-07-25 10:25:15,906 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2020-07-25 10:25:15,940 - Skipping installation of existing package hdp-select
2020-07-25 10:25:15,948 - Skipping stack-select on SMARTSENSE because it does not exist in the stack-select package structure.
installing using command: {sudo} dpkg-query -l | grep 'ii\s*smartsense-*' || {sudo} apt-get -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install smartsense-hst || {sudo} dpkg -i /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SMARTSENSE/package/files/deb/*.deb
Command: dpkg-query -l | grep 'ii\s*smartsense-*' || apt-get -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install smartsense-hst || dpkg -i /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SMARTSENSE/package/files/deb/*.deb
Exit code: 0
Std Out: ii smartsense-hst 1.5.1.2.7.4.0-118 amd64 Hortonworks SmartSense Tool (HST)

Std Err: None
('ignore_groupsusers_create', False)
2020-07-25 10:25:16,095 - User['activity_analyzer'] {'gid': 'hadoop', 'groups': [u'hdfs']}
Created user with additional group hdfs
Deploying activity analyzer
Command: /usr/sbin/hst activity-analyzer setup root:root '/etc/rc.d/init.d'
Exit code: 1
Std Out: User root failed to execute command : /usr/sbin/hst activity-analyzer setup root:root /etc/rc.d/init.d

Std Err: /usr/sbin/hst: line 460: install-activity-analyzer.sh: command not found

2020-07-25 10:25:16,125 - Skipping stack-select on SMARTSENSE because it does not exist in the stack-select package structure.

Command failed after 1 tries

3 REPLIES 3

avatar
Master Collaborator

@ashish_inamdar  can you confirm is ambari-server and ambari agent  is running as non-root user 

avatar
Contributor

@Scharan,

Both Ambari-server and Ambari-agent are running with root user.

 

root@fgpoc:~# ambari-server restart
Using python /usr/bin/python
Restarting ambari-server
Waiting for server stop...
Ambari Server stopped
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Ambari database consistency check started...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start....................
Server started listening on 8080

DB configs consistency check: no errors and warnings were found.
root@fgpoc:~# ambari-agent restart
Restarting ambari-agent
Verifying Python version compatibility...
Using python /usr/bin/python
Found ambari-agent PID: 30163
Stopping ambari-agent
Removing PID file at /run/ambari-agent/ambari-agent.pid
ambari-agent successfully stopped
Verifying Python version compatibility...
Using python /usr/bin/python
Checking for previously running Ambari Agent...
Checking ambari-common dir...
Starting ambari-agent
Verifying ambari-agent process status...
Ambari Agent successfully started
Agent PID at: /run/ambari-agent/ambari-agent.pid
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log
root@fgpoc:~#

avatar

Remove smartsense package from server and retry

 

yum remove smartsense-hst 
rm -rf /var/log/smartsense/