<?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 Re: Null Pointer Exception in ambari-server logs after ambari-server restart - What could I do? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Null-Pointer-Exception-in-ambari-server-logs-after-ambari/m-p/230539#M192389</link>
    <description>&lt;P&gt;Now that I think more about this, I guess that &lt;/P&gt;&lt;PRE&gt;Unable to connect to: &lt;A href="https://hadoop-m:8441/agent/v1/register/hadoop-m.c.hdp-1-163209.internal"&gt;https://hadoop-m:8441/agent/v1/register/hadoop-m.c.hdp-1-163209.internal&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;started to occur when ambari server started to throw NPEs, which I detected right after (re)starting it, which I did right after I copied HUE to ambari's stack with:&lt;/P&gt;&lt;PRE&gt;sudo git clone &lt;A href="https://github.com/EsharEditor/ambari-hue-service.git"&gt;https://github.com/EsharEditor/ambari-hue-service.git&lt;/A&gt; /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/HUE&lt;/PRE&gt;&lt;P&gt;(which are the very first steps of HUE installation guide via ambari).&lt;/P&gt;&lt;P&gt;Regarding FQDNs, connectivity ambari server &amp;lt;-&amp;gt; ambari agents and handshake/registration ports (8440/8441).&lt;/P&gt;&lt;P&gt;@hadoop-m&lt;/P&gt;&lt;PRE&gt;$ more /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain610.132.0.4
hadoop-m.c.hdp-1-163209.internal hadoop-m  # Added by Google
169.254.169.254 metadata.google.internal  # Added by Google
&lt;/PRE&gt;&lt;PRE&gt;$ hostname -f
hadoop-m.c.hdp-1-163209.internal
&lt;/PRE&gt;&lt;P&gt;@hadoop-w-0&lt;/P&gt;&lt;PRE&gt;127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.132.0.2 hadoop-w-0.c.hdp-1-163209.internal hadoop-w-0  # Added by Google
169.254.169.254 metadata.google.internal  # Added by Google&lt;/PRE&gt;&lt;PRE&gt;$ hostname -f
hadoop-w-0.c.hdp-1-163209.internal&lt;/PRE&gt;&lt;PRE&gt;$ telnet  hadoop-m  8440
Trying 10.132.0.4...
Connected to hadoop-m.
Escape character is '^]'.&lt;/PRE&gt;&lt;PRE&gt;$ telnet  hadoop-m  8441
Trying 10.132.0.4...
Connected to hadoop-m.
Escape character is '^]'.
&lt;/PRE&gt;&lt;PRE&gt;$ openssl s_client -connect hadoop-m:8440 
CONNECTED(00000003)
(... I removed lines ...)
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIFnDCCA4SgAwIBAgIBATAN (...I removed rest...)
&lt;/PRE&gt;&lt;PRE&gt;$ openssl s_client -connect hadoop-m:8441
CONNECTED(00000003)
(... I removed lines ...)
-----BEGIN CERTIFICATE-----
MIIFnDCCA4SgAwIBAgIBAT (...I removed rest...)
&lt;/PRE&gt;&lt;P&gt;@hadoop-w-1&lt;/P&gt;&lt;PRE&gt;$ more /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.132.0.3 hadoop-w-1.c.hdp-1-163209.internal hadoop-w-1  # Added by Google
169.254.169.254 metadata.google.internal  # Added by Google&lt;/PRE&gt;&lt;PRE&gt;$ hostname -f
hadoop-w-1.c.hdp-1-163209.internal
&lt;/PRE&gt;&lt;PRE&gt;$ telnet  hadoop-m  8440
Trying 10.132.0.4...
Connected to hadoop-m.
Escape character is '^]'.&lt;/PRE&gt;&lt;PRE&gt;$ telnet  hadoop-m  8441
Trying 10.132.0.4...
Connected to hadoop-m.
Escape character is '^]'.&lt;/PRE&gt;&lt;PRE&gt;$ openssl s_client -connect hadoop-m:8440 
CONNECTED(00000003)
(... I removed lines ...)
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIFnDCCA4SgAwIBAgIBATAN (...I removed rest...)&lt;/PRE&gt;&lt;PRE&gt;$ openssl s_client -connect hadoop-m:8441
CONNECTED(00000003)
(... I removed lines ...)
-----BEGIN CERTIFICATE-----
MIIFnDCCA4SgAwIBAgIBAT (...I removed rest...)&lt;/PRE&gt;&lt;P&gt;It looks as it should, doesn't it?&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2017 02:07:08 GMT</pubDate>
    <dc:creator>rafael_gomez_g</dc:creator>
    <dc:date>2017-05-17T02:07:08Z</dc:date>
  </channel>
</rss>

