Created 01-04-2017 02:38 AM
Not able to add datanode to newly added slave node
Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 153, in <module> DataNode().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 34, in install self.install_packages(env, params.exclude_packages) File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 376, in install_packages Package(name) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 157, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 45, 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 49, in install_package shell.checked_call(cmd, sudo=True, logoutput=self.get_logoutput()) 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 291, in _call raise Fail(err_msg) resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install snappy' returned 1. Error Downloading Packages: snappy-1.1.0-1.el6.x86_64: failure: getPackage/snappy-1.1.0-1.el6.x86_64.rpm from public_ol6_latest: [Errno 256] No more mirrors to try.
Created 01-04-2017 02:41 AM
[root@datanode3 data]# yum install snappy-devel Loaded plugins: refresh-packagekit, security, ulninfo Setting up Install Process Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration http://yum.oracle.com/repo/OracleLinux/OL6/UEKR4/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'yum.oracle.com'" Trying other mirror. http://yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'yum.oracle.com'" Trying other mirror. Resolving Dependencies --> Running transaction check ---> Package snappy-devel.x86_64 0:1.1.0-1.el6 will be installed --> Processing Dependency: snappy(x86-64) = 1.1.0-1.el6 for package: snappy-devel-1.1.0-1.el6.x86_64 --> Running transaction check ---> Package snappy.x86_64 0:1.1.0-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Installing: snappy-devel x86_64 1.1.0-1.el6 public_ol6_latest 14 k Installing for dependencies: snappy x86_64 1.1.0-1.el6 public_ol6_latest 39 k Transaction Summary ============================================================================================================================================================= Install 2 Package(s) Total download size: 52 k Installed size: 142 k Is this ok [y/N]: y Downloading Packages: http://yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/getPackage/snappy-1.1.0-1.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'yum.oracle.com'" Trying other mirror. http://yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/getPackage/snappy-devel-1.1.0-1.el6.x86_64.... [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'yum.oracle.com'" Trying other mirror. Error Downloading Packages: snappy-devel-1.1.0-1.el6.x86_64: failure: getPackage/snappy-devel-1.1.0-1.el6.x86_64.rpm from public_ol6_latest: [Errno 256] No more mirrors to try. snappy-1.1.0-1.el6.x86_64: failure: getPackage/snappy-1.1.0-1.el6.x86_64.rpm from public_ol6_latest: [Errno 256] No more mirrors to try.
Created 01-06-2017 11:06 PM
Any update from experts?
Thank you,
Sachin A
Created 01-07-2017 03:45 AM
Is it normal at your environment to get "Couldn't resolve host 'yum.oracle.com'"
- Do you have internet connectivity ?
- Are you using any Local Repository (Offline repository) ?
- What output do you see when you run :
yum repolist
- Can you try to manually do the following:
yum remove snappy yum install snappy-devel
.
Created 01-07-2017 10:28 AM
Problem is with oracle yum repo that which is not reachable. It seems your system is not internet connected to resolve yum.oracle.com.
Please verify if you have internet connectivity from your host or if you have a local repo, change your repo config in /etc/yum.reposd to point to correct baseurl.
If you have NAT config on your host, you can try to restart network service.
#service network restart
Created 01-07-2017 09:39 PM
@Jay SenSharma @rguruvannagari, thanks for your valuable advise. There was no internet connectivity on the server. Added entry "nameserver 8.8.8.8" in /etc/resolve.conf for the internet connection. I am able to install required rpm's to install the datanode.
Thank you,
Sachin A