cdh 部署常用命令

心不动则不痛 提交于 2020-11-02 06:21:29

http://qs51:9205/_license

curl -H "Content-Type: application/json" -XPUT -u elastic:changeme 'http://qs51:9205/_xpack/license?acknowledge=true' -d @zhang-showay-07756d6b-6c27-4d3f-a91a-dd9974732c34-v5.json

grant all privileges on *.* to root@'%' identified by 'root';
FLUSH PRIVILEGES;


sudo useradd --system --home=/opt/cloudera/cm-5.14.0/run/cloudera-scm-server --no-create-home --shell=/bin/false --comment "Cloudera SCM User" cloudera-scm


在主节点初始化CM的数据库:
/opt/cloudera/cm-5.14.0/share/cmf/schema/scm_prepare_database.sh mysql -hqs51 -uroot -proot --scm-host qs51 scm scm scm


vim /opt/cloudera/cm-5.14.0/etc/cloudera-scm-agent/config.ini

CDH时候出现主机运行状态不良情况的解决
rm -f /opt/cloudera/cm-5.14.0/lib/cloudera-scm-agent/cm_guid
/opt/cloudera/cm-5.14.0/lib/cloudera-scm-server/cm_guid

ntp
service ntpd status

./cloudera-scm-server:行237: /opt/cloudera/cm-5.14.0/log/cloudera-scm-server/cloudera-scm-server.out: 没有那个文件或目录
Starting cloudera-scm-server: ./cloudera-scm-server:行246: /opt/cloudera/cm-5.14.0/log/cloudera-scm-server/cloudera-scm-server.out: 没有那个文件或目录


Starting cloudera-scm-agent: /bin/bash: /opt/cloudera/cm-5.14.0/log/cloudera-scm-agent/cloudera-scm-agent.out: 没有那个文件或目录

mkdir -p /opt/cloudera/cm-5.14.0/log/cloudera-scm-agent
touch /opt/cloudera/cm-5.14.0/log/cloudera-scm-agent/cloudera-scm-agent.out


rm -rf /var/log/*
rm -rf /usr/share/cmf/*
rm -rf /usr/lib64/cmf/*
rm -rf /var/lib/cloudera-scm-server-db/data/*
rm -rf /usr/bin/postgres/*
rm -rf /etc/cloudera-scm-agent/*
rm -rf /etc/cloudera-scm-server/*
rm -rf /etc/hadoop/*
rm -rf /dfs/*
rm -rf /yarn/*


rm -rf /var/lib/hive
rm -rf /var/lib/hdfs
rm -rf /var/lib/spark
rm -rf /var/lib/solr
rm -rf /var/lib/zookeeper
rm -rf /var/lib/flume-ng
rm -rf /var/lib/impala
rm -rf /var/lib/sqoop
rm -rf /var/lib/sqoop2
rm -rf /var/lib/oozie
rm -rf /var/lib/kafka
rm -rf /var/lib/kudu
rm -rf /var/lib/hadoop-hdfs
rm -rf /var/lib/hadoop-httpfs
rm -rf /var/lib/hadoop-kms
rm -rf /var/lib/hadoop-mapreduce
rm -rf /var/lib/hadoop-yarn
rm -rf /var/lib/hbase

rm -rf /etc/hive
rm -rf /etc/hdfs
rm -rf /etc/spark
rm -rf /etc/solr
rm -rf /etc/zookeeper
rm -rf /etc/flume-ng
rm -rf /etc/impala
rm -rf /etc/sqoop
rm -rf /etc/sqoop2
rm -rf /etc/oozie
rm -rf /etc/kafka
rm -rf /etc/kudu
rm -rf /etc/hadoop-hdfs
rm -rf /etc/hadoop-httpfs
rm -rf /etc/hadoop-kms
rm -rf /etc/hadoop-mapreduce
rm -rf /etc/hadoop-yarn
rm -rf /etc/hbase

rm -rf /usr/bin/hive
rm -rf /usr/bin/hdfs
rm -rf /usr/bin/spark
rm -rf /usr/bin/solr
rm -rf /usr/bin/zookeeper
rm -rf /usr/bin/flume-ng
rm -rf /usr/bin/impala
rm -rf /usr/bin/sqoop
rm -rf /usr/bin/sqoop2
rm -rf /usr/bin/oozie
rm -rf /usr/bin/kafka
rm -rf /usr/bin/kudu
rm -rf /usr/bin/hadoop-hdfs
rm -rf /usr/bin/hadoop-httpfs
rm -rf /usr/bin/hadoop-kms
rm -rf /usr/bin/hadoop-mapreduce
rm -rf /usr/bin/hadoop-yarn
rm -rf /usr/bin/hbase

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!