A hdfs command is run in a script checkForFormat.sh:
checkForFormat.sh
/hadoop-bin/hdfs --config /mydir/search-cluster/y3/conf/hadoop namenode -format