[
https://issues.apache.org/jira/browse/LIVY-977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gyorgy Gal resolved LIVY-977.
-----------------------------
Resolution: Fixed
> Livy can not be started if HDFS is still in safe mode
> -----------------------------------------------------
>
> Key: LIVY-977
> URL: https://issues.apache.org/jira/browse/LIVY-977
> Project: Livy
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.7.0
> Reporter: Asif Khatri
> Assignee: Rajshekhar Muchandi
> Priority: Major
> Fix For: 0.9.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When services are started by {{cdp environments start-environment}},
> sometimes HDFS is started too close to Livy and this may lead to
> {noformat}
> 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)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)