Description
When services are started by cdp environments start-environment, sometimes HDFS is started too close to Livy and this may lead to
Caused by: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/livy/recovery. Name node is in safe mode. The reported blocks 407318 has reached the threshold 0.9990 of total blocks 407318. The number of live datanodes 4 has reached the minimum number 1. In safe mode extension. Safe mode will be turned off automatically in 18 seconds. NamenodeHostName:bpicdpdev-datahub-de-master0.bpicdpde.ggj4-2xqj.cloudera.site ... at org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:812) at org.apache.livy.server.recovery.FileSystemStateStore.<init>(FileSystemStateStore.scala:62) at org.apache.livy.server.recovery.FileSystemStateStore.<init>(FileSystemStateStore.scala:42)