Unable to start Hive via Terminal on Cloudera CDH5.8 VM - Bad health,Name Node is in Safe Mode

222 Views Asked by At

Here are the steps I have performed.
1. Started VM - Cloudera CDH 5.8 - allocated 10GB of Ram + 4 Cores.
2. Open Terminal and executed following command

sudo ./cloudera-manager --express --force
  1. Open browser and logged into Cloudera Manager.
  2. Started all the components.
  3. All components are running in good health except HDFS,HIVE and HBASE.
  4. when I looked at the cause of Bad health, I found that 'Name Node is in Safe Mode'.

I am not familiar with Admin stuff of Hadoop ecosystem, please help me troubleshoot the following issue.

1

There are 1 best solutions below

2
On

In order to forcefully let the namenode leave safemode, following command should be executed:

hdfs dfsadmin -safemode leave