robgajudo / SEBC

SEBC
0 stars 0 forks source link

Install CM #7

Closed robgajudo closed 7 years ago

robgajudo commented 7 years ago

Started

robgajudo commented 7 years ago

Install CM

[root@ip-172-31-15-248 yum.repos.d]# yum install cloudera-manager-daemons cloudera-manager-server -y
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cloudera-manager-daemons.x86_64 0:5.9.0-1.cm590.p0.249.el6 will be installed
---> Package cloudera-manager-server.x86_64 0:5.9.0-1.cm590.p0.249.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================================
 Package                                           Arch                            Version                                              Repository                                 Size
========================================================================================================================================================================================
Installing:
 cloudera-manager-daemons                          x86_64                          5.9.0-1.cm590.p0.249.el6                             cloudera-manager                          528 M
 cloudera-manager-server                           x86_64                          5.9.0-1.cm590.p0.249.el6                             cloudera-manager                          8.3 k

Transaction Summary
========================================================================================================================================================================================
Install       2 Package(s)

Total download size: 528 M
Installed size: 679 M
Downloading Packages:
(1/2): cloudera-manager-daemons-5.9.0-1.cm590.p0.249.el6.x86_64.rpm                                                                                              | 528 MB     00:08
(2/2): cloudera-manager-server-5.9.0-1.cm590.p0.249.el6.x86_64.rpm                                                                                               | 8.3 kB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                    59 MB/s | 528 MB     00:09
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID e8f86acd: NOKEY
Retrieving key from https://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/RPM-GPG-KEY-cloudera

GPG key retrieval failed: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
[root@ip-172-31-15-248 yum.repos.d]# vi cloudera-manager.repo
[root@ip-172-31-15-248 yum.repos.d]# cat cloudera-manager.repo
[cloudera-manager]
# Packages for Cloudera Manager, Version 5, on RedHat or CentOS 6 x86_64
name=Cloudera Manager
baseurl=https://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/
gpgkey =https://archive.cloudera.com/cm5/redhat/6/x86_64/cm/RPM-GPG-KEY-cloudera
gpgcheck = 1
[root@ip-172-31-15-248 yum.repos.d]# yum install cloudera-manager-daemons cloudera-manager-server -y
Loaded plugins: amazon-id, rhui-lb, security
cloudera-manager                                                                                                                                                 |  951 B     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cloudera-manager-daemons.x86_64 0:5.9.0-1.cm590.p0.249.el6 will be installed
---> Package cloudera-manager-server.x86_64 0:5.9.0-1.cm590.p0.249.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================================
 Package                                           Arch                            Version                                              Repository                                 Size
========================================================================================================================================================================================
Installing:
 cloudera-manager-daemons                          x86_64                          5.9.0-1.cm590.p0.249.el6                             cloudera-manager                          528 M
 cloudera-manager-server                           x86_64                          5.9.0-1.cm590.p0.249.el6                             cloudera-manager                          8.3 k

Transaction Summary
========================================================================================================================================================================================
Install       2 Package(s)

Total size: 528 M
Installed size: 679 M
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID e8f86acd: NOKEY
Retrieving key from https://archive.cloudera.com/cm5/redhat/6/x86_64/cm/RPM-GPG-KEY-cloudera
Importing GPG key 0xE8F86ACD:
 Userid: "Yum Maintainer <webmaster@cloudera.com>"
 From  : https://archive.cloudera.com/cm5/redhat/6/x86_64/cm/RPM-GPG-KEY-cloudera
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : cloudera-manager-daemons-5.9.0-1.cm590.p0.249.el6.x86_64                                                                                                             1/2
  Installing : cloudera-manager-server-5.9.0-1.cm590.p0.249.el6.x86_64                                                                                                              2/2
  Verifying  : cloudera-manager-server-5.9.0-1.cm590.p0.249.el6.x86_64                                                                                                              1/2
  Verifying  : cloudera-manager-daemons-5.9.0-1.cm590.p0.249.el6.x86_64                                                                                                             2/2

Installed:
  cloudera-manager-daemons.x86_64 0:5.9.0-1.cm590.p0.249.el6                                  cloudera-manager-server.x86_64 0:5.9.0-1.cm590.p0.249.el6

Complete!
[root@ip-172-31-15-248 ~]# sudo /usr/share/cmf/schema/scm_prepare_database.sh mysql -h 172.31.2.18 --scm-host ip-172-31-15-248 scm scm welcome1
JAVA_HOME=/usr/lib/jvm/jre-openjdk
Verifying that we can write to /etc/cloudera-scm-server
Creating SCM configuration file in /etc/cloudera-scm-server
Executing:  /usr/lib/jvm/jre-openjdk/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.
log4j:ERROR Could not find value for key log4j.appender.A
log4j:ERROR Could not instantiate appender named "A".
[2016-12-08 21:53:43,570] INFO     0[main] - com.cloudera.enterprise.dbutil.DbCommandExecutor.testDbConnection(DbCommandExecutor.java) - Successfully connected to database.
All done, your SCM database is configured correctly!
[root@ip-172-31-15-248 ~]# service cloudera-scm-server start
Starting cloudera-scm-server:                              [  OK  ]
robgajudo commented 7 years ago

I wonder if the error below is acceptable? Any workaround for this? The database was prepared but still encountered the error.

[root@ip-172-31-15-248 ~]# sudo /usr/share/cmf/schema/scm_prepare_database.sh mysql -h 172.31.2.18 --scm-host ip-172-31-15-248 scm scm welcome1
JAVA_HOME=/usr/lib/jvm/jre-openjdk
Verifying that we can write to /etc/cloudera-scm-server
Creating SCM configuration file in /etc/cloudera-scm-server
Executing:  /usr/lib/jvm/jre-openjdk/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.
log4j:ERROR Could not find value for key log4j.appender.A
log4j:ERROR Could not instantiate appender named "A".
[2016-12-08 21:53:43,570] INFO     0[main] - com.cloudera.enterprise.dbutil.DbCommandExecutor.testDbConnection(DbCommandExecutor.java) - Successfully connected to database.
All done, your SCM database is configured correctly!
mfernest commented 7 years ago

👍