This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch document
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/document by this push:
     new 55c3f7a  Update dev_env
55c3f7a is described below

commit 55c3f7acb3d3c5a19fcb59220480b54d38bea4fb
Author: shaofengshi <shaofeng...@apache.org>
AuthorDate: Fri Nov 9 18:26:58 2018 +0800

    Update dev_env
---
 website/_dev/dev_env.cn.md | 15 +++++++++++++--
 website/_dev/dev_env.md    | 17 +++++++++++++++--
 2 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/website/_dev/dev_env.cn.md b/website/_dev/dev_env.cn.md
index dfaf8b6..eb99604 100644
--- a/website/_dev/dev_env.cn.md
+++ b/website/_dev/dev_env.cn.md
@@ -129,11 +129,22 @@ bower --allow-root install
 bower.cmd --allow-root install
 {% endhighlight %}
 
-在 IDE,运行 `org.apache.kylin.rest.DebugTomcat` 将工作目录设置为 /server 文件夹。(默认情况下 Kylin 
服务器将会监听 7070 端口;如果您想要使用另一个端口,请在运行 `DebugTomcat` 时将其指定为参数)
+在 IDE,运行 `org.apache.kylin.rest.DebugTomcat` 将工作目录设置为 /server 文件夹,使用 
"kylin-server" 的 classpath。对于 IntelliJ IDEA  2017 或之前的用户,需要修改 
"server/kylin-server.iml" 文件,将所有的 "PROVIDED" 替换为 "COMPILE";对于 IntelliJ IDEA 
2018 用户,请勾选 “Include dependencies with 'Provided' scope”,否则可能会抛出 
"java.lang.NoClassDefFoundError: org/apache/catalina/LifecycleListener" 错误。
+
+调节 VM options,例如:
+
+```
+-Dhdp.version=2.4.0.0-169 -DSPARK_HOME=/usr/local/spark 
-Dkylin.hadoop.conf.dir=/workspace/kylin/examples/test_case_data/sandbox 
-Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m
+```
+
+添加 Hadoop 相关环境变量:
+
+```
+HADOOP_USER_NAME=root
+```
 
 查看 Kylin Web `http://localhost:7070/kylin`(用户名:ADMIN,密码:KYLIN)
 
-对于 IntelliJ IDEA 用户,需要修改 "server/kylin-server.iml" 文件,将所有的 "PROVIDED" 替换为 
"COMPILE",否则可能会抛出 "java.lang.NoClassDefFoundError: 
org/apache/catalina/LifecycleListener" 错误。
 
 ## 安装 IDE 编码格式化工具
 
diff --git a/website/_dev/dev_env.md b/website/_dev/dev_env.md
index 3eb5909..0b98aaf 100644
--- a/website/_dev/dev_env.md
+++ b/website/_dev/dev_env.md
@@ -130,11 +130,24 @@ Note, if on Windows, after install bower, need to add the 
path of "bower.cmd" to
 bower.cmd --allow-root install
 {% endhighlight %}
 
-In IDE, launch `org.apache.kylin.rest.DebugTomcat` with working directory set 
to the /server folder. (By default Kylin server will listen on 7070 port; If 
you want to use another port, please specify it as a parameter when run 
`DebugTomcat)
+In IDE, launch `org.apache.kylin.rest.DebugTomcat`. Please set the path of 
"server" module as the "Working directory", set "kylin-server" for "Use 
classpath of module", and check "Include dependencies with 'Provided' scope" 
option in IntelliJ IDEA 2018. If you're using IntelliJ IDEA 2017 and older, you 
need modify "server/kylin-server.iml" file, replace all "PROVIDED" to 
"COMPILE", otherwise an "java.lang.NoClassDefFoundError: 
org/apache/catalina/LifecycleListener" error may be thrown.. 
+
+You may also need to tune the VM options:
+
+```
+-Dhdp.version=2.4.0.0-169 -DSPARK_HOME=/usr/local/spark 
-Dkylin.hadoop.conf.dir=/workspace/kylin/examples/test_case_data/sandbox 
-Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m
+```
+
+And Hadoop environment variable:
+
+```
+HADOOP_USER_NAME=root
+```
+
+By default Kylin server will listen on 7070 port; If you want to use another 
port, please specify it as a parameter when run `DebugTomcat`.
 
 Check Kylin Web at `http://localhost:7070/kylin` (user:ADMIN, password:KYLIN)
 
-For IntelliJ IDEA users, need modify "server/kylin-server.iml" file, replace 
all "PROVIDED" to "COMPILE", otherwise an "java.lang.NoClassDefFoundError: 
org/apache/catalina/LifecycleListener" error may be thrown.
 
 ## Setup IDE code formatter
 

Reply via email to