大叔经验分享(31)CM金丝雀Canary报错

本文介绍了在进行HDFS和Hive Metastore Canary测试时遇到的错误,包括无法创建目录的问题。建议检查HDFS的安全模式、datanode状态以及目录权限,并提供了相应的命令行操作如`hdfs dfsadmin -safemode get`、`hdfs dfsadmin -report`和`hdfs dfs -chmod 777 /tmp/.cloudera_health_monitoring_canary_files`来解决问题。如果所有步骤都无法解决,作者建议重启`cloudera-scm-server`。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 -ls /tmp

Found 3 items
d--------- - hdfs supergroup 0 2019-02-18 23:57 /tmp/.cloudera_health_monitoring_canary_files

hdfs dfs -chmod 777 /tmp/.cloudera_health_monitoring_canary_files

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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值