Skip to content

Instantly share code, notes, and snippets.

@arw357
Created April 25, 2019 09:39
Show Gist options
  • Save arw357/2367a09d024114943193b025a1d74b78 to your computer and use it in GitHub Desktop.
Save arw357/2367a09d024114943193b025a1d74b78 to your computer and use it in GitHub Desktop.
Check if Safemode is off for a namenode
curl -s http://namenode:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo | jq '((.beans|length==1) and .beans[0].Safemode=="")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment