SafeModeException: Cannot delete. Name node is in safe mode 解决方案

SafeModeException: Cannot delete. Name node is in safe mode.

  • 错误现象 :
  • 解决方案

错误现象 :

WARN yarn.Client: Failed to cleanup staging dir hdfs://cpucode101:8020/user/cpu/.sparkStaging/application_1644582696121_0001
org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /user/cpu/.sparkStaging/application_1644582696121_0001. Name node is in safe mode.

在这里插入图片描述

解决方案

强制 NameNode 离开安全模式

hadoop dfsadmin -safemode leave

SafeModeException: Cannot delete. Name node is in safe mode 解决方案_第1张图片

你可能感兴趣的:(Hadoop,hadoop,hdfs,big,data,分布式,spark)