Member since
03-22-2017
3
Posts
0
Kudos Received
0
Solutions
03-22-2017
01:45 PM
Ok, found the solution! My /var folder was mounted with noexec flag not letting execute the os checking script.
... View more
03-22-2017
12:50 PM
# ls -lart /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py -rwxr-xr-x 1 root root 1550 Nov 23 08:27 /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py # ls -lart /var/lib/ambari-agent/tmp/ -rwxr-xr-x 1 root root 1550 Feb 1 15:36 os_check_type1485959772.py -rwxr-xr-x 1 root root 15510 Feb 1 15:36 setupAgent1485959773.py -rwxr-xr-x 1 root root 1550 Feb 2 09:39 os_check_type1486024758.py -rwxr-xr-x 1 root root 15510 Feb 2 09:39 setupAgent1486024760.py -rwxr-xr-x 1 root root 1550 Feb 2 09:54 os_check_type1486025664.py -rwxr-xr-x 1 root root 15510 Feb 2 09:54 setupAgent1486025664.py -rwxr-xr-x 1 root root 1550 Feb 2 10:13 os_check_type1486026796.py -rwxr-xr-x 1 root root 15510 Feb 2 10:13 setupAgent1486026797.py -rwx------ 1 root root 1345 Feb 2 10:41 ambari-sudo.sh -rwxr-xr-x 1 root root 1550 Feb 2 10:41 os_check_type1486028518.py -rwxr-xr-x 1 root root 15510 Feb 2 10:42 setupAgent1486028520.py drwxr-xr-x 3 root root 4096 Feb 2 10:42 ambari_commons -r-xr-xr-x 1 root root 1556 Feb 2 11:58 changeUid.sh -rw-r--r-- 1 root root 1931 Feb 2 14:42 DBConnectionVerification.jar drwxr-xr-x 7 root root 4096 Feb 2 14:52 .. -rwxr-xr-x 1 root root 1518 Feb 2 14:55 validateKnoxStatus.py drwxrwxrwt 4 root root 4096 Feb 2 14:55 . drwxrwxrwt 3 hdfs hadoop 4096 Mar 20 09:29 hadoop_java_io_tmpdir Agent is started as root
... View more
03-22-2017
12:26 PM
Hi folks, i am trying to add new hosts to my cluster but getting this kind of error: ==========================
Copying OS type check script...
==========================
Command start time 2017-03-22 12:37:30
scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=XXX, exitcode=0
Command end time 2017-03-22 12:37:31
==========================
Running OS type check...
==========================
Command start time 2017-03-22 12:37:31
env: /var/lib/ambari-agent/tmp/os_check_type1490182650.py: Permission denied
Connection to XXX closed.
SSH command execution finished
host=XXX, exitcode=126
Command end time 2017-03-22 12:37:31
ERROR: Bootstrap of host XXX fails because previous action finished with non-zero exit code (126)
ERROR MESSAGE: Connection to XXX closed.
STDOUT: env: /var/lib/ambari-agent/tmp/os_check_type1490182650.py: Permission denied
Connection to XXX closed.
On one of my new hosts i have installed ambari-agent manually. The error still exists. Any ideas? Thx in advance.
... View more
Labels:
- Labels:
-
Apache Ambari