how to verify if name node is in safe mode ?
goal - in case of name node in safe mode , then bash script will perform the following steps on one of the masters machines
# su - hdfs
$ hdfs dfsadmin -safemode get
$ hdfs dfsadmin -safemode leave
second how to perform the steps as described in the bash script
is it ok to do the following :
su - hdfs -c "hdfs dfsadmin -safemode get"
su - hdfs -c "hdfs dfsadmin -safemode leave"
Michael-Bronson