目录

启动hdfs时,报错-不良Canary-测试无法在目录-tmp.cloudera_health_monitoring_canary_files-中写入文件

目录

启动hdfs时,报错 不良 : Canary 测试无法在目录 /tmp/.cloudera_health_monitoring_canary_files 中写入文件。

https://i-blog.csdnimg.cn/blog_migrate/224d8684dc3237423250ba17afae34a6.png

https://i-blog.csdnimg.cn/blog_migrate/13f2306514200e6b8d137e6dc2f0a237.png

https://i-blog.csdnimg.cn/blog_migrate/610dac4e9b43e19101be1d051d994d1a.png

启动hdfs时,报错 Canary 测试无法在目录 /tmp/.cloudera_health_monitoring_canary_files 中创建文件。

经过查看日志,发现 Name node is in safe mode.

解决方法:sudo -uhdfs hdfs dfsadmin -safemode leave

https://i-blog.csdnimg.cn/blog_migrate/6f2c4eebe4c694ecdca61155b792ffc8.png

https://i-blog.csdnimg.cn/blog_migrate/cff46ff6bf79e606fa11742c35fee78d.png