1. 程式人生 > 實用技巧 >cdh 配置檔案更新失敗 僅完成 1/6 個步驟。首個失敗:在服務 HDFS 上執行命令 Deploy Client Configuration 失敗

cdh 配置檔案更新失敗 僅完成 1/6 個步驟。首個失敗:在服務 HDFS 上執行命令 Deploy Client Configuration 失敗

環境 : cdh5.15 parcels部署

登陸對應節點,檢視對應的日誌

tail -10000f /var/run/cloudera-scm-agent/process/ccdeploy_hadoop-conf_etchadoopconf.cloudera.hdfs_626044950178360505//logs/stderr.log

發現關鍵字/var/lib/alternatives/hadoop-conf empty!

如 上一篇博文《cdh 系統配置檔案更新 error parsing conf core-site.xml

檢查,該目錄下存在空檔案

[root@g3-test-25 ~]# cd /var
/lib/alternatives/ [root@g3-test-25 alternatives]# ll 總用量 164 -rw-r--r-- 1 root root 0 4月 8 2020 avro-tools -rw-r--r-- 1 root root 88 8月 15 16:04 beeline -rw-r--r-- 1 root root 0 4月 8 2020 bigtop-detect-javahome -rw-r--r-- 1 root root 90 8月 15 16:04 catalogd -rw-r--r-- 1 root root 0 4月 8 2020 cli_mt
-rw-r--r-- 1 root root 86 8月 15 16:04 cli_st -rw-r--r-- 1 root root 90 8月 15 16:04 flume-ng -rw-r--r-- 1 root root 0 4月 8 2020 flume-ng-conf -rw-r--r-- 1 root root 0 4月 8 2020 hadoop -rw-r--r-- 1 root root 0 4月 8 2020 hadoop-0.20 -rw-r--r-- 1 root root 0 4月 8 2020 hadoop-conf -rw-r--r-- 1 root root 0
4月 8 2020 hadoop-fuse-dfs -rw-r--r-- 1 root root 112 8月 15 16:04 hadoop-httpfs-conf -rw-r--r-- 1 root root 105 8月 15 16:04 hadoop-kms-conf -rw-r--r-- 1 root root 0 4月 8 2020 hbase -rw-r--r-- 1 root root 0 4月 8 2020 hbase-conf -rw-r--r-- 1 root root 100 8月 15 16:04 hbase-indexer -rw-r--r-- 1 root root 0 4月 8 2020 hbase-indexer-sentry -rw-r--r-- 1 root root 0 4月 8 2020 hbase-solr-conf -rw-r--r-- 1 root root 82 8月 15 16:04 hcat -rw-r--r-- 1 root root 0 4月 8 2020 hdfs -rw-r--r-- 1 root root 0 4月 8 2020 hive -rw-r--r-- 1 root root 0 4月 8 2020 hive-conf -rw-r--r-- 1 root root 0 4月 8 2020 hive-hcatalog-conf -rw-r--r-- 1 root root 0 4月 8 2020 hiveserver2 -rw-r--r-- 1 root root 0 4月 8 2020 hive-webhcat-conf -rw-r--r-- 1 root root 0 4月 8 2020 hue-conf -rw-r--r-- 1 root root 122 8月 15 16:04 impala-collect-minidumps -rw-r--r-- 1 root root 0 4月 8 2020 impala-conf -rw-r--r-- 1 root root 0 4月 8 2020 impalad -rw-r--r-- 1 root root 98 8月 15 16:04 impala-shell -rw-r--r-- 1 root root 98 8月 15 16:04 kite-dataset -rw-r--r-- 1 root root 97 4月 8 2020 ksh -rw-r--r-- 1 root root 82 8月 15 16:04 kudu -rw-r--r-- 1 root root 57 4月 8 2020 ld -rw-r--r--. 1 root root 101 6月 14 2019 libnssckbi.so.x86_64 -rw-r--r-- 1 root root 84 8月 15 16:04 llama -rw-r--r-- 1 root root 0 4月 8 2020 llamaadmin -rw-r--r-- 1 root root 0 4月 8 2020 llama-conf -rw-r--r-- 1 root root 90 8月 15 16:04 load_gen -rw-r--r-- 1 root root 86 8月 15 16:04 mahout -rw-r--r-- 1 root root 0 4月 8 2020 mahout-conf -rw-r--r-- 1 root root 86 8月 15 16:04 mapred -rw-r--r--. 1 root root 689 6月 14 2019 mta -rw-r--r-- 1 root root 84 8月 15 16:04 oozie -rw-r--r-- 1 root root 0 4月 8 2020 parquet-tools -rw-r--r-- 1 root root 103 11月 15 2019 pax -rw-r--r-- 1 root root 80 8月 15 16:04 pig -rw-r--r-- 1 root root 91 8月 15 16:04 pig-conf -rw-r--r-- 1 root root 856 11月 15 2019 print -rw-r--r-- 1 root root 88 8月 15 16:04 pyspark -rw-r--r-- 1 root root 0 4月 8 2020 pyspark2 -rw-r--r-- 1 root root 86 8月 15 16:04 sentry -rw-r--r-- 1 root root 97 8月 15 16:04 sentry-conf -rw-r--r-- 1 root root 0 4月 8 2020 solr-conf -rw-r--r-- 1 root root 0 4月 8 2020 solrctl -rw-r--r-- 1 root root 0 4月 8 2020 spark2-conf -rw-r--r-- 1 root root 0 4月 8 2020 spark2-shell -rw-r--r-- 1 root root 0 4月 8 2020 spark2-submit -rw-r--r-- 1 root root 95 8月 15 16:04 spark-conf -rw-r--r-- 1 root root 96 8月 15 16:04 spark-shell -rw-r--r-- 1 root root 0 4月 8 2020 spark-submit -rw-r--r-- 1 root root 0 4月 8 2020 sqoop -rw-r--r-- 1 root root 0 4月 8 2020 sqoop2 -rw-r--r-- 1 root root 0 4月 8 2020 sqoop2-conf -rw-r--r-- 1 root root 0 4月 8 2020 sqoop-codegen -rw-r--r-- 1 root root 95 8月 15 16:04 sqoop-conf -rw-r--r-- 1 root root 120 8月 15 16:04 sqoop-create-hive-table -rw-r--r-- 1 root root 94 8月 15 16:04 sqoop-eval -rw-r--r-- 1 root root 98 8月 15 16:04 sqoop-export -rw-r--r-- 1 root root 94 8月 15 16:04 sqoop-help -rw-r--r-- 1 root root 0 4月 8 2020 sqoop-import -rw-r--r-- 1 root root 0 4月 8 2020 sqoop-import-all-tables -rw-r--r-- 1 root root 92 8月 15 16:04 sqoop-job -rw-r--r-- 1 root root 0 4月 8 2020 sqoop-list-databases -rw-r--r-- 1 root root 0 4月 8 2020 sqoop-list-tables -rw-r--r-- 1 root root 96 8月 15 16:04 sqoop-merge -rw-r--r-- 1 root root 0 4月 8 2020 sqoop-metastore -rw-r--r-- 1 root root 100 8月 15 16:04 sqoop-version -rw-r--r-- 1 root root 96 8月 15 16:04 statestored -rw-r--r-- 1 root root 0 4月 8 2020 whirr -rw-r--r-- 1 root root 82 8月 15 16:04 yarn -rw-r--r-- 1 root root 0 4月 8 2020 zookeeper-client -rw-r--r-- 1 root root 0 4月 8 2020 zookeeper-conf -rw-r--r-- 1 root root 0 4月 8 2020 zookeeper-server -rw-r--r-- 1 root root 122 8月 15 16:04 zookeeper-server-cleanup -rw-r--r-- 1 root root 0 4月 8 2020 zookeeper-server-initialize

處理:按照檔案存在空的處理方式進行處理;刪除/var/lib/alternatives/目錄下所有檔案,重啟agent即可

[root@g3-test-25 ~]# cd /var/lib/alternatives/
[root@g3-test-25 alternatives]# rm  -rf   *
[root@g3-test-25 alternatives]# systemctl restart cloudera-scm-agent.service
[root@g3-test-25 alternatives]# systemctl status  cloudera-scm-agent.service
● cloudera-scm-agent.service - LSB: Cloudera SCM Agent
   Loaded: loaded (/etc/rc.d/init.d/cloudera-scm-agent; bad; vendor preset: disabled)
   Active: active (exited) since 三 2020-12-09 11:17:35 CST; 40s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 577 ExecStop=/etc/rc.d/init.d/cloudera-scm-agent stop (code=exited, status=0/SUCCESS)
  Process: 643 ExecStart=/etc/rc.d/init.d/cloudera-scm-agent start (code=exited, status=0/SUCCESS)

12月 09 11:17:31 g3-test-25 systemd[1]: Starting LSB: Cloudera SCM Agent...
12月 09 11:17:31 g3-test-25 su[664]: (to root) root on none
12月 09 11:17:34 g3-test-25 cloudera-scm-agent[643]: Starting cloudera-scm-agent: [  確定  ]
12月 09 11:17:35 g3-test-25 systemd[1]: Started LSB: Cloudera SCM Agent.