Canary 测试无法为 /tmp/.cloudera_health_monitoring_canary_files 创建父目录

CM金丝雀Canary报错

1 HDFS 金丝雀

Canary 测试无法为 /tmp/.cloudera_health_monitoring_canary_files 创建父目录。

2 Hive Metastore Canary

Hive Metastore canary 创建 hue hdfs 主目录失败。

检查:

1)hdfs是否处于safemode,正常是off

hdfs dfsadmin -safemode get

输出:

Safe mode is OFF

2)hdfs datanode是否健康,磁盘空间是否空闲,可自行上传文件测试

hdfs dfsadmin -report

3)根据错误提示查看目录权限,如果有问题,改为777

hdfs dfs -chmod 777 /tmp/.cloudera_health_monitoring_canary_files

4)检查/tmp目录是否存在,不存在,进行创建

hdfs dfs -ls /tmp

可能的输出:

ls: `/tmp’: No such file or directory
解决办法:

hdfs dfs -mkdir /tmp

(1)执行上一个命令后,cm会自动创建出:
/tmp/.cloudera_health_monitoring_canary_files
(2)查看
在这里插入图片描述
隔一会,HDFS上的红色感叹号会自动消失,问题解决.

如果还有问题:

hdfs dfs -mkdir -p /tmp/.cloudera_health_monitoring_canary_files

如果都确认过还报错,请重启cloudera-scm-server

参考:https://www.cnblogs.com/barneywill/p/10400788.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值