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