Docker中centos7容器配置CDH6.3依赖环境操作流程

yum install -y net-tools
ifconfig
vim /etc/hosts
yum install vim
vim /etc/hosts
yum -y install ntp
timedatectl set-timezone Asia/Shanghai
systemctl start ntpd && systemctl enable ntpd.service
cd opt/
ll
tar -zxvf cm6.3.1-redhat7.tar.gz
yum -y install httpd
systemctl start httpd && systemctl enable httpd.service
ln -s /opt/cm6.3.1/ /var/www/html/cm
vim /etc/yum.repos.d/cloudera-manager.repo
---
    [cloudera-manager]
    name=Cloudera Manager,Version 6.3.1
    baseurl=http://172.10.0.7/cm
    gpgcheck=0


vim /etc/yum.repos.d/cm.repo 
---:
    [cm]
    name=cm
    baseurl=http://172.10.0.7/cm
    enabled=1
    gpgcheck=0

yum search cloudera
systemctl status cloudera-scm-agent
yum install -y cloudera-manager-daemons cloudera-manager-agent
vim /etc/cloudera-scm-agent/config.ini
yum install /opt/cm6.3.1/RPMS/x86_64/oracle-j2sdk1.8-1.8.0+update181-1.x86_64.rpm 
vim /etc/profile
source /etc/profile
echo "vm.swappiness=10" >> /etc/sysctl.conf
echo "* soft nofile 100000" >> /etc/security/limits.conf
echo "* hard nofile 100000" >> /etc/security/limits.conf
echo "* soft nproc 100000" >> /etc/security/limits.conf
echo "* hard nproc 100000" >> /etc/security/limits.conf
yum -y install chkconfig python bind-utils psmisc libxslt zlib sqlite cyrus-sasl-plain cyrus-sasl-gssapi fuse fuse-libs redhat-lsb
systemctl start cloudera-scm-agent
systemctl status cloudera-scm-agent
systemctl enable cloudera-scm-agent

你可能感兴趣的:(Docker系列)