2017년 4월 24일 월요일

kylin 1.6 설치하기

참조URL: http://kylin.apache.org/docs20/install/index.html

1. kylin사용자 생성
# useradd kylin
# passwd kylin
Changing password for user kylin.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

2. hadoopkylin사용자 생성
hadoopsuperuserhdfs이다. hdfs계정으로 kylin 사용자 생성
root 사용자 생성이 필요
# sudo -u hdfs hadoop fs -mkdir /user/kylin
# sudo -u hdfs hadoop fs -chown kylin /user/kylin
# sudo -u hdfs hadoop fs -mkdir /kylin
# sudo -u hdfs hadoop fs -chown kylin:hdfs /kylin
# sudo -u hdfs hadoop fs -ls /
Found 10 items
drwxrwxrwx   - yarn   hadoop          0 2017-04-18 18:14 /app-logs
drwxr-xr-x   - hdfs   hdfs            0 2017-04-19 09:02 /apps
drwxr-xr-x   - yarn   hadoop          0 2017-04-18 18:14 /ats
drwxr-xr-x   - hdfs   hdfs            0 2017-04-18 18:14 /hdp
drwxr-xr-x   - kylin  hdfs            0 2017-04-21 18:56 /kylin
drwxr-xr-x   - mapred hdfs            0 2017-04-18 18:14 /mapred
drwxrwxrwx   - mapred hadoop          0 2017-04-18 18:14 /mr-history
drwxrwxrwx   - spark  hadoop          0 2017-04-21 18:56 /spark-history
drwxrwxrwx   - hdfs   hdfs            0 2017-04-19 09:07 /tmp
drwxr-xr-x   - hdfs   hdfs            0 2017-04-21 18:48 /user

3. Kylin설치파일을 특정위치에 푼다.
# mkdir -p /data01/kylin
# chown kylin:kylin /data01/kylin
# su kylin
$ tar xzvf apache-kylin-1.6.0-hbase1.x-bin.tar.gz
$ cp -r apache-kylin-1.6.0-hbase1.x-bin/* /data01/kylin/

4. KYLIN_HOME지정
$ vi ~/.bash_profile
KYLIN_HOME=/data01/kylin

export KYLIN_HOME

$ KYLIN_HOME=/data01/kylin
$ export KYLIN_HOME
$ echo $KYLIN_HOME
/data01/kylin

5. 환경 적합도 확인
$ cd $KYLIN_HOME
$ ./bin/check-env.sh
KYLIN_HOME is set to /data01/kylin
Please make sure the user has the privilege to run hive shell

hive shell이 안깔렸다.

hbase master노드에 client들을 설치한다.
























$ bin/check-env.sh
KYLIN_HOME is set to /data01/kylin
$
아무 에러가 없다.

6. kylin 기동
$ bin/kylin.sh start
KYLIN_HOME is set to /data01/kylin
kylin.security.profile is set to testing
KYLIN_HOME is set to /data01/kylin
WARNING: Use "yarn jar" to launch YARN applications.

Logging initialized using configuration in file:/etc/hive/2.4.2.0-258/0/hive-log4j.properties
HCAT_HOME not found, try to find hcatalog path from hadoop home
hive dependency:
…..
A new Kylin instance is started by kylin, stop it using "kylin.sh stop"
Please visit http://<ip>:7070/kylin
You can check the log at /data01/kylin/logs/kylin.log
$

id: admin
pwd: KYLIN



8. KYLIN ODBC추가




댓글 없음:

댓글 쓰기