Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

Highlighted

Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

New Contributor

stderr: Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/application_timeline_server.py", line 155, in <module> ApplicationTimelineServer().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/application_timeline_server.py", line 39, in install self.install_packages(env) File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 567, in install_packages retry_count=agent_stack_retry_count) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 54, in action_install self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 51, in install_package self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput()) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 86, in checked_call_with_retries return self._call_with_retries(cmd, is_checked=True, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 98, in _call_with_retries code, out = func(cmd, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call tries=tries, try_sleep=try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 293, in _call raise ExecutionFailed(err_msg, code, out, err) resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install hadoop_2_5_3_0_37-yarn' returned 1. No Presto metadata available for HDP-2.5 Error downloading packages: hadoop_2_5_3_0_37-yarn-2.7.3.2.5.3.0-37.el6.x86_64: [Errno 256] No more mirrors to try. zookeeper_2_5_3_0_37-3.4.6.2.5.3.0-37.el6.noarch: [Errno 256] No more mirrors to try. spark_2_5_3_0_37-yarn-shuffle-1.6.2.2.5.3.0-37.el6.noarch: [Errno 256] No more mirrors to try. spark2_2_5_3_0_37-yarn-shuffle-2.0.0.2.5.3.0-37.el6.noarch: [Errno 256] No more mirrors to try. hadoop_2_5_3_0_37-2.7.3.2.5.3.0-37.el6.x86_64: [Errno 256] No more mirrors to try. stdout: 2018-04-25 05:42:28,742 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2018-04-25 05:42:28,744 - Group['hadoop'] {} 2018-04-25 05:42:28,746 - Group['users'] {} 2018-04-25 05:42:28,746 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2018-04-25 05:42:28,747 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2018-04-25 05:42:28,748 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']} 2018-04-25 05:42:28,749 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']} 2018-04-25 05:42:28,750 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2018-04-25 05:42:28,750 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2018-04-25 05:42:28,751 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2018-04-25 05:42:28,752 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2018-04-25 05:42:28,753 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2018-04-25 05:42:28,755 - 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)'} 2018-04-25 05:42:28,761 - 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 2018-04-25 05:42:28,762 - Group['hdfs'] {} 2018-04-25 05:42:28,762 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': [u'hadoop', u'hdfs']} 2018-04-25 05:42:28,763 - FS Type: 2018-04-25 05:42:28,763 - Directory['/etc/hadoop'] {'mode': 0755} 2018-04-25 05:42:28,763 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777} 2018-04-25 05:42:28,782 - Initializing 2 repositories 2018-04-25 05:42:28,783 - Repository['HDP-2.5'] {'base_url': 'http://192.168.10.194/HDP/HDP/centos7/', 'action': ['create'], 'components': [u'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} 2018-04-25 05:42:28,788 - File['/etc/yum.repos.d/HDP.repo'] {'content': '[HDP-2.5]\nname=HDP-2.5\nbaseurl=http://192.168.10.194/HDP/HDP/centos7/\n\npath=/\nenabled=1\ngpgcheck=0'} 2018-04-25 05:42:28,789 - Repository['HDP-UTILS-1.1.0.21'] {'base_url': 'http://192.168.10.194/HDP-UTILS/', 'action': ['create'], 'components': [u'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} 2018-04-25 05:42:28,792 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': '[HDP-UTILS-1.1.0.21]\nname=HDP-UTILS-1.1.0.21\nbaseurl=http://192.168.10.194/HDP-UTILS/\n\npath=/\nenabled=1\ngpgcheck=0'} 2018-04-25 05:42:28,792 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-04-25 05:42:28,928 - Skipping installation of existing package unzip 2018-04-25 05:42:28,928 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-04-25 05:42:29,004 - Skipping installation of existing package curl 2018-04-25 05:42:29,004 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-04-25 05:42:29,086 - Skipping installation of existing package hdp-select 2018-04-25 05:42:29,284 - checked_call['rpm -q --queryformat '%{version}-%{release}' hdp-select | sed -e 's/\.el[0-9]//g''] {'stderr': -1} 2018-04-25 05:42:29,298 - checked_call returned (0, '2.5.3.0-37', '') 2018-04-25 05:42:29,299 - Package['hadoop_2_5_3_0_37-yarn'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-04-25 05:42:29,425 - Installing package hadoop_2_5_3_0_37-yarn ('/usr/bin/yum -d 0 -e 0 -y install hadoop_2_5_3_0_37-yarn') 2018-04-25 05:42:43,670 - Execution of '/usr/bin/yum -d 0 -e 0 -y install hadoop_2_5_3_0_37-yarn' returned 1. No Presto metadata available for HDP-2.5 Error downloading packages: hadoop_2_5_3_0_37-yarn-2.7.3.2.5.3.0-37.el6.x86_64: [Errno 256] No more mirrors to try. zookeeper_2_5_3_0_37-3.4.6.2.5.3.0-37.el6.noarch: [Errno 256] No more mirrors to try. spark_2_5_3_0_37-yarn-shuffle-1.6.2.2.5.3.0-37.el6.noarch: [Errno 256] No more mirrors to try. spark2_2_5_3_0_37-yarn-shuffle-2.0.0.2.5.3.0-37.el6.noarch: [Errno 256] No more mirrors to try. hadoop_2_5_3_0_37-2.7.3.2.5.3.0-37.el6.x86_64: [Errno 256] No more mirrors to try. 2018-04-25 05:42:43,670 - Failed to install package hadoop_2_5_3_0_37-yarn. Executing '/usr/bin/yum clean metadata' 2018-04-25 05:42:43,843 - Retrying to install package hadoop_2_5_3_0_37-yarn after 30 seconds Command failed after 1 tries

I have 3 nodes installed on centos 7, in Ambari UI i am getting errors at Install start and test step, please help out on this issue.

node1.hadoop.com

node2.hadoop.com

noed3.hadoop.com

29 REPLIES 29

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

Mentor

@Lokesh Mukku

I think you have a problem with your local repo

<em>No more mirrors to try. </em>

The baseurl=http://192.168.10.194/HDP/HDP/centos7/xxx/xxx is not correct

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

New Contributor

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

New Contributor

@Geoffrey Shelton Okot

[hdp-demo]

name=hdp-demo

baseurl=http://192.168.10.194/HDP/HDP/centos7/

gpgcheck=0

[hdp-utilis-demo]

name=hdp-utils-demo

baseurl=http://192.168.10.194/HDP-UTILS/

gpgcheck=0

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

Mentor

@Lokesh Mukku

To validate the local repo is correctly set, are able to get the repomd.xml file using wget or curl from http://192.168.10.194 host?

wget http://192.168.10.194/HDP/HDP/centos7/repodata/repomd.xml

It looks your local repo is not well configured, first clear the cache

# yum clean all 

What is the output of

# yum repolist 

Check the proxy". yum.conf and comment out the line for "proxy="

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

New Contributor

I can't get u, can you explain clearly

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

New Contributor

72447-wget-output.png

Thanks for your patience sir.. I did above steps please check output

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

Mentor

@Lokesh Mukku

Can you try this first back all the ambari/hdp.repo in /etc/yum.repos.d

# yum clean all 


Then get the Ambari and hdp repos

wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.5/ambari.repo -O /etc/yum.repos.d/ambari.repo 


wget -nv http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.5.3.0/hdp.repo -O /etc/yum.repos.d/hdp.repo 

Validate the repo

# yum repolist

You should be good to go

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

New Contributor

@Geoffrey Shelton Okot Got new error please check

72448-error-repo.png

Re: Error on while installing HDP 2.5.x.x ON centos 7 with Local Repo

Mentor

@Lokesh Mukku

The above errors shows you have the Suse Linux 12 repo instead of RH/Centos !!!
can you check the contents of your /etc/yum.repo.d/* and remove the sles repos