Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

HWX 2.6 sandbox in virtual box - not able to start services

New Contributor

HWX 2.6 sandbox in virtual box - not able to start services (HDFS or ANY services using Ambari).

  1. Vt-x enabled.
  2. Server didnt start and timed out so increased timeout in "/etc/ambari-server/conf/ambari.properties" - server.startup.web.timeout=180 - WORKS NOW.
  3. As hdfs user - safe mode is OFF as well using command - hdfs dfsadmin -safemode leave
  4. yum update and yum install -y hadooplzo hadooplzo-native done as well.
  5. Can see the below in /etc/hosts

172.17.0.2 sandbox-hdp.hortonworks.com sandbox-hdp

127.0.0.1 sandbox.hortonworks.com

Connection refused error :

[root@sandbox-hdp ~]# telnet sandbox.hortonworks.com 8020 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused

[root@sandbox-hdp ~]# telnet sandbox.hortonworks.com 8080 (WORKS) Trying 127.0.0.1... Connected to sandbox.hortonworks.com. Escape character is '^]'.

ambari-agent.log

INFO 2018-06-18 09:59:06,502 NetUtil.py:70 - Connecting to https://sandbox.hortonworks.com:8440/ca ERROR 2018-06-18 09:59:06,569 NetUtil.py:96 - [Errno 8] _ssl.c:492: EOF occurred in violation of protocol ERROR 2018-06-18 09:59:06,571 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. WARNING 2018-06-18 09:59:06,576 NetUtil.py:124 - Server at https://sandbox.hortonworks.com:8440 is not reachable, sleeping for 10 seconds...

5 REPLIES 5

Super Mentor

@Arun Srinivasan

As you are getting the following error:

NetUtil.py:70 - Connecting to https://sandbox.hortonworks.com:8440/ca 
ERROR 2018-06-18 09:59:06,569 NetUtil.py:96 - [Errno 8] _ssl.c:492: EOF occurred in violation of protocol 

.

Hence please try editing each Ambari Agent’s /etc/ambari-agent/conf/ambari-agent.ini file and adding the following configuration property to the security section:

[security]
force_https_protocol=PROTOCOL_TLSv1_2

Then restart the ambari agent.

For more info on this please refer to: https://community.hortonworks.com/articles/188269/javapython-updates-and-ambari-agent-tls-settings.h...

New Contributor

Hi,

As per the link, I have checked the java version and included your suggestion and now the error is

Failed to connect to https://sandbox.hortonworks.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'

[root@sandbox-hdp ~]# /usr/lib/jvm/java/bin/java -version openjdk version "1.8.0_171" OpenJDK Runtime Environment (build 1.8.0_171-b10) OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)

[root@sandbox-hdp ~]# [root@sandbox-hdp ~]# tail /var/log/ambari-agent/ambari-agent.log WARNING 2018-06-18 11:08:29,914 NetUtil.py:124 - Server at https://sandbox.hortonworks.com:8440 is not reachable, sleeping for 10 seconds...

INFO 2018-06-18 11:08:39,922 NetUtil.py:70 - Connecting to https://sandbox.hortonworks.com:8440/ca WARNING 2018-06-18 11:08:39,929 NetUtil.py:101 - Failed to connect to https://sandbox.hortonworks.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'

Super Mentor

@Arun Srinivasan

The following error can occur if your Pytho Version is lower than "2.7.5"

 Failed to connect to https://sandbox.hortonworks.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'

Can you please let us know what is your python version?

Also what is your OS version and Java version?

Are you using Standard HDP Sandbox 2.6 Or have you installed/changes any binary on it like JDK/Python version? Or performed a yum upgrade?

There are two situations that have to be considered when solving this problem:

1.) If you are running CentOS 6 or SLES 11 the version of Python (2.6.x) does not work with TLSv1.2, so you must make changes to your newly updated JDK in order to proceed.

2.) If you are running CentOS 7, Debian 7, Ubuntu 14 & 16, or SLES 12 the version of Python (2.7.x) does work with TLS v1.2, so you only have to make changes to the Ambari Agent configuration to tell it to use TLS v1.2 in order to proceed.

.

New Contributor
[root@sandbox-hdp ~]# java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-b10)
OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)

[root@sandbox-hdp ~]# python -V
Python 2.6.6

[root@sandbox-hdp ~]# cat /etc/*-release
CentOS release 6.9 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.9 (Final)
CentOS release 6.9 (Final)


New Contributor

Tried deleting the VM (HDP 2.6.4 sandbox for VirtualBox) and imported again.

1. server was not starting to included server.startup.web.timeout=180 in "/etc/ambari-server/conf/ambari.properties"

2. Trying to leave safe mode and getting connection refused in this step itself.

[root@sandbox-hdp ~]# su - hdfs
[hdfs@sandbox-hdp ~]$ hdfs dfsadmin -safemode leave
safemode: Call From sandbox-hdp.hortonworks.com/172.17.0.2 to sandbox-hdp.hortonworks.com:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefus