You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2018/11/09 14:08:26 UTC

svn commit: r1846249 - in /kylin/site: cn/development/dev_env.html development/dev_env.html feed.xml

Author: lidong
Date: Fri Nov  9 14:08:25 2018
New Revision: 1846249

URL: http://svn.apache.org/viewvc?rev=1846249&view=rev
Log:
Update dev_env

Modified:
    kylin/site/cn/development/dev_env.html
    kylin/site/development/dev_env.html
    kylin/site/feed.xml

Modified: kylin/site/cn/development/dev_env.html
URL: http://svn.apache.org/viewvc/kylin/site/cn/development/dev_env.html?rev=1846249&r1=1846248&r2=1846249&view=diff
==============================================================================
--- kylin/site/cn/development/dev_env.html (original)
+++ kylin/site/cn/development/dev_env.html Fri Nov  9 14:08:25 2018
@@ -273,11 +273,21 @@ bower --allow-root install</code></pre><
 
 <div class="highlight"><pre><code class="language-groff" data-lang="groff">bower.cmd --allow-root install</code></pre></div>
 
-<p>在 IDE,运行 <code class="highlighter-rouge">org.apache.kylin.rest.DebugTomcat</code> 将工作目录设置为 /server 文件夹。(默认情况下 Kylin 服务器将会监听 7070 端口;如果您想要使用另一个端口,请在运行 <code class="highlighter-rouge">DebugTomcat</code> 时将其指定为参数)</p>
+<p>在 IDE,运行 <code class="highlighter-rouge">org.apache.kylin.rest.DebugTomcat</code> 将工作目录设置为 /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” 错误。</p>
 
-<p>查看 Kylin Web <code class="highlighter-rouge">http://localhost:7070/kylin</code>(用户名:ADMIN,密码:KYLIN)</p>
+<p>调节 VM options,例如:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>-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
+</code></pre>
+</div>
+
+<p>添加 Hadoop 相关环境变量:</p>
 
-<p>对于 IntelliJ IDEA 用户,需要修改 “server/kylin-server.iml” 文件,将所有的 “PROVIDED” 替换为 “COMPILE”,否则可能会抛出 “java.lang.NoClassDefFoundError: org/apache/catalina/LifecycleListener” 错误。</p>
+<div class="highlighter-rouge"><pre class="highlight"><code>HADOOP_USER_NAME=root
+</code></pre>
+</div>
+
+<p>查看 Kylin Web <code class="highlighter-rouge">http://localhost:7070/kylin</code>(用户名:ADMIN,密码:KYLIN)</p>
 
 <h2 id="ide-">安装 IDE 编码格式化工具</h2>
 

Modified: kylin/site/development/dev_env.html
URL: http://svn.apache.org/viewvc/kylin/site/development/dev_env.html?rev=1846249&r1=1846248&r2=1846249&view=diff
==============================================================================
--- kylin/site/development/dev_env.html (original)
+++ kylin/site/development/dev_env.html Fri Nov  9 14:08:25 2018
@@ -6132,11 +6132,23 @@ bower --allow-root install</code></pre><
 
 <div class="highlight"><pre><code class="language-groff" data-lang="groff">bower.cmd --allow-root install</code></pre></div>
 
-<p>In IDE, launch <code class="highlighter-rouge">org.apache.kylin.rest.DebugTomcat</code> 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)</p>
+<p>In IDE, launch <code class="highlighter-rouge">org.apache.kylin.rest.DebugTomcat</code>. 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..</p>
 
-<p>Check Kylin Web at <code class="highlighter-rouge">http://localhost:7070/kylin</code> (user:ADMIN, password:KYLIN)</p>
+<p>You may also need to tune the VM options:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>-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
+</code></pre>
+</div>
+
+<p>And Hadoop environment variable:</p>
 
-<p>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.</p>
+<div class="highlighter-rouge"><pre class="highlight"><code>HADOOP_USER_NAME=root
+</code></pre>
+</div>
+
+<p>By default Kylin server will listen on 7070 port; If you want to use another port, please specify it as a parameter when run <code class="highlighter-rouge">DebugTomcat</code>.</p>
+
+<p>Check Kylin Web at <code class="highlighter-rouge">http://localhost:7070/kylin</code> (user:ADMIN, password:KYLIN)</p>
 
 <h2 id="setup-ide-code-formatter">Setup IDE code formatter</h2>
 

Modified: kylin/site/feed.xml
URL: http://svn.apache.org/viewvc/kylin/site/feed.xml?rev=1846249&r1=1846248&r2=1846249&view=diff
==============================================================================
--- kylin/site/feed.xml (original)
+++ kylin/site/feed.xml Fri Nov  9 14:08:25 2018
@@ -19,8 +19,8 @@
     <description>Apache Kylin Home</description>
     <link>http://kylin.apache.org/</link>
     <atom:link href="http://kylin.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Thu, 08 Nov 2018 05:59:23 -0800</pubDate>
-    <lastBuildDate>Thu, 08 Nov 2018 05:59:23 -0800</lastBuildDate>
+    <pubDate>Fri, 09 Nov 2018 05:59:21 -0800</pubDate>
+    <lastBuildDate>Fri, 09 Nov 2018 05:59:21 -0800</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>