<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NetUtil.py:96 - [Errno 8] _ssl.c:504: EOF occurred in violation of protocol in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NetUtil-py-96-Errno-8-ssl-c-504-EOF-occurred-in-violation-of/m-p/240159#M201965</link>
    <description>&lt;P&gt;Dear &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As per your suggested video link &lt;A href="https://www.youtube.com/watch?v=wHaVBoLwzwU"&gt;  https://www.youtube.com/watch?v=wHaVBoLwzwU&lt;/A&gt;  i have done all network setup ...and installation of  ambari server and ambari-agent...successfully by   local repo ....-&lt;/P&gt;&lt;P&gt;When i adding  only master , there is error to  register .....&lt;/P&gt;&lt;P&gt;see in ambari-agent log file .....&lt;/P&gt;&lt;P&gt;INFO 2019-01-10 08:35:21,750 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-01-10 08:35:21,751 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-01-10 08:35:21,751 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-01-10 08:35:21,754 DataCleaner.py:39 - Data cleanup thread started&lt;BR /&gt;INFO 2019-01-10 08:35:21,756 DataCleaner.py:120 - Data cleanup started&lt;BR /&gt;INFO 2019-01-10 08:35:21,758 DataCleaner.py:122 - Data cleanup finished&lt;BR /&gt;INFO 2019-01-10 08:35:21,820 PingPortListener.py:50 - Ping port listener started on port: 8670&lt;BR /&gt;INFO 2019-01-10 08:35:21,823 main.py:437 - Connecting to Ambari server at &lt;A href="https://master.alethe.com:8440" target="_blank"&gt;https://master.alethe.com:8440&lt;/A&gt; (192.168.1.191)&lt;BR /&gt;INFO 2019-01-10 08:35:21,824 NetUtil.py:70 - Connecting to &lt;A href="https://master.alethe.com:8440/ca" target="_blank"&gt;https://master.alethe.com:8440/ca&lt;/A&gt;&lt;BR /&gt;ERROR 2019-01-10 08:35:21,871 NetUtil.py:96 - [Errno 8] _ssl.c:504: EOF occurred in violation of protocol&lt;BR /&gt;ERROR 2019-01-10 08:35:21,871 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.&lt;BR /&gt;Refer to: &lt;A href="https://bugzilla.redhat.com/show_bug.cgi?id=1022468" target="_blank"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=1022468&lt;/A&gt; for more details.&lt;BR /&gt;WARNING 2019-01-10 08:35:21,871 NetUtil.py:124 - Server at &lt;A href="https://master.alethe.com:8440" target="_blank"&gt;https://master.alethe.com:8440&lt;/A&gt; is not reachable, sleeping for 10 seconds...&lt;/P&gt;&lt;P&gt;Also i have find the answer in below link &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/121978/openssl-compatibility.html?childToView=138080#answer-138080" target="_blank"&gt;https://community.hortonworks.com/questions/121978/openssl-compatibility.html?childToView=138080#answer-138080&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By adding below config in [security] section of&lt;/STRONG&gt; &lt;/P&gt;
&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;vi /etc/ambari-agent/conf/ambari-agent.ini&lt;/LI&gt;&lt;LI&gt;force_https_protocol=PROTOCOL_TLSv1_2&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;vi /etc/python/cert-verification.cfg &lt;/LI&gt;&lt;LI&gt;[https]&lt;/LI&gt;&lt;LI&gt;verify=disable&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;but in my System  /etc/python is not available , how to find  /python/cert-verificatin.cfg to change the verify=disable&lt;/P&gt;&lt;P&gt;My Operating System is  Centos 7&lt;/P&gt;&lt;P&gt;HDP2.6.3 AND AMBARI2.6&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 04:51:52 GMT</pubDate>
    <dc:creator>kunalrj946</dc:creator>
    <dc:date>2019-01-11T04:51:52Z</dc:date>
    <item>
      <title>NetUtil.py:96 - [Errno 8] _ssl.c:504: EOF occurred in violation of protocol</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NetUtil-py-96-Errno-8-ssl-c-504-EOF-occurred-in-violation-of/m-p/240159#M201965</link>
      <description>&lt;P&gt;Dear &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As per your suggested video link &lt;A href="https://www.youtube.com/watch?v=wHaVBoLwzwU"&gt;  https://www.youtube.com/watch?v=wHaVBoLwzwU&lt;/A&gt;  i have done all network setup ...and installation of  ambari server and ambari-agent...successfully by   local repo ....-&lt;/P&gt;&lt;P&gt;When i adding  only master , there is error to  register .....&lt;/P&gt;&lt;P&gt;see in ambari-agent log file .....&lt;/P&gt;&lt;P&gt;INFO 2019-01-10 08:35:21,750 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-01-10 08:35:21,751 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-01-10 08:35:21,751 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-01-10 08:35:21,754 DataCleaner.py:39 - Data cleanup thread started&lt;BR /&gt;INFO 2019-01-10 08:35:21,756 DataCleaner.py:120 - Data cleanup started&lt;BR /&gt;INFO 2019-01-10 08:35:21,758 DataCleaner.py:122 - Data cleanup finished&lt;BR /&gt;INFO 2019-01-10 08:35:21,820 PingPortListener.py:50 - Ping port listener started on port: 8670&lt;BR /&gt;INFO 2019-01-10 08:35:21,823 main.py:437 - Connecting to Ambari server at &lt;A href="https://master.alethe.com:8440" target="_blank"&gt;https://master.alethe.com:8440&lt;/A&gt; (192.168.1.191)&lt;BR /&gt;INFO 2019-01-10 08:35:21,824 NetUtil.py:70 - Connecting to &lt;A href="https://master.alethe.com:8440/ca" target="_blank"&gt;https://master.alethe.com:8440/ca&lt;/A&gt;&lt;BR /&gt;ERROR 2019-01-10 08:35:21,871 NetUtil.py:96 - [Errno 8] _ssl.c:504: EOF occurred in violation of protocol&lt;BR /&gt;ERROR 2019-01-10 08:35:21,871 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.&lt;BR /&gt;Refer to: &lt;A href="https://bugzilla.redhat.com/show_bug.cgi?id=1022468" target="_blank"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=1022468&lt;/A&gt; for more details.&lt;BR /&gt;WARNING 2019-01-10 08:35:21,871 NetUtil.py:124 - Server at &lt;A href="https://master.alethe.com:8440" target="_blank"&gt;https://master.alethe.com:8440&lt;/A&gt; is not reachable, sleeping for 10 seconds...&lt;/P&gt;&lt;P&gt;Also i have find the answer in below link &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/121978/openssl-compatibility.html?childToView=138080#answer-138080" target="_blank"&gt;https://community.hortonworks.com/questions/121978/openssl-compatibility.html?childToView=138080#answer-138080&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By adding below config in [security] section of&lt;/STRONG&gt; &lt;/P&gt;
&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;vi /etc/ambari-agent/conf/ambari-agent.ini&lt;/LI&gt;&lt;LI&gt;force_https_protocol=PROTOCOL_TLSv1_2&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;vi /etc/python/cert-verification.cfg &lt;/LI&gt;&lt;LI&gt;[https]&lt;/LI&gt;&lt;LI&gt;verify=disable&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;but in my System  /etc/python is not available , how to find  /python/cert-verificatin.cfg to change the verify=disable&lt;/P&gt;&lt;P&gt;My Operating System is  Centos 7&lt;/P&gt;&lt;P&gt;HDP2.6.3 AND AMBARI2.6&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 04:51:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NetUtil-py-96-Errno-8-ssl-c-504-EOF-occurred-in-violation-of/m-p/240159#M201965</guid>
      <dc:creator>kunalrj946</dc:creator>
      <dc:date>2019-01-11T04:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: NetUtil.py:96 - [Errno 8] _ssl.c:504: EOF occurred in violation of protocol</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NetUtil-py-96-Errno-8-ssl-c-504-EOF-occurred-in-violation-of/m-p/240160#M201966</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/97884/kunalrj946.html" nodeid="97884"&gt;@Kunal Kumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you are getting the following error:&lt;/P&gt;&lt;PRE&gt;NetUtil.py:96 - [Errno 8] _ssl.c:504: EOF occurred in violation of protocol&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;To solve this problem simply configure the Ambari Agent to use TLSv1.2 when communicating with the Ambari Server by editing each Ambari Agent’s&lt;STRONG&gt; /etc/ambari-agent/conf/ambari-agent.ini&lt;/STRONG&gt; file and adding the following configuration property to the security section:&lt;/P&gt;&lt;PRE&gt;[security]
force_https_protocol=PROTOCOL_TLSv1_2&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Refer to a detailed explanation on this flag in the following article:  &lt;A href="https://community.hortonworks.com/articles/188269/javapython-updates-and-ambari-agent-tls-settings.html" target="_blank"&gt;https://community.hortonworks.com/articles/188269/javapython-updates-and-ambari-agent-tls-settings.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Regarding  your query "how to find /python/cert-verificatin.cfg"  ?&lt;/P&gt;&lt;P&gt;There is no need to set the verify=disable for this issue .  However if you want to do it then you will have to manually create the mentioned file with the verify=disable.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 04:56:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NetUtil-py-96-Errno-8-ssl-c-504-EOF-occurred-in-violation-of/m-p/240160#M201966</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-01-11T04:56:18Z</dc:date>
    </item>
  </channel>
</rss>

