我正在尝试hdfs:///home/bryan/test_file/
通过将 Spark 作业提交到 Dataproc 集群来写入 HDFS 目录。
我收到名称节点处于安全模式的错误。我有一个解决方案可以让它退出安全模式,但我担心这可能是由于另一个原因而发生的。
为什么 Dataproc 集群处于安全模式?
ERROR org.apache.spark.streaming.scheduler.JobScheduler: Error running job streaming job 1443726448000 ms.0
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot create directory /home/bryan/test_file/_temporary/0. Name node is in safe mode.
The reported blocks 125876 needs additional 3093 blocks to reach the threshold 0.9990 of total blocks 129098.
The number of live datanodes 2 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.