1. 서버 환경 구성
1) centos 7.2 설치 (xfs 파일시스템)
2) dns 등록 (forward/reverse)
3) 커널 옵션 조정 (ipv6 disable, swapiness, transparent 등등)
4) jdk 설치 (1.8.31...)
2. yum repo 구성
yum repolist
3. yum cloudera manager install
yum install cloudera-manager-daemons cloudea-manager-server
(/etc/default/cloudera-scm-server 설정, -Xmx2G -> 4G for oracle)
4. external mysql install
- install mysql using tar.. or bin
- /sbin/chkconfig mysqld on
/sbin/chkconfig --list mysqld mysqld
- cp mysql-connector-java-5.1.31-bin.jar /usr/share/java/mysql-connector-java.jar
- service database 생성 ( amon, rman, sentry, nav, navms.. )
- my.cnf 특징
transaction-isolation = READ-COMMITTED
max_connections = 550
5. external db setting
- db 설정 : /etc/cloudera-scm-server/db.properties
- db 임시 admin 권한 부여
grant all on *.* to 'temp'@'%' identified by 'temp' with grant option;
- db 설정 변경
scm_prepare_database.sh mysql -h mysqldb1 -utemp -ptemp --scm-host cmanger1 scm scm scm (db, user, pass)
(/usr/share/cmf/schema/scm_prepare_database.sh)
- db 임시 admin 삭제
drop user 'temp'@'%';
6. service start
service cloudera-scm-server start (manager)
service cloudera-scm-agent start (agent)
'NoSQL > cloudera' 카테고리의 다른 글
cdh data redaction (0) | 2016.11.28 |
---|---|
CDH 인증, 권한, 암호화, navi (0) | 2016.10.18 |