Thank you for your answer.
I know but I couldn't do it so I looked for another way and hoped '_cat/nodeattrs' do it for me.
It is not so easy to get id because it is not in 'variable: value;' format so I can not use:
curl -s -XGET 'http://localhost:9200/_nodes/_local' | python -c "import sys, json; print json.load(sys.stdin)['nodes'][SOMETHING SHOULD BE HERE]"
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.