zoukankan      html  css  js  c++  java
  • CDH集群安装配置(五)- Cloudera Manager Server

    在线安装

    sudo yum install cloudera-manager-daemons cloudera-manager-server

    离线安装

    资源下载地址
    https://archive.cloudera.com/cm6/6.1.0/redhat7/yum/RPMS/x86_64/
    上次下面资源包到cdh1节点
    cloudera-manager-server-6.1.0-769885.el7.x86_64.rpm
    cloudera-manager-server-db-2-6.1.0-769885.el7.x86_64.rpm
    cloudera-manager-daemons-6.1.0-769885.el7.x86_64.rpm

    yum 安装

    yum install -y postgresql-sever
    rpm -ivh cloudera-manager-daemons-6.1.0-769885.el7.x86_64.rpm

    rpm -ivh cloudera-manager-server-6.1.0-769885.el7.x86_64.rpm
    rpm -ivh cloudera-manager-server-db-2-6.1.0-769885.el7.x86_64.rpm
    

    copy mysql连接驱动到/usr/share/java中,主要mysql-connector-java.jar如果有版本信息,版本信息必须删除,重命名文件,否则会出现以下错误

    Creating SCM configuration file in /etc/cloudera-scm-server
    Executing:  /usr/java/jdk1.8.0_141-cloudera/bin/java -cp /usr/share/java/mysql-connector-java.jar:/usr/share/java/oracle-connector-java.jar:/usr/share/java/postgresql-connector-java.jar:/opt/cloudera/cm/schema/../lib/* com.cloudera.enterprise.dbutil.DbCommandExecutor /etc/cloudera-scm-server/db.properties com.cloudera.cmf.db.
    [                          main] DbCommandExecutor              INFO  Unable to find JDBC driver for database type: MySQL
    [                          main] DbCommandExecutor              ERROR JDBC Driver com.mysql.jdbc.Driver not found.
    [                          main] DbCommandExecutor              ERROR Exiting with exit code 3
    --> Error 3, giving up (use --force if you wish to ignore the error)

    初始化CDH server服务

    /opt/cloudera/cm/schema/scm_prepare_database.sh mysql scm scm

    开启CDH server服务

    systemctl start cloudera-scm-server

    查看是否启动正常

    sudo tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log
    
    当出现以下代码说明成功启动:
    2019-02-19 02:03:41,108 INFO WebServerImpl:com.cloudera.server.cmf.WebServerImpl: Started Jetty server.

    查看网页版管理:

    http://ip:7180

  • 相关阅读:
    监控页面所有checkbox改变状态的简单方法
    poorman’sgraphicalboot
    Linux 高精確的時序(sleep, usleep,nanosleep)
    【转】跟我一起写udev规则(译)
    什么情况下可以不创建QCoreApplication
    Linux双网卡bonding举例
    many former solutions has been "deleted"
    文件浏览器
    配置站点集的配额和锁
    HyperV的三种网卡
  • 原文地址:https://www.cnblogs.com/Jesse-Li/p/10402480.html
Copyright © 2011-2022 走看看