Failed to receive heartbeat from agent. (Current Step) - cloudera-manager

I keep getting
35.162.183.137
Retry | Details Installation failed. Failed to receive heartbeat from agent.
How do I fix this? I am unable to add any hosts because of this issue.
Also, cloudera-scm-agent log file looks like this:
[01/Nov/2016 18:02:20 +0000] 6468 MainThread agent INFO Chowning /opt/cloudera/parcel-cache to root (0) root (0)
[01/Nov/2016 18:02:20 +0000] 6468 MainThread agent INFO Chmod'ing /opt/cloudera/parcel-cache to 0755
[01/Nov/2016 18:02:20 +0000] 6468 MainThread parcel INFO Agent does create users/groups and apply file permissions
[01/Nov/2016 18:02:20 +0000] 6468 MainThread downloader INFO Downloader path: /opt/cloudera/parcel-cache
[01/Nov/2016 18:02:20 +0000] 6468 MainThread parcel_cache INFO Using /opt/cloudera/parcel-cache for parcel cache
[01/Nov/2016 18:02:20 +0000] 6468 MainThread agent INFO Flood daemon (re)start attempt
[01/Nov/2016 18:02:20 +0000] 6468 MainThread agent INFO Created /opt/cloudera/parcels/.flood
[01/Nov/2016 18:02:20 +0000] 6468 MainThread agent INFO Chowning /opt/cloudera/parcels/.flood to cloudera-scm (498) cloudera-scm (498)
[01/Nov/2016 18:02:20 +0000] 6468 MainThread agent INFO Chmod'ing /opt/cloudera/parcels/.flood to 0755
[01/Nov/2016 18:02:20 +0000] 6468 MainThread agent INFO Triggering supervisord update.
[01/Nov/2016 18:02:20 +0000] 6468 MainThread downloader ERROR Failed rack peer update: [Errno 111] Connection refused
[01/Nov/2016 18:02:20 +0000] 6468 MainThread firehoses INFO Reporting interval updated: 5.0 -> 60
[01/Nov/2016 18:02:20 +0000] 6468 MainThread agent INFO Active parcel list updated; recalculating component info.
[01/Nov/2016 18:02:20 +0000] 6468 MainThread throttling_logger INFO Identified java component java6 with full version JAVA_HOME=/usr/java/default java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) for requested version misc.
[01/Nov/2016 18:02:20 +0000] 6468 MainThread throttling_logger INFO Identified java component java6 with full version JAVA_HOME=/usr/java/jdk1.6.0_31 java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) for requested version 6.
[01/Nov/2016 18:02:20 +0000] 6468 MainThread throttling_logger INFO Identified java component java7 with full version JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) for requested version 7.
[01/Nov/2016 18:02:49 +0000] 6468 DnsResolutionMonitor throttling_logger INFO Using java location: '/usr/java/jdk1.7.0_67-cloudera/bin/java'.
[01/Nov/2016 18:03:19 +0000] 6468 MonitorDaemon-Reporter firehoses INFO Creating a connection to the ACTIVITYMONITOR.
[01/Nov/2016 18:03:19 +0000] 6468 MonitorDaemon-Reporter firehoses INFO Creating a connection to the SERVICEMONITOR.
[01/Nov/2016 18:03:19 +0000] 6468 MonitorDaemon-Reporter firehoses INFO Creating a connection to the HOSTMONITOR.
[01/Nov/2016 18:03:49 +0000] 6468 MonitorDaemon-Reporter throttling_logger ERROR Error sending messages to firehose: mgmt-HOSTMONITOR-5ccf80948a373fcc0e29b2976ccf7c19
Traceback (most recent call last):
File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.7.0-py2.6.egg/cmf/monitor/firehose.py", line 116, in _send
self._port)
File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/avro-1.6.3-py2.6.egg/avro/ipc.py", line 469, in __init__
self.conn.connect()
File "/usr/lib64/python2.6/httplib.py", line 742, in connect
self.timeout)
File "/usr/lib64/python2.6/socket.py", line 567, in create_connection
raise error, msg
timeout: timed out
I can't figure out the problem with this. Could I get help please.
I have checked and I can ping the new host (from and to) existing host just fine.
ntpd is running
ip6 tables are not running
This new host I am trying to add in AWS ec2 instance with centos 6.7
My existing host is centos 6.7 as well
Also, just in case needed, here is the log details I get in CM:
Support
admin
Add New Hosts to Cluster
Installation failed on all hosts.
0 of 1 host(s) completed successfully.
Uninstalled on 1 host(s) after installation failure. Retry Failed Hosts
Hostname IP Address Progress Status
ec2-35-162-192-55.us-west-2.compute.amazonaws.com 35.162.192.55
Retry | Details Installation failed. Failed to receive heartbeat from agent.
Ensure that the host's hostname is configured properly.
Ensure that port 7182 is accessible on the Cloudera Manager Server (check firewall rules).
Ensure that ports 9000 and 9001 are not in use on the host being added.
Check agent logs in /var/log/cloudera-scm-agent/ on the host being added. (Some of the logs can be found in the installation details).
If Use TLS Encryption for Agents is enabled in Cloudera Manager (Administration -> Settings -> Security), ensure that /etc/cloudera-scm-agent/config.ini has use_tls=1 on the host being added. Restart the corresponding agent and click the Retry link here.
Failed to receive heartbeat from agent. (Current Step) Last Refreshed: Nov 1, 2016 11:37:35 PM IST
/tmp/scm_prepare_node.pc1ddUen
using SSH_CLIENT to get the SCM hostname: 182.18.170.55 37842 22
opening logging file descriptor
Starting installation script...
Acquiring installation lock...
BEGIN flock 4
END (0)
Detecting root privileges...
effective UID is 0
Detecting distribution...
BEGIN grep Tikanga /etc/redhat-release
END (1)
BEGIN grep 'CentOS release 5' /etc/redhat-release
END (1)
BEGIN grep 'Scientific Linux release 5' /etc/redhat-release
END (1)
BEGIN grep Santiago /etc/redhat-release
END (1)
BEGIN grep 'CentOS Linux release 6' /etc/redhat-release
END (1)
BEGIN grep 'CentOS release 6' /etc/redhat-release
CentOS release 6.7 (Final)
END (0)
/etc/redhat-release ==> CentOS 6
Detecting Cloudera Manager Server...
BEGIN host -t PTR 182.18.170.55
END (127)
/tmp/scm_prepare_node.pc1ddUen/scm_prepare_node.sh: line 105: host: command not found
BEGIN which python
/usr/bin/python
END (0)
BEGIN python -c 'import socket; import sys; s = socket.socket(socket.AF_INET); s.settimeout(5.0); s.connect((sys.argv[1], int(sys.argv[2]))); s.close();' 182.18.170.55 7182
END (0)
BEGIN which wget
which: no wget in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)
END (1)
BEGIN wget -qO- -T 1 -t 1 http://169.254.169.254/latest/meta-data/public-hostname && /bin/echo
/tmp/scm_prepare_node.pc1ddUen/scm_prepare_node.sh: line 105: wget: command not found
END (127)
Installing package repositories...
validating format of repository file /tmp/scm_prepare_node.pc1ddUen/repos/rhel6/cloudera-manager.repo
installing repository file /tmp/scm_prepare_node.pc1ddUen/repos/rhel6/cloudera-manager.repo
repository file /tmp/scm_prepare_node.pc1ddUen/repos/rhel6/cloudera-manager.repo installed
Refreshing package metadata...
BEGIN yum clean all
Loaded plugins: fastestmirror, presto
Cleaning repos: base cloudera-manager extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
0 delta-package files removed, by presto
END (0)
BEGIN rm -Rf /var/cache/yum/CentOS6-Base /var/cache/yum/CentOS6-Extras /var/cache/yum/CentOS6-Updates /var/cache/yum/timedhosts.txt /var/cache/yum/x86_64
END (0)
BEGIN yum makecache
Loaded plugins: fastestmirror, presto
Metadata Cache Created
END (0)
Installing jdk package...
BEGIN yum list installed jdk
Loaded plugins: fastestmirror, presto
Error: No matching Packages to list
END (1)
BEGIN yum info jdk
Loaded plugins: fastestmirror, presto
Determining fastest mirrors
* base: mirrors.unifiedlayer.com
* extras: bay.uchicago.edu
* updates: repo1.sea.innoscale.net
Available Packages
Name : jdk
Arch : x86_64
Epoch : 2000
Version : 1.6.0_31
Release : fcs
Size : 68 M
Repo : cloudera-manager
Summary : Java(TM) Platform Standard Edition Development Kit
URL : http://java.sun.com/
License : Copyright (c) 2011, Oracle and/or its affiliates. All rights
: reserved. Also under other license(s) as shown at the Description
: field.
Description : The Java Platform Standard Edition Development Kit (JDK) includes
: both the runtime environment (Java virtual machine, the Java
: platform classes and supporting files) and development tools
: (compilers, debuggers, tool libraries and other tools).
:
: The JDK is a development environment for building applications,
: applets and components that can be deployed with the Java Platform
: Standard Edition Runtime Environment.
END (0)
BEGIN yum -y install jdk.x86_64
Loaded plugins: fastestmirror, presto
Setting up Install Process
================================================================================
Installing:
jdk x86_64 2000:1.6.0_31-fcs cloudera-manager 68 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 68 M
Installed size: 143 M
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 68 M
warning: rpmts_HdrFromFdno: V4 DSA/SHA1 Signature, key ID e8f86acd: NOKEY
Retrieving key from https://archive.cloudera.com/redhat/cdh/RPM-GPG-KEY-cloudera
Importing GPG key 0xE8F86ACD:
Userid: "Yum Maintainer <webmaster#cloudera.com>"
From : https://archive.cloudera.com/redhat/cdh/RPM-GPG-KEY-cloudera
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 2000:jdk-1.6.0_31-fcs.x86_64 1/1
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Verifying : 2000:jdk-1.6.0_31-fcs.x86_64 1/1
Installed:
jdk.x86_64 2000:1.6.0_31-fcs
Complete!
END (0)
remote package jdk installed
Installing oracle-j2sdk1.7 package...
BEGIN yum list installed oracle-j2sdk1.7
Loaded plugins: fastestmirror, presto
Error: No matching Packages to list
END (1)
BEGIN yum info oracle-j2sdk1.7
Loaded plugins: fastestmirror, presto
Resolving Dependencies
--> Running transaction check
---> Package oracle-j2sdk1.7.x86_64 0:1.7.0+update67-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
oracle-j2sdk1.7 x86_64 1.7.0+update67-1 cloudera-manager 135 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 135 M
Installed size: 279 M
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 135 M
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : oracle-j2sdk1.7-1.7.0+update67-1.x86_64 1/1
Verifying : oracle-j2sdk1.7-1.7.0+update67-1.x86_64 1/1
Installed:
oracle-j2sdk1.7.x86_64 0:1.7.0+update67-1
Complete!
END (0)
remote package oracle-j2sdk1.7 installed
Installing cloudera-manager-agent package...
BEGIN yum list installed cloudera-manager-agent
Loaded plugins: fastestmirror, presto
Error: No matching Packages to list
END (1)
BEGIN yum info cloudera-manager-agent
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: mirrors.unifiedlayer.com
* extras: bay.uchicago.edu
* updates: repo1.sea.innoscale.net
Available Packages
Name : cloudera-manager-agent
Arch : x86_64
Version : 5.7.0
Release : 1.cm570.p0.76.el6
Size : 7.5 M
Repo : cloudera-manager
Summary : The Cloudera Manager Agent
URL : http://www.cloudera.com
License : Proprietary
Description : The Cloudera Manager Agent.
:
: The Agent is deployed to machines running services managed by
: Cloudera Manager.
END (0)
Version : 5.7.0
Release : 1.cm570.p0.76.el6
BEGIN yum -y install cloudera-manager-agent
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.unifiedlayer.com
* extras: bay.uchicago.edu
* updates: repo1.sea.innoscale.net
Resolving Dependencies
--> Running transaction check
---> Package cloudera-manager-agent.x86_64 0:5.7.0-1.cm570.p0.76.el6 will be installed
--> Processing Dependency: cloudera-manager-daemons = 5.7.0 for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64
--> Processing Dependency: /lib/lsb/init-functions for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64
--> Running transaction check
--> Processing Dependency: openssl = 1.0.1e-48.el6_8.3 for package: openssl-devel-1.0.1e-48.el6_8.3.x86_64
--> Processing Dependency: zlib-devel for package: openssl-devel-1.0.1e-48.el6_8.3.x86_64
--> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-48.el6_8.3.x86_64
---> Package perl.x86_64 4:5.10.1-141.el6_7.1 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-141.el6_7.1 for package: 4:perl-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-141.el6_7.1.x86_64
---> Package python-psycopg2.x86_64 0:2.0.14-2.el6 will be installed
--> Processing Dependency: libpq.so.5()(64bit) for package: python-psycopg2-2.0.14-2.el6.x86_64
---> Package redhat-lsb-core.x86_64 0:4.0-7.el6.centos will be installed
--> Processing Dependency: perl-Test-Simple for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: perl-Test-Harness for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: perl-ExtUtils-MakeMaker for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: perl-CGI for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /usr/bin/time for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /usr/bin/pax for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /usr/bin/patch for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /usr/bin/msgfmt for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /usr/bin/batch for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /usr/bin/at for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /bin/mailx for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /bin/gettext for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /bin/ed for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
---> Package rpcbind.x86_64 0:0.2.0-12.el6 will be installed
--> Processing Dependency: libgssglue for package: rpcbind-0.2.0-12.el6.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: rpcbind-0.2.0-12.el6.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package at.x86_64 0:3.1.10-48.el6 will be installed
---> Package bind-libs.x86_64 32:9.8.2-0.47.rc1.el6_8.2 will be installed
---> Package ed.x86_64 0:1.1-3.3.el6 will be installed
---> Package gettext.x86_64 0:0.17-18.el6 will be installed
--> Processing Dependency: libgomp.so.1(GOMP_1.0)(64bit) for package: gettext-0.17-18.el6.x86_64
--> Processing Dependency: cvs for package: gettext-0.17-18.el6.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gettext-0.17-18.el6.x86_64
---> Package httpd-tools.x86_64 0:2.2.15-54.el6.centos will be installed
---> Package krb5-devel.x86_64 0:1.10.3-57.el6 will be installed
--> Processing Dependency: krb5-libs = 1.10.3-57.el6 for package: krb5-devel-1.10.3-57.el6.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-57.el6.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-57.el6.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-57.el6.x86_64
---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed
---> Package libtirpc.x86_64 0:0.2.1-11.el6_8 will be installed
---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
---> Package mailx.x86_64 0:12.4-8.el6_6 will be installed
---> Package openssl.x86_64 0:1.0.1e-42.el6_7.2 will be updated
---> Package openssl.x86_64 0:1.0.1e-48.el6_8.3 will be an update
---> Package patch.x86_64 0:2.6-6.el6 will be installed
---> Package pax.x86_64 0:3.4-10.1.el6 will be installed
---> Package perl-CGI.x86_64 0:3.51-141.el6_7.1 will be installed
---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-141.el6_7.1 will be installed
--> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64
---> Package perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-141.el6_7.1.x86_64
---> Package perl-Test-Harness.x86_64 0:3.17-141.el6_7.1 will be installed
---> Package perl-Test-Simple.x86_64 0:0.92-141.el6_7.1 will be installed
---> Package perl-libs.x86_64 4:5.10.1-141.el6_7.1 will be installed
---> Package perl-version.x86_64 3:0.77-141.el6_7.1 will be installed
---> Package postgresql-libs.x86_64 0:8.4.20-6.el6 will be installed
---> Package time.x86_64 0:1.7-38.el6 will be installed
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package cvs.x86_64 0:1.11.23-16.el6 will be installed
---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed
---> Package krb5-libs.x86_64 0:1.10.3-42.el6 will be updated
---> Package krb5-libs.x86_64 0:1.10.3-57.el6 will be an update
---> Package libcom_err-devel.x86_64 0:1.41.12-22.el6 will be installed
---> Package libgomp.x86_64 0:4.4.7-17.el6 will be installed
---> Package libselinux-devel.x86_64 0:2.0.94-7.el6 will be installed
--> Processing Dependency: libselinux = 2.0.94-7.el6 for package: libselinux-devel-2.0.94-7.el6.x86_64
--> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-7.el6.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-7.el6.x86_64
---> Package perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1 will be installed
---> Package perl-devel.x86_64 4:5.10.1-141.el6_7.1 will be installed
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: glibc-devel for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: db4-devel for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Running transaction check
---> Package db4-devel.x86_64 0:4.7.25-20.el6_7 will be installed
--> Processing Dependency: db4-cxx = 4.7.25-20.el6_7 for package: db4-devel-4.7.25-20.el6_7.x86_64
--> Processing Dependency: libdb_cxx-4.7.so()(64bit) for package: db4-devel-4.7.25-20.el6_7.x86_64
---> Package gdbm-devel.x86_64 0:1.8.0-39.el6 will be installed
--> Processing Dependency: gdbm = 1.8.0-39.el6 for package: gdbm-devel-1.8.0-39.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.192.el6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.192.el6 for package: glibc-devel-2.12-1.192.el6.x86_64
--> Processing Dependency: glibc = 2.12-1.192.el6 for package: glibc-devel-2.12-1.192.el6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.192.el6.x86_64
---> Package libselinux.x86_64 0:2.0.94-5.8.el6 will be updated
--> Processing Dependency: libselinux = 2.0.94-5.8.el6 for package: libselinux-utils-2.0.94-5.8.el6.x86_64
--> Processing Dependency: libselinux = 2.0.94-5.8.el6 for package: libselinux-python-2.0.94-5.8.el6.x86_64
---> Package libselinux.x86_64 0:2.0.94-7.el6 will be an update
---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed
---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-141.el6_7.1 will be installed
--> Running transaction check
---> Package db4-cxx.x86_64 0:4.7.25-20.el6_7 will be installed
---> Package gdbm.x86_64 0:1.8.0-38.el6 will be updated
---> Package gdbm.x86_64 0:1.8.0-39.el6 will be an update
---> Package glibc.x86_64 0:2.12-1.166.el6_7.7 will be updated
--> Processing Dependency: glibc = 2.12-1.166.el6_7.7 for package: glibc-common-2.12-1.166.el6_7.7.x86_64
---> Package glibc.x86_64 0:2.12-1.192.el6 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.192.el6 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.192.el6.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.192.el6.x86_64
---> Package libselinux-python.x86_64 0:2.0.94-5.8.el6 will be updated
---> Package libselinux-python.x86_64 0:2.0.94-7.el6 will be an update
---> Package libselinux-utils.x86_64 0:2.0.94-5.8.el6 will be updated
---> Package libselinux-utils.x86_64 0:2.0.94-7.el6 will be an update
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.166.el6_7.7 will be updated
---> Package glibc-common.x86_64 0:2.12-1.192.el6 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-642.6.2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
cloudera-manager-agent x86_64 5.7.0-1.cm570.p0.76.el6 cloudera-manager 7.5 M
Installing for dependencies:
MySQL-python x86_64 1.2.3-0.3.c1.1.el6 base 86 k
libselinux x86_64 2.0.94-7.el6 base 109 k
libselinux-python x86_64 2.0.94-7.el6 base 203 k
libselinux-utils x86_64 2.0.94-7.el6 base 82 k
openssl x86_64 1.0.1e-48.el6_8.3 updates 1.5 M
Transaction Summary
================================================================================
Install 57 Package(s)
Upgrade 8 Package(s)
Total download size: 601 M
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Download delta size: 447 k
Presto reduced the update size by 72% (from 1.5 M to 447 k).
Package(s) data still to download: 600 M
--------------------------------------------------------------------------------
Total 20 MB/s | 600 MB 00:30
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Dependency Updated:
Complete!
END (0)
remote package cloudera-manager-agent installed
Installing cloudera-manager-daemons package...
BEGIN yum list installed cloudera-manager-daemons
Loaded plugins: fastestmirror, presto
Installed Packages
cloudera-manager-daemons.x86_64 5.7.0-1.cm570.p0.76.el6 #cloudera-manager
END (0)
BEGIN echo jdk oracle-j2sdk1.7 cloudera-manager-agent cloudera-manager-daemons | grep cloudera-manager-daemons
jdk oracle-j2sdk1.7 cloudera-manager-agent cloudera-manager-daemons
END (0)
BEGIN yum info cloudera-manager-daemons
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: mirrors.unifiedlayer.com
* extras: bay.uchicago.edu
* updates: repo1.sea.innoscale.net
Installed Packages
Name : cloudera-manager-daemons
Arch : x86_64
Version : 5.7.0
Release : 1.cm570.p0.76.el6
Size : 861 M
Repo : installed
From repo : cloudera-manager
Summary : Provides daemons for monitoring Hadoop and related tools.
URL : http://www.cloudera.com
License : Proprietary
Description : This package includes daemons for monitoring and managing Hadoop.
END (0)
Version : 5.7.0
Release : 1.cm570.p0.76.el6
BEGIN yum -y install cloudera-manager-daemons
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.unifiedlayer.com
* extras: bay.uchicago.edu
* updates: repo1.sea.innoscale.net
Package cloudera-manager-daemons-5.7.0-1.cm570.p0.76.el6.x86_64 already installed and latest version
Nothing to do
END (0)
remote package cloudera-manager-daemons installed
Installing Unlimited Strength Encryption policy files.
Installation not requested. Step will be skipped.
Configuring Cloudera Manager Agent...
BEGIN grep server_host=182.18.170.55 /etc/cloudera-scm-agent/config.ini
END (1)
BEGIN sed -e 's/\(server_host=\).*/\1182.18.170.55/' -i /etc/cloudera-scm-agent/config.ini
END (0)
scm agent configured
Starting Cloudera Manager Agent...
BEGIN /sbin/service cloudera-scm-agent status
cloudera-scm-agent is stopped
END (3)
BEGIN /sbin/service cloudera-scm-agent start
Starting cloudera-scm-agent: [60G[[0;32m OK [0;39m]
END (0)
agent logs:
BEGIN tail -n 50 /var/log/cloudera-scm-agent//cloudera-scm-agent.out | sed 's/^/>>/'
>>/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.7.0-py2.6.egg/cmf/parcel.py:17: DeprecationWarning: the sets module is deprecated
>> from sets import Set
>>[01/Nov/2016 18:02:16 +0000] 6456 MainThread agent INFO SCM Agent Version: 5.7.0
>>/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.7.0-py2.6.egg/cmf/parcel.py:17: DeprecationWarning: the sets module is deprecated
>> from sets import Set
>>[01/Nov/2016 18:02:16 +0000] 6456 MainThread agent INFO SCM Agent Version: 5.7.0
END (0)
BEGIN tail -n 50 /var/log/cloudera-scm-agent//cloudera-scm-agent.log | sed 's/^/>>/'
tail: cannot open `/var/log/cloudera-scm-agent//cloudera-scm-agent.log' for reading: No such file or directory
tail: cannot open `/var/log/cloudera-scm-agent//cloudera-scm-agent.log' for reading: No such file or directory
END (0)
end of agent logs.
scm agent started
Installation script completed successfully.
all done
closing logging file descriptor

This is not a ping issue, because the client timeouts it sounds like a firewall issue.
Check from the client that you can reach the registration port on the server, I think it's 7182 (you can use a tool like telnet to test you can reach from the agent host to the server using that port)
If I remember correctly, the default security configuration is amazon is to only allow a few basic ports and firewall the rest.
Are both hosts in the same AWS security group?

I was getting similar error and it got resolved by doing the below:
Installation successfully completed now. Resolution: I did two things 1) : Disabled firewall by doing iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -F . 2) The second thing is giving internal IP instead of external IP while adding hosts.

Related

yum update reports errors on EC2 on package dependency

Performing yum update -y on EC2 reports errors below
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:18.06.1ce-10.amzn2 will be updated
---> Package docker.x86_64 0:18.09.9ce-2.amzn2 will be an update
--> Processing Dependency: runc = 1.0.0 for package: docker-18.09.9ce-2.amzn2.x86_64
--> Processing Dependency: containerd = 1.2.6 for package: docker-18.09.9ce-2.amzn2.x86_64
---> Package jenkins.noarch 0:2.208-1.1 will be updated
---> Package jenkins.noarch 0:2.209-1.1 will be an update
---> Package libcgroup.x86_64 0:0.41-15.amzn2 will be updated
---> Package libcgroup.x86_64 0:0.41-21.amzn2 will be an update
---> Package libseccomp.x86_64 0:2.3.1-3.amzn2.0.3 will be updated
---> Package libseccomp.x86_64 0:2.4.1-1.amzn2 will be an update
--> Running transaction check
---> Package containerd.io.x86_64 0:1.2.10-3.2.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.2.10-3.2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: containerd.io-1.2.10-3.2.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I could potentially perform workaround as suggested but I am inclined not to as I want always a clean update.
Some additional information:
yum repolist
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
repo id repo name status
!amzn2-core/2/x86_64 Amazon Linux 2 core repository 17,916
amzn2extra-ansible2/2/x86_64 Amazon Extras repo for ansible2 47
amzn2extra-docker/2/x86_64 Amazon Extras repo for docker 19
docker-ce-stable/x86_64 Docker CE Stable - x86_64 63
epel-apache-maven/x86_64 maven from apache foundation. 4
jenkins Jenkins 537
I did
yum clean all
But still no charm
Unable to find package container-selinux on EC2 as well
sudo yum whatprovides container-selinux
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core/2/x86_64/filelists_db | 31 MB 00:00:00
amzn2extra-ansible2/2/x86_64/filelists_db | 264 kB 00:00:00
amzn2extra-docker/2/x86_64/filelists_db | 10 kB 00:00:00
docker-ce-stable/x86_64/filelists_db | 18 kB 00:00:00
epel-apache-maven/x86_64/filelists_db | 4.6 kB 00:00:00
jenkins/filelists_db | 91 kB 00:00:00
No matches found
subscription-manager reports command not found..
subscription-manager repos --enable=rhel-7-server-extras-rpms
-bash: subscription-manager: command not found
Any idea any clues, or this should be raised as a Ticket with AWS?

Error installing Elasticsearch 7 - Failed dependencies

On my dedicated server I currently have Elasticsearch 6 installed. I would like to upgrade to Elasticsearch 7. I'm using the "Download and install the RPM Manually" method. Here's the link that explains the steps:
https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html
Here are my terminal steps:
[root#server ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm
--2019-04-18 17:19:20-- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm
Resolving artifacts.elastic.co (artifacts.elastic.co)... 2a04:4e42:2e::734, 151.101.198.222
Connecting to artifacts.elastic.co (artifacts.elastic.co)|2a04:4e42:2e::734|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 346827255 (331M) [application/octet-stream]
Saving to: ‘elasticsearch-7.0.0-x86_64.rpm’
100%[=============================================================================================================================================>] 346,827,255 106MB/s in 3.3s
2019-04-18 17:19:43 (102 MB/s) - ‘elasticsearch-7.0.0-x86_64.rpm’ saved [346827255/346827255]
[root#server ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm.sha512
--2019-04-18 17:20:01-- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm.sha512
Resolving artifacts.elastic.co (artifacts.elastic.co)... 2a04:4e42:2e::734, 151.101.198.222
Connecting to artifacts.elastic.co (artifacts.elastic.co)|2a04:4e42:2e::734|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160 [application/octet-stream]
Saving to: ‘elasticsearch-7.0.0-x86_64.rpm.sha512’
100%[=============================================================================================================================================>] 160 --.-K/s in 0s
2019-04-18 17:20:01 (22.7 MB/s) - ‘elasticsearch-7.0.0-x86_64.rpm.sha512’ saved [160/160]
[root#server ~]# shasum -a 512 -c elasticsearch-7.0.0-x86_64.rpm.sha512
elasticsearch-7.0.0-x86_64.rpm: OK
[root#server ~]# sudo rpm --install elasticsearch-7.0.0-x86_64.rpm
warning: elasticsearch-7.0.0-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
error: Failed dependencies:
elasticsearch < 7.0.0 is obsoleted by elasticsearch-0:7.0.0-1.x86_64
Here are my server specifications:
Centos: 7.6
Java:
openjdk version "1.8.0_201"
OpenJDK Runtime Environment (build 1.8.0_201-b09)
OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode)
Did you add the RPM repository previously? I'm not sure where else the obsoleted by elasticsearch-0:7.0.0-1.x86_64 would be coming from otherwise.
If so I'd clean the cache directory, fetch all available versions, and then install the desired one:
yum clean all
yum --showduplicate list elasticsearch
yum install elasticsearch-0:7.0.0-1.x86_64

Shibboleth Dependency Error

I'm trying to install Shibboleth on Amazon linux using the repo below.
[security_shibboleth]
name=Shibboleth (CentOS_7)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/security:/shibboleth/CentOS_7/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/security:/shibboleth/CentOS_7/repodata/repomd.xml.key
enabled=1
but I'm getting this dependency error.
Resolving Dependencies
--> Running transaction check
---> Package shibboleth.x86_64 0:2.6.0-2.1 will be installed
--> Processing Dependency: libsystemd-daemon.so.0(LIBSYSTEMD_DAEMON_31)(64bit) for package: shibboleth-2.6.0-2.1.x86_64
--> Processing Dependency: libsystemd-daemon.so.0()(64bit) for package: shibboleth-2.6.0-2.1.x86_64
--> Finished Dependency Resolution
Error: Package: shibboleth-2.6.0-2.1.x86_64 (security_shibboleth)
Requires: libsystemd-daemon.so.0(LIBSYSTEMD_DAEMON_31)(64bit)
Error: Package: shibboleth-2.6.0-2.1.x86_64 (security_shibboleth)
Requires: libsystemd-daemon.so.0()(64bit)
Can someone please assist in resolving this error?
I'm pretty sure Amazon linux is RHEL6 compatible, not RHEL7
this is what I have for my yum repo and it's been working fine for a while :
[shib.repo]
baseurl = http://download.opensuse.org/repositories/security:/shibboleth/RHEL_6/
enabled = 1
gpgcheck = 1
gpgkey = http://download.opensuse.org/repositories/security:/shibboleth/RHEL_6/repodata/repomd.xml.key
name = Shibboleth (RHEL_6)
That said, the opensuse repo are currently down, see the note here : https://shibboleth.net/downloads/service-provider/latest/RPMS/
NOTE: As of the moment, Sep 6, 2017, the OpenSUSE site's publishing of
packages is offline. Until that changes, these packages are not going
to be available, no matter what you do. There is nothing the project
can do about that.
Opensuse repo is back up again

How to install "oracle-rdbms-server-12cR1-preinstall" on Red Hat Enterprise Linux Server release 7.0 (Maipo)

This is what I get when trying to install:
[root#ilorafraud3 yum.repos.d]# **yum install oracle-rdbms-server-12cR1-preinstall -y**
Loaded plugins: langpacks, product-id, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-13.el6 will be installed
--> Processing Dependency: kernel-uek for package: oracle-rdbms-server-12cR1-preinstall-1.0-13.el6.x86_64
--> Processing Dependency: ksh for package: oracle-rdbms-server-12cR1-preinstall-1.0-13.el6.x86_64
--> Processing Dependency: libaio-devel for package: oracle-rdbms-server-12cR1-preinstall-1.0-13.el6.x86_64
--> Processing Dependency: compat-libstdc++-33 for package: oracle-rdbms-server-12cR1-preinstall-1.0-13.el6.x86_64
--> Running transaction check
---> Package compat-libstdc++-33.x86_64 0:3.2.3-69.el6 will be installed
---> Package kernel-uek.x86_64 0:2.6.39-400.250.6.el6uek will be installed
--> Processing Dependency: kernel-uek-firmware = 2.6.39-400.250.6.el6uek for package: kernel-uek-2.6.39-400.250.6.el6uek.x86_64
--> Processing Dependency: ql23xx-firmware for package: kernel-uek-2.6.39-400.250.6.el6uek.x86_64
---> Package ksh.x86_64 0:20120801-21.el6_6.3 will be installed
---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed
--> Processing Dependency: libaio = 0.3.107-10.el6 for package: libaio-devel-0.3.107-10.el6.x86_64
--> Running transaction check
---> Package kernel-uek-firmware.noarch 0:2.6.39-400.250.6.el6uek will be installed
---> Package libaio.i686 0:0.3.107-10.el6 will be installed
---> Package ql23xx-firmware.noarch 0:3.03.27-3.1.el6 will be installed
Removing ql23xx-firmware.noarch 0:3.03.27-3.1.el6 - u due to obsoletes from installed linux-firmware-20140213-0.3.git4164c23.el7.noarch
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package ql23xx-firmware.noarch 0:3.03.27-3.1.el6 will be installed
--> Processing Dependency: ql23xx-firmware for package: kernel-uek-2.6.39-400.250.6.el6uek.x86_64
--> Finished Dependency Resolution
Error: Package: kernel-uek-2.6.39-400.250.6.el6uek.x86_64 (ol6_UEK_latest)
Requires: ql23xx-firmware
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root#ilorafraud3 yum.repos.d]#
What really worked, in a clean (and safe) way, for me was to rebuild the original source RPM without the kernel-uek requirement:
[mockbuild#eb1ts-ora04 SPECS]$ diff oracle-rdbms-server-12cR1-preinstall.spec oracle-rdbms-server-12cR1-preinstall.spec.orig
24c24
< #Requires:kernel-uek
---
> Requires:kernel-uek
All the credit should got to flashdba for all details and possible alternative ways explained here:
https://flashdba.com/install-cookbooks/using-oracle-preinstall-rpm-with-red-hat-6/
You can find the Oracle RPMs in the links below:
OL6: https://oss.oracle.com/ol6/SRPMS-updates/
OL7: https://oss.oracle.com/ol7/SRPMS-updates/

EC2 yum update fails

I have an instance on EC2 running Amazon's AMI. Beginning this week, I'm unable to complete a yum update due to an issue with dependency resolution:
$ yum update
Loaded plugins: fastestmirror, priorities, update-motd, upgrade-helper
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
* epel: mirror.symnds.com
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
652 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package device-mapper.x86_64 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper.x86_64 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-event.x86_64 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-event.x86_64 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-event-libs.i686 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-event-libs.x86_64 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-event-libs.i686 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-event-libs.x86_64 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-libs.i686 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-libs.x86_64 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-libs.i686 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-libs.x86_64 0:1.02.77-9.20.amzn1 will be an update
---> Package libblkid.i686 0:2.17.2-13.16.amzn1 will be updated
--> Processing Dependency: libblkid = 2.17.2-13.16.amzn1 for package: util-linux-ng-2.17.2-13.16.amzn1.i686
---> Package libblkid.x86_64 0:2.17.2-13.16.amzn1 will be updated
--> Processing Dependency: libblkid = 2.17.2-13.16.amzn1 for package: util-linux-ng-2.17.2-13.16.amzn1.i686
---> Package libblkid.i686 0:2.17.2-13.17.amzn1 will be an update
---> Package libblkid.x86_64 0:2.17.2-13.17.amzn1 will be an update
---> Package libuuid.i686 0:2.17.2-13.16.amzn1 will be updated
--> Processing Dependency: libuuid = 2.17.2-13.16.amzn1 for package: util-linux-ng-2.17.2-13.16.amzn1.i686
---> Package libuuid.x86_64 0:2.17.2-13.16.amzn1 will be updated
--> Processing Dependency: libuuid = 2.17.2-13.16.amzn1 for package: util-linux-ng-2.17.2-13.16.amzn1.i686
---> Package libuuid.i686 0:2.17.2-13.17.amzn1 will be an update
---> Package libuuid.x86_64 0:2.17.2-13.17.amzn1 will be an update
---> Package lvm2.x86_64 0:2.02.98-9.19.amzn1 will be updated
---> Package lvm2.x86_64 0:2.02.98-9.20.amzn1 will be an update
---> Package lvm2-libs.x86_64 0:2.02.98-9.19.amzn1 will be updated
---> Package lvm2-libs.x86_64 0:2.02.98-9.20.amzn1 will be an update
---> Package util-linux-ng.x86_64 0:2.17.2-13.16.amzn1 will be updated
---> Package util-linux-ng.x86_64 0:2.17.2-13.17.amzn1 will be an update
--> Finished Dependency Resolution
Error: Package: util-linux-ng-2.17.2-13.16.amzn1.i686 (#amzn-main)
Requires: libblkid = 2.17.2-13.16.amzn1
Removing: libblkid-2.17.2-13.16.amzn1.i686 (#amzn-main)
libblkid = 2.17.2-13.16.amzn1
Updated By: libblkid-2.17.2-13.17.amzn1.i686 (amzn-updates)
libblkid = 2.17.2-13.17.amzn1
Error: Package: util-linux-ng-2.17.2-13.16.amzn1.i686 (#amzn-main)
Requires: libuuid = 2.17.2-13.16.amzn1
Removing: libuuid-2.17.2-13.16.amzn1.i686 (#amzn-main)
libuuid = 2.17.2-13.16.amzn1
Updated By: libuuid-2.17.2-13.17.amzn1.i686 (amzn-updates)
libuuid = 2.17.2-13.17.amzn1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I really don't think removing util-linux-ng to resolve the dependency would be a good solution as I'm seeing quite a few critical tools in that package. Does anyone have a good solution? Thanks in advance.
yum clean all
and
yum update
fixed the issue for me.
yum clean all will remove everything that yum caches, ensure you are not relying on any cached data before running the command.
Looks like you need to wait for Amazon to update to util-linux-ng-2.17.2-13.17.amzn1.i686
In the meantime, you can follow the suggestion:
You could try using --skip-broken to work around the problem
By running:
yum update --skip-broken
To update everything else.

Resources