ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ÐΞ€ρ@Ҝ (๏̯͡๏) <deepuj...@gmail.com>
Subject Error setting up hadoop cluster (Nagios)
Date Fri, 26 Sep 2014 06:59:02 GMT
OS: RHEL 6
Ambari 1.6.1

All other services are have success as status except Nagios.

Step: Install, Start and Test

Log
===

stderr:
2014-09-25 23:55:09,325 - Error while executing command 'install':
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 111, in execute
    method(env)
  File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios_server.py",
line 32, in install
    self.install_packages(env)
  File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 167, in install_packages
    Package(name)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
line 148, in __init__
    self.env.run()
  File
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 149, in run
    self.run_action(resource, action)
  File
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 115, in run_action
    provider_action()
  File
"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py",
line 40, in action_install
    self.install_package(package_name)
  File
"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py",
line 36, in install_package
    shell.checked_call(cmd)
  File
"/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
35, in checked_call
    return _call(command, logoutput, True, cwd, env, preexec_fn, user,
wait_for_finish, timeout)
  File
"/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
90, in _call
    raise Fail(err_msg)
Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install
hdp_mon_nagios_addons' returned 1. Error: Package:
nagios-plugins-1.4.9-1.x86_64 (HDP-UTILS-1.1.0.17)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: nagios-plugins-1.4.9-1.x86_64 (HDP-UTILS-1.1.0.17)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
 stdout:
2014-09-25 23:55:05,865 - Execute['mkdir -p /tmp/HDP-artifacts/;     curl
-kf -x "" --retry 10
http://ambariserver-364996.phx-os1.stratus.dev.ebay.com:8080/resources//UnlimitedJCEPolicyJDK7.zip
-o /tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip'] {'environment': ...,
'not_if': 'test -e /tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip',
'ignore_failures': True, 'path': ['/bin', '/usr/bin/']}
2014-09-25 23:55:05,880 - Skipping Execute['mkdir -p /tmp/HDP-artifacts/;
  curl -kf -x "" --retry 10
http://ambariserver-364996.phx-os1.stratus.dev.ebay.com:8080/resources//UnlimitedJCEPolicyJDK7.zip
-o /tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip'] due to not_if
2014-09-25 23:55:05,894 - Repository['HDP-2.1'] {'base_url': '
http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.5.0',
'action': ['create'], 'components': ['HDP', 'main'], 'repo_template':
'repo_suse_rhel.j2', 'repo_file_name': 'HDP', 'mirror_list': None}
2014-09-25 23:55:05,903 - File['/etc/yum.repos.d/HDP.repo'] {'content':
Template('repo_suse_rhel.j2')}
2014-09-25 23:55:05,904 - Repository['HDP-UTILS-1.1.0.17'] {'base_url': '
http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/centos6',
'action': ['create'], 'components': ['HDP', 'main'], 'repo_template':
'repo_suse_rhel.j2', 'repo_file_name': 'HDP-UTILS', 'mirror_list': None}
2014-09-25 23:55:05,907 - File['/etc/yum.repos.d/HDP-UTILS.repo']
{'content': Template('repo_suse_rhel.j2')}
2014-09-25 23:55:05,908 - Package['unzip'] {}
2014-09-25 23:55:05,937 - Skipping installing existent package unzip
2014-09-25 23:55:05,937 - Package['curl'] {}
2014-09-25 23:55:05,962 - Skipping installing existent package curl
2014-09-25 23:55:05,963 - Execute['mkdir -p /tmp/HDP-artifacts/ ;   curl
-kf -x ""   --retry 10
http://ambariserver-364996.phx-os1.stratus.dev.ebay.com:8080/resources//jdk-7u45-linux-x64.tar.gz
-o /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz'] {'environment': ...,
'not_if': 'test -e /usr/jdk64/jdk1.7.0_45/bin/java', 'path': ['/bin',
'/usr/bin/']}
2014-09-25 23:55:05,974 - Skipping Execute['mkdir -p /tmp/HDP-artifacts/ ;
  curl -kf -x ""   --retry 10
http://ambariserver-364996.phx-os1.stratus.dev.ebay.com:8080/resources//jdk-7u45-linux-x64.tar.gz
-o /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz'] due to not_if
2014-09-25 23:55:05,975 - Execute['mkdir -p /usr/jdk64 ; cd /usr/jdk64 ;
tar -xf /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz > /dev/null 2>&1']
{'not_if': 'test -e /usr/jdk64/jdk1.7.0_45/bin/java', 'path': ['/bin',
'/usr/bin/']}
2014-09-25 23:55:05,986 - Skipping Execute['mkdir -p /usr/jdk64 ; cd
/usr/jdk64 ; tar -xf /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz >
/dev/null 2>&1'] due to not_if
2014-09-25 23:55:05,987 - Group['hadoop'] {'ignore_failures': False}
2014-09-25 23:55:05,988 - Modifying group hadoop
2014-09-25 23:55:06,027 - Group['users'] {'ignore_failures': False}
2014-09-25 23:55:06,028 - Modifying group users
2014-09-25 23:55:06,112 - Group['users'] {'ignore_failures': False}
2014-09-25 23:55:06,112 - Modifying group users
2014-09-25 23:55:06,164 - User['ambari-qa'] {'gid': 'hadoop',
'ignore_failures': False, 'groups': [u'users']}
2014-09-25 23:55:06,164 - Modifying user ambari-qa
2014-09-25 23:55:06,180 - File['/tmp/changeUid.sh'] {'content':
StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2014-09-25 23:55:06,181 - Execute['/tmp/changeUid.sh ambari-qa
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa
2>/dev/null'] {'not_if': 'test $(id -u ambari-qa) -gt 1000'}
2014-09-25 23:55:06,198 - Skipping Execute['/tmp/changeUid.sh ambari-qa
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa
2>/dev/null'] due to not_if
2014-09-25 23:55:06,199 - Group['nagios'] {'ignore_failures': False}
2014-09-25 23:55:06,199 - Modifying group nagios
2014-09-25 23:55:06,237 - User['nagios'] {'gid': 'nagios',
'ignore_failures': False}
2014-09-25 23:55:06,238 - Modifying user nagios
2014-09-25 23:55:06,262 - User['oozie'] {'gid': 'hadoop',
'ignore_failures': False}
2014-09-25 23:55:06,263 - Modifying user oozie
2014-09-25 23:55:06,290 - User['yarn'] {'gid': 'hadoop', 'ignore_failures':
False}
2014-09-25 23:55:06,291 - Modifying user yarn
2014-09-25 23:55:06,316 - Group['nobody'] {'ignore_failures': False}
2014-09-25 23:55:06,316 - Modifying group nobody
2014-09-25 23:55:06,344 - Group['nobody'] {'ignore_failures': False}
2014-09-25 23:55:06,345 - Modifying group nobody
2014-09-25 23:55:06,397 - User['nobody'] {'gid': 'hadoop',
'ignore_failures': False, 'groups': [u'nobody']}
2014-09-25 23:55:06,398 - Modifying user nobody
2014-09-25 23:55:06,424 - User['nobody'] {'gid': 'hadoop',
'ignore_failures': False, 'groups': [u'nobody']}
2014-09-25 23:55:06,425 - Modifying user nobody
2014-09-25 23:55:06,443 - User['hdfs'] {'gid': 'hadoop', 'ignore_failures':
False, 'groups': [u'hadoop']}
2014-09-25 23:55:06,444 - Modifying user hdfs
2014-09-25 23:55:06,466 - User['mapred'] {'gid': 'hadoop',
'ignore_failures': False, 'groups': [u'hadoop']}
2014-09-25 23:55:06,467 - Modifying user mapred
2014-09-25 23:55:06,494 - User['zookeeper'] {'gid': 'hadoop',
'ignore_failures': False}
2014-09-25 23:55:06,495 - Modifying user zookeeper
2014-09-25 23:55:06,518 - User['tez'] {'gid': 'hadoop', 'ignore_failures':
False, 'groups': [u'users']}
2014-09-25 23:55:06,519 - Modifying user tez
2014-09-25 23:55:06,728 - Package['hdp_mon_nagios_addons'] {'action':
['remove']}
2014-09-25 23:55:06,763 - Skipping removing non-existent package
hdp_mon_nagios_addons
2014-09-25 23:55:06,763 - Package['nagios-plugins'] {'action': ['remove']}
2014-09-25 23:55:06,788 - Skipping removing non-existent package
nagios-plugins
2014-09-25 23:55:06,789 - Execute['rpm -e --allmatches --nopostun nagios']
{'path': ['/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'],
'ignore_failures': True}
2014-09-25 23:55:06,827 - Skipping failure of Execute['rpm -e --allmatches
--nopostun nagios'] due to ignore_failures. Failure reason: Execution of
'rpm -e --allmatches --nopostun nagios' returned 1. error: package nagios
is not installed
2014-09-25 23:55:06,828 - Package['perl'] {}
2014-09-25 23:55:06,865 - Skipping installing existent package perl
2014-09-25 23:55:06,866 - Package['fping'] {}
2014-09-25 23:55:06,887 - Skipping installing existent package fping
2014-09-25 23:55:06,887 - Package['hdp_mon_nagios_addons'] {}
2014-09-25 23:55:06,912 - Installing package hdp_mon_nagios_addons
('/usr/bin/yum -d 0 -e 0 -y install hdp_mon_nagios_addons')
2014-09-25 23:55:09,325 - Error while executing command 'install':
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 111, in execute
    method(env)
  File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios_server.py",
line 32, in install
    self.install_packages(env)
  File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 167, in install_packages
    Package(name)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
line 148, in __init__
    self.env.run()
  File
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 149, in run
    self.run_action(resource, action)
  File
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 115, in run_action
    provider_action()
  File
"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py",
line 40, in action_install
    self.install_package(package_name)
  File
"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py",
line 36, in install_package
    shell.checked_call(cmd)
  File
"/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
35, in checked_call
    return _call(command, logoutput, True, cwd, env, preexec_fn, user,
wait_for_finish, timeout)
  File
"/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
90, in _call
    raise Fail(err_msg)
Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install
hdp_mon_nagios_addons' returned 1. Error: Package:
nagios-plugins-1.4.9-1.x86_64 (HDP-UTILS-1.1.0.17)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: nagios-plugins-1.4.9-1.x86_64 (HDP-UTILS-1.1.0.17)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


Suggestions ?

-- 
Deepak

Mime
View raw message