Kylin Compiler deployment and localization

First, download

git clone https://github.com/apache/kylin.git

Second, the compiler

1, the compiler

mvn clean install -DskipTests

2, copy files

cp -r server/src/main/webapp/WEB-INF webapp/app/WEB-INF

3, installation bower

cd webapp
npm install -g bower
bower --allow-root install

4, packing

a) windows64 bit mounted at wget

Download  http://www.alexlomas.com/wGET64.zip  , after decompression, WGET64.EXE renamed wget.exe; and configures the PATH environment variable, so that can be performed directly in the window wget command line

b) order package

build/script/package.sh

After the package is completed, generating apache-kylin-2.2.0-SNAPSHOT-bin.tar.gz installation package at kylin \ dist \ directory

Three, Kylin installation

1, extract

tar xvf apache-kylin-2.2.0-SNAPSHOT-bin.tar.gz

 2, check the environment

Note: Kylin rely hadoop environment, we need to have read and write permissions hdfs, it is installed in the user's hdfs

bin/check-env.sh
  
注意:可能会报错bad interpreter;原因是在Windows环境下编译的,导致shell脚本在linux下报错
解决办法:对文件进行修改
sed -i 's/\r//' conf/setenv.sh
sed -i 's/\r//' bin/check-env.sh
sed -i 's/\r//' bin/check-migration-acl.sh
sed -i 's/\r//' bin/diag.sh
sed -i 's/\r//' bin/find-hadoop-conf-dir.sh
sed -i 's/\r//' bin/find-hbase-dependency.sh
sed -i 's/\r//' bin/find-hive-dependency.sh
sed -i 's/\r//' bin/find-kafka-dependency.sh
sed -i 's/\r//' bin/find-spark-dependency.sh
sed -i 's/\r//' bin/get-properties.sh
sed -i 's/\r//' bin/header.sh
sed -i 's/\r//' bin/health-check.sh
sed -i 's/\r//' bin/kylin-port-replace-util.sh
sed -i 's/\r//' bin/kylin.sh
sed -i 's/\r//' bin/load-hive-conf.sh
sed -i 's/\r//' bin/metastore.sh
sed -i 's/\r//' bin/sample.sh

3, start

bin/kylin.sh start

4, access address

http://hostname:7070/kylin
默认用户名密码:ADMIN/KYLIN

Fourth, the development environment

 

1、idea

mvn idea:idea

2、eclipse

mvn eclipse:eclipse

Fifth, Chinese

1, modify the position

kylin\webapp\app\js   js文件
kylin\webapp\app\partials   html页面

Note: You need to repackage after finished, and then use the file in the apache-kylin-2.2.0-SNAPSHOT-bin \ tomcat \ webapps \ kylin.war package kylin \ js file js directory has been replaced at the start of the corresponding directory kylin you can, pay attention to the file name you want to change the name of the file you want to replace, you do not need to reboot.

Js files (html and js are packaged in a js) is compiled after finished: scripts.min.20170901165054.js

Js and html source file after finished: app.rar

2, modify the file

1, js file

webapp\app\js\controllers\access.js
webapp\app\js\controllers\admin.js
webapp\app\js\controllers\auth.js
webapp\app\js\controllers\badQuery.js
webapp\app\js\controllers\cube.js
webapp\app\js\controllers\cubeAdvanceSetting.js
webapp\app\js\controllers\cubeDimensions.js
webapp\app\js\controllers\cubeEdit.js
webapp\app\js\controllers\cubeMeasures.js
webapp\app\js\controllers\cubes.js
webapp\app\js\controllers\cubeSchema.js
webapp\app\js\controllers\index.js
webapp\app\js\controllers\job.js
webapp\app\js\controllers\modelDataModel.js
webapp\app\js\controllers\modelEdit.js
webapp\app\js\controllers\models.js
webapp\app\js\controllers\modelSchema.js
webapp\app\js\controllers\page.js
webapp\app\js\controllers\projects.js
webapp\app\js\controllers\query.js
webapp\app\js\controllers\sourceMeta.js
webapp\app\js\controllers\streamingConfig.js
webapp\app\js\directives\directives.js
webapp\app\js\model\cubeListModel.js
webapp\app\js\model\cubesManager.js
webapp\app\js\model\jobListModel.js
webapp\app\js\model\modelsManager.js
webapp\app\js\model\streamingListModel.js
webapp\app\js\model\tableModel.js
webapp\app\js\listeners.js
webapp\app\js\model\projectConfig.js

2, html page

webapp\app\partials\home.html
webapp\app\partials\header.html
webapp\app\partials\footer.html
webapp\app\partials\tables\loadStreamingTable.html
webapp\app\partials\tables\source_table_tree.html
webapp\app\partials\tables\table_detail.html
webapp\app\partials\tables\table_load.html
webapp\app\partials\query\query.html
webapp\app\partials\query\query_detail.html
webapp\app\partials\projects\projects.html
webapp\app\partials\projects\project_create.html
webapp\app\partials\models\model_schema.html
webapp\app\partials\models\model_json_edit.html
webapp\app\partials\models\model_clone.html
webapp\app\partials\modelDesigner\data_model.html
webapp\app\partials\modelDesigner\model_dimensions.html
webapp\app\partials\modelDesigner\model_measures.html
webapp\app\partials\modelDesigner\model_info.html
webapp\app\partials\cubeDesigner\info.html
webapp\app\partials\cubeDesigner\dimensions.html
webapp\app\partials\cubeDesigner\measures.html
webapp\app\partials\cubeDesigner\refresh_settings.html
webapp\app\partials\cubeDesigner\advanced_settings.html
webapp\app\partials\cubeDesigner\cubeOverwriteProp.html
webapp\app\partials\tables\loadStreamingTable.html
webapp\app\partials\jobs\job_refresh.html
webapp\app\partials\jobs\job_merge.html
webapp\app\partials\jobs\job_steps.html
webapp\app\partials\jobs\job_submit.html
webapp\app\partials\directives\pagination.html

 

Guess you like

Origin blog.csdn.net/zwahut/article/details/90636575