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.

New host registration failing on SUSE Linux 11

Highlighted

New host registration failing on SUSE Linux 11

Rising Star

@Jay Kumar SenSharma

Trying to register another host ( SUSE LINUX 11, SP4) and getting the following error.

OS: SUSE LINUX 11, SP4

Python: 2.6.9

AMbari-Agent: 2.5.1

WARNING 2018-05-02 10:30:45,836 NetUtil.py:101 - Failed to connect to https://ambari.asotc.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'  
3 REPLIES 3
Highlighted

Re: New host registration failing on SUSE Linux 11

Super Mentor

@Prakash Punj

Have you recently tried adding the following kind of property entry inside the "ambari-agent" file ? Is it added correctly? inside the [security] block?

# grep 'PROTOCOL_TLSv1_2' /etc/ambari-agent/conf/ambari-agent.ini
force_https_protocol=PROTOCOL_TLSv1_2

.

Can you please share the ambari-agent.ini file here and also verify if the content of this file is same as pther working agent machines?

Also please share the output of the following command:

# ambari-agent --version

.

Highlighted

Re: New host registration failing on SUSE Linux 11

Rising Star
@Jay Kumar SenSharma

Please find below ambari-agent INI and versio

# Licensed to the Apache Software Foundation (ASF) under one or more

# contributor license agreements.  See the NOTICE file distributed with

# this work for additional information regarding copyright ownership.

# The ASF licenses this file to You under the Apache License, Version 2.0

# (the "License"); you may not use this file except in compliance with

# the License.  You may obtain a copy of the License at

#

#     http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific




[server]

hostname=ambari.asotc.com

url_port=8440

secured_url_port=8441

connect_retry_delay=10

max_reconnect_retry_delay=30







[agent]

logdir=/var/log/ambari-agent

piddir=/var/run/ambari-agent

prefix=/var/lib/ambari-agent/data

;loglevel=(DEBUG/INFO)

loglevel=DEBUG

data_cleanup_interval=86400

data_cleanup_max_age=2592000

data_cleanup_max_size_MB = 100

ping_port=8670

cache_dir=/var/lib/ambari-agent/cache

tolerate_download_failures=true

run_as_user=root

parallel_execution=0

alert_grace_period=5

status_command_timeout=5

alert_kinit_timeout=14400000

system_resource_overrides=/etc/resource_overrides

; memory_threshold_soft_mb=400

; memory_threshold_hard_mb=1000

; ignore_mount_points=/mnt/custom1,/mnt/custom2

[security]

force_https_protocol=PROTOCOL_TLSv1_2

keysdir=/var/lib/ambari-agent/keys

server_crt=ca.crt

passphrase_env_var_name=AMBARI_PASSPHRASE

ssl_verify_cert=0

credential_lib_dir=/var/lib/ambari-agent/cred/lib

credential_conf_dir=/var/lib/ambari-agent/cred/conf

credential_shell_cmd=org.apache.hadoop.security.alias.CredentialShell

[n_protocol=PROTOCOL_TLSv1_2twork]

[services]

pidLookupPath=/var/run/

[heartbeat]

state_interval_seconds=60

dirs=/etc/hadoop,/etc/hadoop/conf,/etc/hbase,/etc/hcatalog,/etc/hive,/etc/oozie,

  /etc/sqoop,

  /var/run/hadoop,/var/run/zookeeper,/var/run/hbase,/var/run/templeton,/var/run/oozie,

  /var/log/hadoop,/var/log/zookeeper,/var/log/hbase,/var/run/templeton,/var/log/hive

; 0 - unlimited

log_lines_count=300

idle_interval_min=1

idle_interval_max=10

[logging]

syslog_enabled=0
vds:~ # ambari-agent --version
2.5.1.0


Re: New host registration failing on SUSE Linux 11

Rising Star
INFO 2018-05-04 10:36:31,383 NetUtil.py:70 - Connecting to https://ambari.asotc.com:8440/ca
WARNING 2018-05-04 10:36:31,384 NetUtil.py:101 - Failed to connect to https://ambari.asotc.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'  
WARNING 2018-05-04 10:36:31,384 NetUtil.py:124 - Server at https://ambari.asotc.com:8440 is not reachable, sleeping for 10 seconds...
INFO 2018-05-04 10:36:41,384 NetUtil.py:70 - Connecting to https://ambari.asotc.com:8440/ca
WARNING 2018-05-04 10:36:41,385 NetUtil.py:101 - Failed to connect to https://ambari.asotc.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'  
WARNING 2018-05-04 10:36:41,386 NetUtil.py:124 - Server at https://ambari.asotc.com:8440 is not reachable, sleeping for 10 seconds...
INFO 2018-05-04 10:36:51,386 NetUtil.py:70 - Connecting to https://ambari.asotc.com:8440/ca
WARNING 2018-05-04 10:36:51,387 NetUtil.py:101 - Failed to connect to https://ambari.asotc.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'  
WARNING 2018-05-04 10:36:51,388 NetUtil.py:124 - Server at https://ambari.asotc.com:8440 is not reachable, sleeping for 10 seconds...
INFO 2018-05-04 10:37:01,388 NetUtil.py:70 - Connecting to https://ambari.asotc.com:8440/ca
WARNING 2018-05-04 10:37:01,389 NetUtil.py:101 - Failed to connect to https://ambari.asotc.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'  
WARNING 2018-05-04 10:37:01,390 NetUtil.py:124 - Server at https://ambari.asotc.com:8440 is not reachable, sleeping for 10 seconds...
INFO 2018-05-04 10:37:11,390 NetUtil.py:70 - Connecting to https://ambari.asotc.com:8440/ca
WARNING 2018-05-04 10:37:11,391 NetUtil.py:101 - Failed to connect to https://ambari.asotc.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'  
WARNING 2018-05-04 10:37:11,392 NetUtil.py:124 - Server at https://ambari.asotc.com:8440 is not reachable, sleeping for 10 seconds...
INFO 2018-05-04 10:37:21,392 NetUtil.py:70 - Connecting to https://ambari.asotc.com:8440/ca
WARNING 2018-05-04 10:37:21,393 NetUtil.py:101 - Failed to connect to https://ambari.asotc.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'  
WARNING 2018-05-04 10:37:21,394 NetUtil.py:124 - Server at https://ambari.asotc.com:8440 is not reachable, sleeping for 10 seconds...
INFO 2018-05-04 10:37:31,394 NetUtil.py:70 - Connecting to https://ambari.asotc.com:8440/ca
WARNING 2018-05-04 10:37:31,395 NetUtil.py:101 - Failed to connect to https://ambari.asotc.com:8440/ca due to 'module' object has no attribute 'PROTOCOL_TLSv1_2'  
WARNING 2018-05-04 10:37:31,396 NetUtil.py:124 - Server at https://ambari.asotc.com:8440 is not reachable, sleeping for 10 seconds...
Don't have an account?
Coming from Hortonworks? Activate your account here