# Nodes/stats problem

**URL:** <https://discuss.elastic.co/t/nodes-stats-problem/3854>\
**Category:** Elasticsearch\
**Created:** [February 1, 2011, 7:44am UTC](https://discuss.elastic.co/t/nodes-stats-problem/3854 "2011-02-01T07:44:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mustafa\_Sener](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Mustafa\_Sener](https://discuss.elastic.co/u/Mustafa_Sener)\
**Post date:** [February 1, 2011, 7:44am UTC](https://discuss.elastic.co/t/nodes-stats-problem/3854/1 "2011-02-01T07:44:40Z")

</div>

Hi,  
When I tried to get node statistics from ES cluster with 2 nodes on 2  
different machines, I got empty node statistics response

\*{  
cluster\_name: "rossCluster"  
nodes: { }  
}  
\*  
This happens after I start the second node. A short time after starting the  
second node, I can not get node statistics anymore. I am trying this on a  
CENTOS OS with version x86\_64 x86\_64 x86\_64 GNU/Linux.

- 

Mustafa Sener  
[www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![Mustafa\_Sener](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Mustafa\_Sener](https://discuss.elastic.co/u/Mustafa_Sener)\
**Post date:** [February 1, 2011, 9:13am UTC](https://discuss.elastic.co/t/nodes-stats-problem/3854/2 "2011-02-01T09:13:31Z")

</div>

Same things happen with single ES node. I removed sigar files from lib  
directory (JMX mode) and restarted again, but the result did not change.

On Tue, Feb 1, 2011 at 9:44 AM, Mustafa Sener [mustafa.sener@gmail.com](mailto:mustafa.sener@gmail.com)wrote:

> Hi,  
> When I tried to get node statistics from ES cluster with 2 nodes on 2  
> different machines, I got empty node statistics response
> 
> \*{  
> cluster\_name: "rossCluster"  
> nodes: { }  
> }  
> \*  
> This happens after I start the second node. A short time after starting the  
> second node, I can not get node statistics anymore. I am trying this on a  
> CENTOS OS with version x86\_64 x86\_64 x86\_64 GNU/Linux.
> 
> - 
> 
> Mustafa Sener  
> [www.ifountain.com](http://www.ifountain.com)

--  
Mustafa Sener  
[www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [February 1, 2011, 9:42am UTC](https://discuss.elastic.co/t/nodes-stats-problem/3854/3 "2011-02-01T09:42:05Z")

</div>

On Tue, 2011-02-01 at 09:44 +0200, Mustafa Sener wrote:

> Hi,  
> When I tried to get node statistics from ES cluster with 2 nodes on 2  
> different machines, I got empty node statistics response
> 
> {  
> cluster\_name: "rossCluster"  
> nodes: { }  
> }

This bug has been fixed in master:

> <https://github.com/elastic/elasticsearch/issues/629>
>
> The below script can be used to recreate the issue. First call to \`nodes/stats\` …returns correct data but once the \`\_search\` query is executed then second call to \`nodes/stats\` return no data for nodes.
> 
> \`\`\`
> curl -XPOST 'localhost:9200/x/y?refresh=true&pretty=1' -d '{"x":"y"}'
> 
> curl -XGET 'localhost:9200/\_cluster/nodes/stats?pretty=1'
> 
> curl -XGET 'localhost:9200/x/\_search?pretty=1' -d '
> {
> "query" : { "match\_all" : {}},
> "size" : 0,
> "facets" : {
> "x" : {
> "terms" : {
> "field" : "x",
> "size" : 1
> }
> }
> }
> }'
> 
> curl -XGET 'localhost:9200/\_cluster/nodes/stats?pretty=1'
> \`\`\`
> 
> This one was really hard to isolate into such a tiny script.

clint

---

<div class="post-metadata">

**Author:** ![Mustafa\_Sener](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Mustafa\_Sener](https://discuss.elastic.co/u/Mustafa_Sener)\
**Post date:** [February 1, 2011, 11:02am UTC](https://discuss.elastic.co/t/nodes-stats-problem/3854/4 "2011-02-01T11:02:51Z")

</div>

OK thanks.

On Tue, Feb 1, 2011 at 11:42 AM, Clinton Gormley [clinton@iannounce.co.uk](mailto:clinton@iannounce.co.uk)wrote:

> On Tue, 2011-02-01 at 09:44 +0200, Mustafa Sener wrote:
> 
> > Hi,  
> > When I tried to get node statistics from ES cluster with 2 nodes on 2  
> > different machines, I got empty node statistics response
> > 
> > {  
> > cluster\_name: "rossCluster"  
> > nodes: { }  
> > }
> 
> This bug has been fixed in master:
> 
> [Nodes Stats: return no nodes info · Issue #629 · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues/issue/629)
> 
> clint

--  
Mustafa Sener  
[www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:12am UTC](https://discuss.elastic.co/t/nodes-stats-problem/3854/5 "2017-07-06T04:12:59Z")

</div>


