欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

离线安装cloudera Manager

程序员文章站 2022-05-01 12:05:55
...
  • 本文介绍如何离线安装cloudera,以及如何使用cloudera安装cdh。安装包和依赖包已经放到百度网盘,需要的可以去下载:
    链接:http://pan.baidu.com/s/1skB5kFN 密码:imck

- 安装前配置

  • 配置/etc/hosts文件
    vim /etc/hosts:
    离线安装cloudera Manager
  • 配置ssh免密码登录
    ssh-******
    离线安装cloudera Manager
  • 关闭防火墙
    service iptables stop
    chkconfig iptables off
  • 关闭selinux
    setenforce 0
    vim /etc/selinux/config
    离线安装cloudera Manager
  • 打开ntp服务
    yum install -y ntp
    service ntpd start

- 安装cloudera Manager

  • 配置本地离线yum源
    yum install -y createrepo
    准备cdh_pkg 和 parcels
[xulei@esgsh-dev-xulei-1 opt]$ ls
cdh_pkg  cloudera  home  parcels  share
[xulei@esgsh-dev-xulei-1 opt]$ ls cdh_pkg/
cm5.7.6-el6  dependencies  repodata
[xulei@esgsh-dev-xulei-1 opt]$ ls parcels/
CDH-5.7.6-1.cdh5.7.6.p0.6-el6.parcel  CDH-5.7.6-1.cdh5.7.6.p0.6-el6.parcel.sha  manifest.json

离线安装cloudera Manager

离线安装cloudera Manager

离线安装cloudera Manager

离线安装cloudera Manager
- 创建本地yum源

    cd cdh_pkg
    createrepo .
    python -m SimpleHTTPServer 8910 &
  • 配置yum的repo文件

    cd  /etc/yum.repos.d/
    vim local.repo
    
    文件内容如下,ip地址是你的主机ip
    
    [local]
    name=local
    baseurl=http://192.168.0.16:8910
    enabled=1
    gpgcheck=0
    
  • 从本地yum源安装cloudera Manager

    cd /opt/cdh_pkg/cm5.7.6-el6
    yum install -y cloudera-manager-server-db-2 cloudera-manager-server cloudera-manager-daemons
    
  • 安装oracle JDK
    rpm -ivh oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm

  • 启动cloudera
    service cloudera-scm-server-db start
    service cloudera-scm-server-db status
    service cloudera-scm-server start
    service cloudera-scm-server status
    到这里cloudera就安装完了。打开ip:7180默认账户密码为admin/admin
相关标签: cloudera