Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Ambari agent installation failing

$
0
0

Hi,

I’m trying to register 9 hosts using Ambari for HDP 2.2. Out of 9, 8 got registered but for one I’m getting the below error :

==========================
Creating target directory…
==========================

Command start time 2015-02-16 17:10:11

Warning: Permanently added ‘l1039lab.sss.se.scania.com’ (RSA) to the list of known hosts.
Connection to l1039lab.sss.se.scania.com closed.
SSH command execution finished
host=l1039lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-16 17:10:11

==========================
Copying common functions script…
==========================

Command start time 2015-02-16 17:10:11

scp /usr/lib/python2.6/site-packages/ambari_commons
host=l1039lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-16 17:10:12

==========================
Copying OS type check script…
==========================

Command start time 2015-02-16 17:10:12

scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=l1039lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-16 17:10:12

==========================
Running OS type check…
==========================

Command start time 2015-02-16 17:10:12
Cluster primary/cluster OS type is redhat6 and local/current OS type is redhat6

Connection to l1039lab.sss.se.scania.com closed.
SSH command execution finished
host=l1039lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-16 17:10:13

==========================
Checking ‘sudo’ package on remote host…
==========================

Command start time 2015-02-16 17:10:13
sudo-1.8.6p3-12.el6.x86_64

Connection to l1039lab.sss.se.scania.com closed.
SSH command execution finished
host=l1039lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-16 17:10:13

==========================
Copying repo file to ‘tmp’ folder…
==========================

Command start time 2015-02-16 17:10:13

scp /etc/yum.repos.d/ambari.repo
host=l1039lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-16 17:10:14

==========================
Moving file to repo dir…
==========================

Command start time 2015-02-16 17:10:14

Connection to l1039lab.sss.se.scania.com closed.
SSH command execution finished
host=l1039lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-16 17:10:14

==========================
Copying setup script file…
==========================

Command start time 2015-02-16 17:10:14

scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=l1039lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-16 17:10:15

==========================
Running setup agent script…
==========================

Command start time 2015-02-16 17:10:15
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
/bin/sh: /usr/sbin/ambari-agent: No such file or directory
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Restarting ambari-agent
Verifying Python version compatibility…
Using python /usr/bin/python2.6
ambari-agent is not running. No PID found at /var/run/ambari-agent/ambari-agent.pid
Verifying Python version compatibility…
Using python /usr/bin/python2.6
Checking for previously running Ambari Agent…
Starting ambari-agent
Verifying ambari-agent process status…
ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
====================
from Controller import AGENT_AUTO_RESTART_EXIT_CODE
File “/usr/lib/python2.6/site-packages/ambari_agent/Controller.py”, line 35, in <module>
from Heartbeat import Heartbeat
File “/usr/lib/python2.6/site-packages/ambari_agent/Heartbeat.py”, line 29, in <module>
from HostInfo import HostInfo
File “/usr/lib/python2.6/site-packages/ambari_agent/HostInfo.py”, line 32, in <module>
from PackagesAnalyzer import PackagesAnalyzer
File “/usr/lib/python2.6/site-packages/ambari_agent/PackagesAnalyzer.py”, line 28, in <module>
from ambari_commons import OSCheck, OSConst, Firewall
ImportError: No module named ambari_commons
====================
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log
tail: cannot open `/var/log/ambari-agent/ambari-agent.log’ for reading: No such file or directory
tail: cannot open `/var/log/ambari-agent/ambari-agent.log’ for reading: No such file or directory
tail: cannot open `/var/log/ambari-agent/ambari-agent.log’ for reading: No such file or directory

Connection to l1039lab.sss.se.scania.com closed.
SSH command execution finished
host=l1039lab.sss.se.scania.com, exitcode=255
Command end time 2015-02-16 17:10:38

ERROR: Bootstrap of host l1039lab.sss.se.scania.com fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: tcgetattr: Invalid argument
Connection to l1039lab.sss.se.scania.com closed.

STDOUT: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
/bin/sh: /usr/sbin/ambari-agent: No such file or directory
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Restarting ambari-agent
Verifying Python version compatibility…
Using python /usr/bin/python2.6
ambari-agent is not running. No PID found at /var/run/ambari-agent/ambari-agent.pid
Verifying Python version compatibility…
Using python /usr/bin/python2.6
Checking for previously running Ambari Agent…
Starting ambari-agent
Verifying ambari-agent process status…
ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
====================
from Controller import AGENT_AUTO_RESTART_EXIT_CODE
File “/usr/lib/python2.6/site-packages/ambari_agent/Controller.py”, line 35, in <module>
from Heartbeat import Heartbeat
File “/usr/lib/python2.6/site-packages/ambari_agent/Heartbeat.py”, line 29, in <module>
from HostInfo import HostInfo
File “/usr/lib/python2.6/site-packages/ambari_agent/HostInfo.py”, line 32, in <module>
from PackagesAnalyzer import PackagesAnalyzer
File “/usr/lib/python2.6/site-packages/ambari_agent/PackagesAnalyzer.py”, line 28, in <module>
from ambari_commons import OSCheck, OSConst, Firewall
ImportError: No module named ambari_commons
====================
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log
tail: cannot open `/var/log/ambari-agent/ambari-agent.log’ for reading: No such file or directory
tail: cannot open `/var/log/ambari-agent/ambari-agent.log’ for reading: No such file or directory
tail: cannot open `/var/log/ambari-agent/ambari-agent.log’ for reading: No such file or directory

Connection to l1039lab.sss.se.scania.com closed.

Note :

This machine had a previous ONLY(i.e NO HDP etc.) Ambari SERVER installation and I referred link + manual deletion of directories having word ‘ambari’.

What shall I do for the clean uninstall of Ambari and resolve the above issue so that the machine can be registered ?

Thanks and regards !


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>