linux与hadoop

1.使用spark2,clouderaManager 必须要是5.8.0或者以上

2.rm: cannot remove ‘cm-5.7.0/run/cloudera-scm-agent/process’: Device or resource busy

答:umount cm-5.7.0/run/cloudera-scm-agent/process

3.重启cloudera-scm-agent服务如果报错cloudera-scm-agent dead but pid file exists,

那就 先ps -ef | grep cloudera-scm-agent,然后kill掉cloudera-scm-agent.pid,并删除/opt/cm-5.12.0/run/cloudera-scm-agent下的cloudera-scm-agent.pid文件,再重启cloudera-scm-agent

重启路径:/opt/cm-5.12.0/etc/init.d

重启命令:./cloudera-scm-agent start

4.重启HDFS后,如果出现报错: 
Canary 测试无法在目录 /tmp/.cloudera_health_monitoring_canary_files 中创建文件。 
有可能是 Name node is in safe mode. 
解决方法:sudo -u hdfs hdfs dfsadmin -safemode leave

你可能感兴趣的:(linux,大数据)