Created 10-20-2017 04:15 PM
Hi Hortonworks expert.
I am new to hortonworks and i am trying to add the Ambari Metrics service.
I have downloaded and running the latest HDP 2.6.1 for VmWare.
While installing the service i am getting the following output:
2017-10-20 18:08:36,928 - Skipping installation of existing package hdp-select 2017-10-20 18:08:37,323 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2017-10-20 18:08:37,333 - checked_call['hostid'] {} 2017-10-20 18:08:37,355 - checked_call returned (0, '11ac0200') 2017-10-20 18:08:37,362 - Version 2.6.1.0-129 was provided as effective cluster version. Using package version 2_6_1_0_129 2017-10-20 18:08:37,365 - Package['ambari-metrics-collector'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2017-10-20 18:08:37,715 - Installing package ambari-metrics-collector ('/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector') 2017-10-20 18:09:08,960 - Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector' returned 1. Error: Cannot retrieve repository metadata (repomd.xml) for repository: sandbox. Please verify its path and try again 2017-10-20 18:09:08,960 - Failed to install package ambari-metrics-collector. Executing '/usr/bin/yum clean metadata' 2017-10-20 18:09:09,287 - Retrying to install package ambari-metrics-collector after 30 seconds
Can anyone of you help me to understand what's going on?
Thanks a lot in advance for your support.
Created 10-20-2017 05:07 PM
The problem seems to be here:
2017-10-20 18:09:08,960 - Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector' returned 1. Error: Cannot retrieve repository metadata (repomd.xml) for repository: sandbox. Please verify its path and try again
Looks like the "sandbox" repo is causing the issue here. Sandbox repo is just for dev so it can be disabled.
Can you please try to disable the "sandbox" repo by setting "enable=0" as following:
# cat /etc/yum.repos.d/sandbox.repo [sandbox] baseurl=http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/ name=Sandbox repository (tutorials) gpgcheck=0 enabled=0
.
After making the above changes please run yum clean all and then you can try again.
# yum clean all
.
Created 10-20-2017 05:07 PM
The problem seems to be here:
2017-10-20 18:09:08,960 - Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector' returned 1. Error: Cannot retrieve repository metadata (repomd.xml) for repository: sandbox. Please verify its path and try again
Looks like the "sandbox" repo is causing the issue here. Sandbox repo is just for dev so it can be disabled.
Can you please try to disable the "sandbox" repo by setting "enable=0" as following:
# cat /etc/yum.repos.d/sandbox.repo [sandbox] baseurl=http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/ name=Sandbox repository (tutorials) gpgcheck=0 enabled=0
.
After making the above changes please run yum clean all and then you can try again.
# yum clean all
.
Created 10-21-2017 07:27 AM
Good to know that the issue is resolved. As the issue is resolved, hence it will be also great if you can mark this HCC thread as Answered by clicking on the "Accept" Button on the correct answer. That way other HCC users can quickly find the solution when they encounter the same issue.
Created 10-21-2017 07:25 AM
Hi Jay,
thanks a lot. I did what you suggested and it worked!
Thanks again.