<?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: Ambari Metric Collector: Error sending metric to server. timed out in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97654#M60825</link>
    <description>&lt;P&gt;using ruok command to check, all 3 zookeeper processes are up and running:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./check_zookeeper.ksh
imok
imok
imok&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2015 04:13:32 GMT</pubDate>
    <dc:creator>WELI</dc:creator>
    <dc:date>2015-11-25T04:13:32Z</dc:date>
    <item>
      <title>Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97647#M60818</link>
      <description>&lt;P&gt;Had a disk full issue. After making some space in /var then trying to restart Metric Collector from Ambari, got error:&lt;/P&gt;&lt;P&gt;----------error ---------------&lt;/P&gt;&lt;PRE&gt;2015-11-24 11:35:54,281 [INFO] controller.py:110 - Adding event to cache,  : {u'metrics': [], u'collect_every': u'15'}
2015-11-24 11:35:54,281 [INFO] main.py:65 - Starting Server RPC Thread: /usr/lib/python2.6/site-packages/resource_monitoring/main.py start
2015-11-24 11:35:54,281 [INFO] controller.py:57 - Running Controller thread: Thread-1
2015-11-24 11:35:54,282 [INFO] emitter.py:45 - Running Emitter thread: Thread-2
2015-11-24 11:35:54,282 [INFO] emitter.py:65 - Nothing to emit, resume waiting.
2015-11-24 11:36:54,283 [INFO] emitter.py:91 - server: &lt;A href="http://xxxxxxx.com:6188/ws/v1/timeline/metrics"&gt;http://xxxxxxx.com:6188/ws/v1/timeline/metrics&lt;/A&gt;
2015-11-24 11:37:44,334 [WARNING] emitter.py:74 - Error sending metrics to server. timed out
2015-11-24 11:37:44,334 [WARNING] emitter.py:80 - Retrying after 5 ...&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Nov 2015 02:51:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97647#M60818</guid>
      <dc:creator>WELI</dc:creator>
      <dc:date>2015-11-25T02:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97648#M60819</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/692/weli.html" nodeid="692"&gt;@Mike Li&lt;/A&gt;&lt;P&gt;netstat -anp | grep 6188&lt;/P&gt;&lt;P&gt;Whats the output of the above command? Can you post more data from the log?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:09:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97648#M60819</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-25T03:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97649#M60820</link>
      <description>&lt;P&gt;Nothing is returned from from netstat -anp |grep 6188 when running on namenode.  On Ambari server node (which is also our edge node), the output from the command is: &lt;/P&gt;&lt;PRE&gt;[ambari@xxxxx~]$ netstat -anp |grep 6188
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
unix  3  [ ]  STREAM  CONNECTED  215461888 -  /var/lib/sss/pipes/private/sbus-dp_centene.com.39654
unix  3  [ ]  STREAM  CONNECTED  215461883 -  /var/lib/sss/pipes/private/sbus-dp_centene.com.39654&lt;/PRE&gt;&lt;P&gt; Thank you, Neeraj for your quick response. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:23:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97649#M60820</guid>
      <dc:creator>WELI</dc:creator>
      <dc:date>2015-11-25T03:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97650#M60821</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/692/weli.html" nodeid="692"&gt;@Mike Li&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Try to restart the AMS service and run tail -f on AMS logs to check the exact messages while its crashing &lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:27:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97650#M60821</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-25T03:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97651#M60822</link>
      <description>&lt;P&gt;Make sure the Metrics Collector process is up and running on port 6188 to Neeraj's point.  Once the Metrics Collector process is up and running, the Metrics Monitor's should re-connect and start sending metrics.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:32:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97651#M60822</guid>
      <dc:creator>pcodding</dc:creator>
      <dc:date>2015-11-25T03:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97652#M60823</link>
      <description>&lt;PRE&gt;When trying to restart AMS from Ambari UI, I check the AMS log file: ambar-metric-monitor.out on Ambari sever host node:
-----------------------------------------
2015-11-24 13:47:30,987 [WARNING] emitter.py:80 - Retrying after 5 ...
2015-11-24 13:48:35,989 [INFO] emitter.py:91 - server: &lt;A href="http://xxxx06t.xxxx.com:6188/ws/v1/timeline/metrics"&gt;http://xxxx06t.xxxx.com:6188/ws/v1/timeline/metrics&lt;/A&gt;
2015-11-24 13:48:35,990 [WARNING] emitter.py:74 - Error sending metrics to server. &amp;lt;urlopen error [Errno 111] Connection refused&amp;gt;
on the another node, which is the primary namenode and also as one of zookeeper nodes, the log file  of AMS :
------------------------------------------------------------------------------------------------------------
2015-11-24 13:43:50,822 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:61181. Will not attempt to authenticate using SASL (unknown error)
2015-11-24 13:43:50,822 WARN org.apache.zookeeper.ClientCnxn: Session 0x1513af962d30005 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
  at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
  at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2015-11-24 13:43:51,217 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:61181. Will not attempt to authenticate using SASL (unknown error)
2015-11-24 13:43:51,217 WARN org.apache.zookeeper.ClientCnxn: Session 0x1513af962d30005 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
  at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
  at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
The hbase-ams-master-xxx06t.xxxx.com.log has the same error message:
--------------------------------------------------------------------------------------------
2015-11-24 13:30:10,202 WARN  [main-SendThread(localhost:61181)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
  at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
  at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2015-11-24 13:30:10,206 WARN  [main] zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper, quorum=localhost:61181, exception=org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Nov 2015 04:02:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97652#M60823</guid>
      <dc:creator>WELI</dc:creator>
      <dc:date>2015-11-25T04:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97653#M60824</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/692/weli.html" nodeid="692"&gt;@Mike Li&lt;/A&gt; Is ZK up ? &lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 04:09:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97653#M60824</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-25T04:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97654#M60825</link>
      <description>&lt;P&gt;using ruok command to check, all 3 zookeeper processes are up and running:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./check_zookeeper.ksh
imok
imok
imok&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 04:13:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97654#M60825</guid>
      <dc:creator>WELI</dc:creator>
      <dc:date>2015-11-25T04:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97655#M60826</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/32/paul.html" nodeid="32"&gt;@Paul Codding&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 04:18:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97655#M60826</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-25T04:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97656#M60827</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/692/weli.html" nodeid="692"&gt;@Mike Li&lt;/A&gt; embeded HBASE instance is down.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 04:38:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97656#M60827</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-25T04:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97657#M60828</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/692/weli.html" nodeid="692"&gt;@Mike Li&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I discussed this with Paul...try this&lt;/P&gt;&lt;P&gt;Stop the Metrics Collector process using Ambari and make sure all ams related processes are also stopped &lt;/P&gt;&lt;P&gt;
 ps aux | grep ams&lt;/P&gt;&lt;P&gt;

        if any are still alive&lt;/P&gt;&lt;P&gt; kill -15 &amp;lt;pid&amp;gt; &lt;/P&gt;&lt;P&gt;
        then restart the Metrics Collector &lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 04:46:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97657#M60828</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-25T04:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97658#M60829</link>
      <description>&lt;P&gt;Following Neeraji suggestions, I stopped AMS first, made user no ams processes running, then restart AMS. Metric Monitors (agents) now all started, and the Metrics Collector is still stuck at 35% ....  Saw the following output : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="590-screen-shot-2015-11-25-at-13215-pm.png" style="width: 1690px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23948i1D5AB9F0FB63FAD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="590-screen-shot-2015-11-25-at-13215-pm.png" alt="590-screen-shot-2015-11-25-at-13215-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:45:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97658#M60829</guid>
      <dc:creator>WELI</dc:creator>
      <dc:date>2019-08-19T12:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97659#M60830</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/692/weli.html" nodeid="692"&gt;@Mike Li&lt;/A&gt; let's give some more time and see what happens&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 02:33:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97659#M60830</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-26T02:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97660#M60831</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/692/weli.html" nodeid="692"&gt;@Mike Li&lt;/A&gt;   &lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 18:51:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97660#M60831</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-26T18:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97661#M60832</link>
      <description>&lt;P&gt;Have you resolved this?&lt;/P&gt;&lt;P&gt;If your cluster is kerberized, AMS in distributed mode, and AMS Collector cannot start, then try setting the AMS RS principal and keytab to AMS HBase master principal and keytab.That's a bug we uncovered recently in Ambari-2.1.2.&lt;/P&gt;&lt;P&gt;For other possible issues check this &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Known+Issues"&gt;https://cwiki.apache.org/confluence/display/AMBARI...&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 12:52:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97661#M60832</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2015-12-08T12:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97662#M60833</link>
      <description>&lt;P&gt;I just had this issue and this is how it was solved.  &lt;/P&gt;&lt;P&gt;I added this to ams-hbase-site :: hbase.zookeeper.property.tickTime = 6000
and then restarted AMS&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 01:47:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97662#M60833</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-01-27T01:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97663#M60834</link>
      <description>&lt;P&gt;How to restart AMS service&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 02:07:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97663#M60834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-11T02:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97664#M60835</link>
      <description>&lt;TABLE&gt;
 &lt;TBODY&gt;&lt;TR&gt;
  &lt;TD&gt;Hi Neeraj  im facing this error &lt;STRONG&gt;  Metrics Collector - ZooKeeper Server Process :Connection
  failed: [Errno 111] Connection refused to dcvdevhadnn.eu.scor.local:61181&lt;/STRONG&gt;&lt;/TD&gt;
 &lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 11 Mar 2016 02:10:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97664#M60835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-11T02:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metric Collector: Error sending metric to server. timed out</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97665#M60836</link>
      <description>&lt;P&gt;where and how can I add this parameter?  I am having same issues.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 05:25:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metric-Collector-Error-sending-metric-to-server-timed/m-p/97665#M60836</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-08-20T05:25:47Z</dc:date>
    </item>
  </channel>
</rss>

