Skip to content

Instantly share code, notes, and snippets.

@arw357
arw357 / gist:2367a09d024114943193b025a1d74b78
Created April 25, 2019 09:39
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=="")'