分享

ubuntu 14.04 安装 Cloudera Manager5【添加yum源方式】

1.准备
系统版本ubuntu 14.04
执行命令 sudo apt-get update
sudo apt-get install vim
sudo apt-get install openssh-server
uname -a
显示如下:Linux cdhmaster 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

2.添加CM5的源
http://archive.cloudera.com/cm5/ubuntu/trusty/amd64/cm/cloudera.list
http://archive.cloudera.com/cm5/ubuntu/trusty/amd64/cm/archive.key
下载这两个文件,winscp方式或者复制粘贴到ubuntu的Downloads文件夹
执行两项操作:
A.apt-key操作
more archive.key | sudo apt-key add -
B.mv操作
sudo mv ./cloudera.list /etc/apt/sources.list.d/cloudera.list

3.刷新源列表
sudo apt-get update

4.tar方式安装jdk到目录 /usr/java
tar -zxvf ./jdk-8u91-linux-x64.tar.gz
配置java环境变量
sudo vim ~/.bashrc
添加如下内容:
export JAVA_HOME=/usr/java/jdk1.8.0_91
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
执行source命令
source ~/.bashrc
验证  echo $JAVA_HOME
java -version

5.安装mysql以及JDBC驱动
sudo apt-get install mysql-server libmysql-java
查看/var/log/apt/history.log

mysql.png

6.配置mysql数据库
1)sudo vim /etc/mysql/conf.d/mysql_cloudera_manager.cnf
添加如下内容:
[mysqld]
transaction-isolation=READ-COMMITTED
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
key_buffer              = 16M
key_buffer_size         = 32M
max_allowed_packet      = 16M
thread_stack            = 256K
thread_cache_size       = 64
query_cache_limit       = 8M
query_cache_size        = 64M
query_cache_type        = 1
# Important: see Configuring the Databases and Setting max_connections
max_connections         = 550
# log-bin should be on a disk with enough free space
log-bin=/var/log/mysql/mysql_binary_log
# For MySQL version 5.1.8 or later. Comment out binlog_format for older versions.
binlog_format           = mixed
read_buffer_size = 2M
read_rnd_buffer_size = 16M
sort_buffer_size = 8M
join_buffer_size = 8M
# InnoDB settings
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit  = 2
innodb_log_buffer_size          = 64M
innodb_buffer_pool_size         = 4G
innodb_thread_concurrency       = 8
innodb_flush_method             = O_DIRECT
innodb_log_file_size = 512M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

2)sudo vim /etc/mysql/my.cnf
#bind-address           = 127.0.0.1

3)配置innodb
sudo su
mv /var/lib/mysql/ib_logfile* /var/tmp/
exit

4)初始化数据库
sudo service mysql restart
mysql -h cdhmaster -uroot -p


7.安装cloudera-manager
sudo apt-get install cloudera-manager-daemons cloudera-manager-server  cloudera-manager-agent
查看/var/log/apt/history.log,验证如下:

cmd.png

8.配置cloudera-manager-server数据库
sudo /usr/share/cmf/schema/scm_prepare_database.sh mysql  -uroot -p --scm-host localhost scm scm scm_password
本次CM只是单机的安装,只安装在cdhmaster中。

9.访问web控制台
http://cdhmaster:7180


cdhmaster

cdhmaster

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条