• cm 安装


    为Cloudera Manager建立数据库:/usr/share/cmf/schema/scm_prepare_database.sh mysql -h[mysql数据库的主机名] -P63751 -ugdp_root -p[password] --scm-host [cm server的主机名] [cm的数据库] 
        [cm数据库访问用户] [cm数据库访问用户的密码]

    [root@slave03 src]# /usr/share/cmf/schema/scm_prepare_database.sh mysql -h192.168.244.100 -P63751 -ugdp_root -pgdp_root --scm-host 192.168.244.100 cmdata cm cm;

    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'gdp_root'@'slave03' to database 'cmdata'

    解决办法:

    mysql> grant all on *.* to 'gdp_root'@'slave03' identified by 'gdp_root' with grant option;

    #######################3

    [root@slave03 src]# /usr/share/cmf/schema/scm_prepare_database.sh mysql -h192.168.244.100 -P63751 -ugdp_root -pgdp_root --scm-host 192.168.244.100 cmdata cm cm;
    JAVA_HOME=/usr/java/latest
    Verifying that we can write to /etc/cloudera-scm-server
    Creating SCM configuration file in /etc/cloudera-scm-server
    Executing: /usr/java/latest/bin/java -cp /usr/share/java/mysql-connector-java.jar:/usr/share/java/oracle-connector-java.jar:/usr/share/cmf/schema/../lib/* com.cloudera.enterprise.dbutil.DbCommandExecutor /etc/cloudera-scm-server/db.properties com.cloudera.cmf.db.
    [ main] DbCommandExecutor INFO Successfully connected to database.
    All done, your SCM database is configured correctly!

    用网页登录:192.168.244.100:7180

    如果出现网页无法展示,查看下7180 端口是否起来,如果没有起来,数据库重启下。

    [root@slave03 ~]# lsof -i:7180
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    java 9567 cloudera-scm 241u IPv4 61346 0t0 TCP slave03:7180->192.168.244.1:53411 (ESTABLISHED)
    java 9567 cloudera-scm 243u IPv4 61347 0t0 TCP slave03:7180->192.168.244.1:53412 (ESTABLISHED)
    java 9567 cloudera-scm 252u IPv4 57436 0t0 TCP *:7180 (LISTEN)

  • 相关阅读:
    [2019.2.24]BZOJ4591 [Shoi2015]超能粒子炮·改
    [2019.2.13]BZOJ4318 OSU!
    [2019.1.17]BZOJ1066 [SCOI2007]蜥蜴
    [2019.1.15]BZOJ2152 聪聪可可
    [2019.1.17]BZOJ3993 [SDOI2015]星际战争
    [2019.1.14]BZOJ2005 [Noi2010]能量采集
    [2019.1.10]BZOJ1853 [Scoi2010]幸运数字
    [2019.1.9]BZOJ2299 [HAOI2011]向量
    yyb博客的几道神仙题
    CQOI2018异或序列 [莫队]
  • 原文地址:https://www.cnblogs.com/shanhua-fu/p/8656326.html
Copyright © 2020-2023  润新知