Created
April 25, 2019 09:39
-
-
Save arw357/2367a09d024114943193b025a1d74b78 to your computer and use it in GitHub Desktop.
Check if Safemode is off for a namenode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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