kylin编译

一、安装mvn

[root@docker-193 install]# cd /BigData/install
[root@docker-193 install]# wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
[root@docker-193 install]# tar -xvzf apache-maven-3.3.9-bin.tar.gz
[root@docker-193 install]# chown -R dcadmin:dcadmin apache-maven-3.3.9-binn
[root@docker-193 install]# cd /BigData/run
[root@docker-193 run]# ln -s /BigData/install/apache-maven-3.3.9-bin maven
[root@docker-193 run]# vi /etc/profile.d/bigdata.d/mvn.sh
#添加如下内容保存
export MAVEN_HOME=/BigData/run/maven
export PATH=$MAVEN_HOME/bin:$PATH
#保存退出
[root@docker-193 run]# su - dcadmin
[dcadmin@docker-193 ~]$ mvn -version

二、安装npm

wget https://npm.taobao.org/mirrors/node/v9.11.1/node-v9.11.1-linux-x64.tar.gz
tar -xvzf node-v9.11.1-linux-x64.tar.gz 

修改profile配置文件,添加如下内容

export NODE_HOME=/BigData/install/node-v9.11.1-linux-x64
export PATH=$NODE_HOME/bin:$PATH

保存退出,执行如下命令

[dcadmin@docker-193 ~]$ npm -v
5.6.0

三、编译kylin

参考网址:http://kylin.apache.org/development/howto_package.html

cd kylin
build/script/package.sh -P cdh5.7

你可能感兴趣的:(kylin)