• 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.
  • 相关阅读:
    从命令行运行postman脚本
    Postman简单的接口测试
    请写出正则表达式(regex),取得下列黄色部分的字符串 TEL: 02-236-9655/9659 FAX:02-236-9654 (黄色部分即02-236-9655/9659 ) ( 测试面试题)
    okhttp 的使用
    GridView的簡單使用
    Fragment 中 ListView绑定ContextMenu
    charles的使用
    selenium元素定位(Java)
    App间相互跳转及图片分享
    微信模板消息的使用
  • 原文地址:https://www.cnblogs.com/students/p/14107752.html
Copyright © 2020-2023  润新知