Hadoop "hadoop dfsadmin -safemode leave" command deprecated

1.7k Views Asked by At

used Sudo jps to see the daemons running. and found node manager not running.

So tried, sudo service hadoop master stop to stop and when I tried to restart it got restarted. However, when I'm giving this command hadoop dfsadmin -safemode leave its saying its deprecated. I tried this as well hadoop hdfsadmin -safemode leave

But, getting

Error: Could not find or load main class hdfsadmin

2

There are 2 best solutions below

1
On

hadoop dfsadmin is depricated, however it should work. Correct usage is hdfs dfsadmin -safemode leave

0
On

hadoop dfsadmin is depricated, however it should work. Correct usage is hdfs dfsadmin -safemode leave Safe mode is OFF

First switch from user to root and su - hdfs . 1) hdfs dfsadmin -safemode leave
Result : safe mode is OFF