CDH6.2安装之YUM方式
参考:
https://www.sysit.cn/blog/post/sysit/CDH6.2.0%E7%B3%BB%E7%BB%9F%E9%83%A8%E7%BD%B2%E6%89%8B%E5%86%8C
https://www.cnblogs.com/yinzhengjie/articles/11029566.html
https://www.cnblogs.com/yinzhengjie/p/10372369.html
官网
https://www.cloudera.com/documentation/enterprise/6/6.2/topics/install_cm_cdh.html
https://blog.51cto.com/7072753/2176533?source=dra
1/ 配置cloudera官方源
每个节点
https://www.cloudera.com/documentation/enterprise/6/6.2/topics/configure_cm_repo.html
wget https://archive.cloudera.com/cm6/6.2.0/redhat7/yum/cloudera-manager.repo
mv cloudera-manager.repo /etc/yum.repos.d/
rpm --import https://archive.cloudera.com/cm6/6.2.0/redhat7/yum/RPM-GPG-KEY-cloudera
2/ Installing Oracle JDK Using Cloudera Manager
#一般yum安装的oracle-jdk都放在/usr/java下:
yum install java -y
配置环境变量,在 profie 文 件 末 尾 添 加 jdk 路 径 :
export JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
export CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
source /etc/profile
#一般open-jdk在/usr/lib/jvm/
参考: https://www.cnblogs.com/hongfeng2019/p/11331688.html
tips: /etc/profile注释掉的也会生效,删除老配置,source, exit用户再进入即生效.
3/ 安装cm
管理节点:
yum install cloudera-manager-daemons
yum install cloudera-manager-agent
yum install cloudera-manager-server
其它节点:
yum install cloudera-manager-agent
4/ 在管理节点mysql建相关库
# 登录mysql
mysql -uroot -p
建立库前:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| test |
+--------------------+
5 rows in set (0.00 sec)
#数据库配置
https://www.cloudera.com/documentation/enterprise/6/6.2/topics/cm_ig_mysql.html#cmig_topic_5_5
CREATE DATABASE scm DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON scm.* TO 'scm'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON scm.* TO 'scm'@'localhost' IDENTIFIED BY 'Fengfeng99~';
CREATE DATABASE amon DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON amon.* TO 'amon'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON amon.* TO 'amon'@'localhost' IDENTIFIED BY 'Fengfeng99~';
CREATE DATABASE rman DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON rman.* TO 'rman'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON rman.* TO 'rman'@'localhost' IDENTIFIED BY 'Fengfeng99~';
CREATE DATABASE hue DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON hue.* TO 'hue'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON hue.* TO 'hue'@'localhost' IDENTIFIED BY 'Fengfeng99~';
CREATE DATABASE hive DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON hive.* TO 'hive'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON hive.* TO 'hive'@'localhost' IDENTIFIED BY 'Fengfeng99~';
CREATE DATABASE sentry DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON sentry.* TO 'sentry'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON sentry.* TO 'sentry'@'localhost' IDENTIFIED BY 'Fengfeng99~';
CREATE DATABASE nav DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON nav.* TO 'nav'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON nav.* TO 'nav'@'localhost' IDENTIFIED BY 'Fengfeng99~';
CREATE DATABASE navms DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON navms.* TO 'navms'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON navms.* TO 'navms'@'localhost' IDENTIFIED BY 'Fengfeng99~';
CREATE DATABASE oozie DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON oozie.* TO 'oozie'@'%' IDENTIFIED BY 'Fengfeng99~';
GRANT ALL ON oozie.* TO 'oozie'@'localhost' IDENTIFIED BY 'Fengfeng99~';
flush privileges;
#查看授权情况
SHOW GRANTS FOR 'hive'@'%';
#建库后:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| amon |
| hue |
| metastore |
| mysql |
| nav |
| navms |
| oozie |
| performance_schema |
| rman |
| scm |
| sentry |
| sys |
| test |
+--------------------+
安装mysql-connector-java:
wget https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz
tar -zxvf mysql-connector-java-5.1.47.tar.gz
mkdir /usr/share/java
cp mysql-connector-java-5.1.47/mysql-connector-java-5.1.47-bin.jar /usr/share/java/mysql-connector-java.jar
初始化数据库:
/opt/cloudera/cm/schema/scm_prepare_database.sh mysql scm scm Fengfeng99~
#如果数据库在另一台机器上用:https://www.cloudera.com/documentation/enterprise/6/6.2/topics/prepare_cm_database.html
/opt/cloudera/cm/schema/scm_prepare_database.sh mysql -h db01.example.com --scm-host cm01.example.com scm scm
#调整Cloudera Manager Server的默认堆内存大小,从2G调成4G
grep CMF_JAVA_OPTS /etc/default/cloudera-scm-server
export CMF_JAVA_OPTS="-Xmx4G -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp"
#修改各节点的配置文件
grep server_port /etc/cloudera-scm-agent/config.ini #server_port 是Server和Agent的通信端口,别乱改
server_port=7182
grep server_host /etc/cloudera-scm-agent/config.ini #CM服务器默认是本机
server_host=localhost
#修改为指向node1
ansible client -m shell -a 'sed -i 's/server_host=localhost/server_host=zhep-opay-temp-1.novalocal/g' /etc/cloudera-scm-agent/config.ini'
ansible client -m shell -a 'grep server_host /etc/cloudera-scm-agent/config.ini'
# 启动
systemctl start cloudera-scm-server
比较慢,大概需要5-10分钟,可打开日志看,不断会更新数据库的sechma版本
tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log
当看到这一句时,恭喜你,成功了.
2019-08-10 13:03:09,688 INFO WebServerImpl:com.cloudera.server.cmf.WebServerImpl: Started Jetty server.
systemctl enable cloudera-scm-server
systemctl status cloudera-scm-server
# 查看监听端口
ss -antlp | grep 7180
安装过程中会遇到的一些问题:
https://www.cloudera.com/documentation/enterprise/6/6.2/topics/cm_ig_troubleshooting.html#cmig_topic_19
管理节点和各节点:
systemctl restart cloudera-scm-agent
systemctl enable cloudera-scm-agent
systemctl status cloudera-scm-agent
CDH6.2安装之YUM方式的更多相关文章
- Linux环境下安装MySQL(yum方式)
1.下载mysql源安装包shell> wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm 安装my ...
- linux 安装mysql yum方式
centos 6 #二进制rpm包安装 yum -y install mysql-server mysql centos7 mariadb和mysql一样的 只是一个分支 防止 mysql 被Orac ...
- CDH6.2安装之离线方式
参考: https://www.cnblogs.com/swordfall/p/10816797.html 下载parcels: https://archive.cloudera.com/cdh6/6 ...
- docker安装(yum方式)
1. 更新现有的yum 包:sudo yum update 2.添加Docker源: 2.1首先创建docker.repo: touch /etc/yum.repos.d/docker.repo [d ...
- Docker安装(yum方式 centos7)
yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo http://m ...
- CentOS 7.2 yum方式安装MySQL 5.7
CentOS 7之后的版本yum的默认源中使用MariaDB替代原先MySQL,因此安装方式较为以往有一些改变: 下载mysql的源 wget http://dev.mysql.com/get/mys ...
- Centos中yum方式安装java
查看CentOS自带JDK是否已安装.◆输入:yum list installed |grep java. 若有自带安装的JDK,如何卸载CentOS系统自带Java环境?◆卸载JDK相关文件输入:y ...
- CentOS 6.5系统使用yum方式安装LAMP环境和phpMyAdmin详细过程
介绍如何在CentOs6.2下面使用YUM配置安装LAMP环境,一些兄弟也很喜欢使用编译的安装方法,个人觉得如果不是对服务器做定制,用yum安装稳定简单,何必去download&make&am ...
- centos 7 yum方式安装MySQL 5.6
本文根据mysql的官方文档操作:https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/ 由于Centos7 默认数据库是mariabd(网上 ...
随机推荐
- java常用检验接口control方式
@Controller public class ItemController { @Autowired private ItemService itemService; @RequestMappin ...
- Thread(简单使用)
/***thread.c***/#include<stdio.h> #include<stdlib.h> #include<pthread.h> void prin ...
- 安装lanproxy服务端、客户端以及小问题解决
准备 我们这里使用java客户端与服务端连接 1.一台公网服务器(运行proxy-server).2.一台内网客户端(运行proxy-client). 下载地址:https://seafile.cdj ...
- ansible主机互信
前文讲了ansible,但是ansible是基于ssh来做的,首先的和管理主机之间做主机互信,简单来说主机互信就是把主机上产生的公钥传到互信主机上就可以了. 在主机上产生公钥文件.使用命令:ssh-k ...
- 0.JQuery学习
jQuery 教程 jQuery 是一个 JavaScript 库. jQuery 极大地简化了 JavaScript 编程. jQuery 简介 jQuery 库可以通过一行简单的标记被添加到网页中 ...
- CentOS修改Mysql字符集
1.mysql>show variables like 'character_set%'; 显示如下: +--------------------------+----------------- ...
- LeetCode 23. 合并K个排序链表(Merge k Sorted Lists)
题目描述 合并 k 个排序链表,返回合并后的排序链表.请分析和描述算法的复杂度. 示例: 输入: [ 1->4->5, 1->3->4, 2->6 ] 输出: ...
- Linux上Python的安装升级
1.下载 cd /usr/local/src/ wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz 2.安装,在/usr/loc ...
- vue 指示点的疑点拓展
1. 为什么 vue 组件中的 data 是一个函数 1. 为了保证组件的独立性和可复用性,data 是一个函数,组件实例的时候,这个函数将会被调用,返回一个对象,计算机会给这个对象分配一个内存地址, ...
- wait/notify模拟连接池
连接池中的连接可重复使用,减少每次新建和烧毁连接对资源的消耗,但连接池的容量大小也要设置合理,否则也会占用多余的资源.连接池的基本功能是获取连接和释放连接 连接在java中也是一个类,连接对象是一个普 ...