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 2019/03/29 14:11:59 UTC

svn commit: r1856540 - in /kylin/site: cn/development/dev_env.html cn/docs/tutorial/create_cube.html development/dev_env.html feed.xml

Author: lidong
Date: Fri Mar 29 14:11:58 2019
New Revision: 1856540

URL: http://svn.apache.org/viewvc?rev=1856540&view=rev
Log:
Add more detail about "how to setup dev env". Correct wrong Chinese character.

Modified:
    kylin/site/cn/development/dev_env.html
    kylin/site/cn/docs/tutorial/create_cube.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=1856540&r1=1856539&r2=1856540&view=diff
==============================================================================
--- kylin/site/cn/development/dev_env.html (original)
+++ kylin/site/cn/development/dev_env.html Fri Mar 29 14:11:58 2019
@@ -173,16 +173,23 @@ var _hmt = _hmt || [];
 
 <h2 id="hadoop-">Hadoop 客户端环境</h2>
 
-<p>Off-Hadoop-CLI 安装需要您有一个有 hadoop 客户端的机器(或一个 hadoop 沙箱)以及本地开发机器。为了简化操作,我们强烈建议您从 hadoop 沙箱上运行 Kylin 开始。在下面的教程中,我们将使用 Hortonworks®Sandbox2.4.0.0-169,您可以从 Hortonworks 下载页面下载它,展开“Hortonworks Sandbox Archive”链接,然后搜索“HDP® 2.4 on Hortonworks Sandbox”进行下载。建议您为沙箱虚拟机提供足够的内存,首选 8G 或更多。</p>
+<p>Off-Hadoop-CLI 安装需要您有一个有 hadoop 客户端的机器(或一个 hadoop 沙箱)以及本地开发机器。为了简化操作,我们强烈建议您从 hadoop 沙箱上运行 Kylin 开始。在下面的教程中,我们将使用 Hortonworks®Sandbox2.4.0.0-169,您可以从 Hortonworks 下载页面下载它,展开“Hortonworks Sandbox Archive”链接,然后搜索“HDP® 2.4 on Hortonworks Sandbox”进行下载。建议您为沙箱虚拟机提供足够的内存,首选 8G 或更多。<br />
+<strong>提示:</strong>使用HDP-2.4.0.0.169沙箱并使用10GB或者更多内存进行部署会更好。一些新版本的HDP沙箱使用docker部署它们的集群服务并且封装在虚拟机里面。你需要上传你的项目到docker容器中来运行集成测试,这不太方便。更高的内存将减少虚拟机杀掉测试进程的可能性。</p>
 
 <h3 id="hadoop">启动 Hadoop</h3>
 
+<p>启动完成之后,你可以使用root账户登陆。</p>
+
 <p>在 Hortonworks sandbox 中, ambari 会帮助您运行 hadoop:</p>
 
 <div class="highlight"><pre><code class="language-groff" data-lang="groff">ambari-agent start
 ambari-server start</code></pre></div>
 
-<p>上述命令执行成功后您可以到 ambari 主页 <a href="http://yoursandboxip:8080">http://yoursandboxip:8080</a> 去检查所有组件的状态。默认情况下 ambari 使 HBase 失效,您需要手动启动 <code class="highlighter-rouge">HBase</code> 服务。<br />
+<p>然后重置ambari的admin用户密码为<code class="highlighter-rouge">admin</code>:</p>
+
+<div class="highlight"><pre><code class="language-groff" data-lang="groff">ambari-admin-password-reset</code></pre></div>
+
+<p>上述命令执行成功后您可以以admin的身份登陆到 ambari 主页 <a href="http://yoursandboxip:8080">http://yoursandboxip:8080</a> 去检查所有组件的状态。默认情况下 ambari 使 HBase 失效,您需要手动启动 <code class="highlighter-rouge">HBase</code> 服务。<br />
 <img src="https://raw.githubusercontent.com/KylinOLAP/kylinolap.github.io/master/docs/installation/starthbase.png" alt="start hbase in ambari" /></p>
 
 <p>对于 hadoop 分布式,基本上启动 hadoop 集群,确保 HDFS,YARN,Hive,HBase 运行着即可。</p>
@@ -191,7 +198,8 @@ ambari-server start</code></pre></div>
 
 <ul>
   <li>为YARN resource manager 分配 3-4GB 内存.</li>
-  <li>升级 Sandbox 里的 Java 到 Java 8 (Kyin 2.5 需要 Java 8).</li>
+  <li>升级 Sandbox 里的 Java 到 Java 8 (Kyin 2.5 需要 Java 8). 链接原本的JAVA_HOME指向新的将改变每一个用户的jdk版本。否则,你也许会遇到<code class="highlighter-rouge">UnsupportedClassVersionError</code>异常. 这里有一些邮件是关于这个问题的: <a href="https://lists.apache.org/thread.html/46eb7e4083fd25a461f09573fc4225689e61c0d8150463a2c0eb65ef@%3Cdev.kylin.apache.org%3E">spark task error occurs when run IT in sanbox</a>     <br />
+<strong>Tips:</strong> 这里有一些关于沙箱的教程会有帮助。 <a href="https://hortonworks.com/tutorial/learning-the-ropes-of-the-hortonworks-sandbox">Learning the Ropes of the HDP Sandbox</a></li>
 </ul>
 
 <h2 id="section">开发机器的环境</h2>

Modified: kylin/site/cn/docs/tutorial/create_cube.html
URL: http://svn.apache.org/viewvc/kylin/site/cn/docs/tutorial/create_cube.html?rev=1856540&r1=1856539&r2=1856540&view=diff
==============================================================================
--- kylin/site/cn/docs/tutorial/create_cube.html (original)
+++ kylin/site/cn/docs/tutorial/create_cube.html Fri Mar 29 14:11:58 2019
@@ -373,7 +373,7 @@ TopN 度量在每个ç»�
     <ul>
       <li>
         <p>EXTENDED_COLUMN<br />
-Extended_Column 作为度量比作为维度更节省空间。一列和零一列可以生成新的列。</p>
+Extended_Column 作为度量比作为维度更节省空间。一列和另一列可以生成新的列。</p>
 
         <p><img src="/images/tutorial/1.5/Kylin-Cube-Creation-Tutorial/8 measure-extended_column.PNG" alt="" /></p>
       </li>

Modified: kylin/site/development/dev_env.html
URL: http://svn.apache.org/viewvc/kylin/site/development/dev_env.html?rev=1856540&r1=1856539&r2=1856540&view=diff
==============================================================================
--- kylin/site/development/dev_env.html (original)
+++ kylin/site/development/dev_env.html Fri Mar 29 14:11:58 2019
@@ -6350,16 +6350,23 @@ var _hmt = _hmt || [];
 
 <h2 id="environment-on-the-hadoop-cli">Environment on the Hadoop CLI</h2>
 
-<p>Off-Hadoop-CLI installation requires you having a hadoop CLI machine (or a hadoop sandbox) as well as your local develop machine. To make things easier we strongly recommend you starting with running Kylin on a hadoop sandbox. In the following tutorial we’ll go with <strong>Hortonworks® Sandbox 2.4.0.0-169</strong>, you can download it from <a href="https://hortonworks.com/downloads/#sandbox">Hortonworks download page</a>, expand the “Hortonworks Sandbox Archive” link, and then search “HDP® 2.4 on Hortonworks Sandbox” to download. It is recommended that you provide enough memory to your sandbox vm, 8G or more is preferred.</p>
+<p>Off-Hadoop-CLI installation requires you having a hadoop CLI machine (or a hadoop sandbox) as well as your local develop machine. To make things easier we strongly recommend you starting with running Kylin on a hadoop sandbox. In the following tutorial we’ll go with <strong>Hortonworks® Sandbox 2.4.0.0-169</strong>, you can download it from <a href="https://hortonworks.com/downloads/#sandbox">Hortonworks download page</a>, expand the “Hortonworks Sandbox Archive” link, and then search “HDP® 2.4 on Hortonworks Sandbox” to download. It is recommended that you provide enough memory to your sandbox vm, 8G or more is preferred.  <br />
+<strong>Tips:</strong> Use HDP-2.4.0.0.169 sandbox and deploy it with 10GB memory or more will be better. Some newer version HDP sandbox use docker deploy their cluster service and wraped in virual machine. You need to upload you project into docker container to run integration test, which doesn’t convenient. Higher memory will reduce the possibility that virtual machine kill the test process.</p>
 
 <h3 id="start-hadoop">Start Hadoop</h3>
 
+<p>After start the virtual machine, you can login as root.</p>
+
 <p>In Hortonworks sandbox, ambari helps to launch hadoop:</p>
 
 <div class="highlight"><pre><code class="language-groff" data-lang="groff">ambari-agent start
 ambari-server start</code></pre></div>
 
-<p>With both command successfully run you can go to ambari home page at <a href="http://yoursandboxip:8080">http://yoursandboxip:8080</a> to check everything’s status. By default ambari disables HBase, you need to manually start the <code class="highlighter-rouge">HBase</code> service.<br />
+<p>And reset the password of ambari user admin to <code class="highlighter-rouge">admin</code>:</p>
+
+<div class="highlight"><pre><code class="language-groff" data-lang="groff">ambari-admin-password-reset</code></pre></div>
+
+<p>With both command successfully run you can login ambari home page as admin at <a href="http://yoursandboxip:8080">http://yoursandboxip:8080</a> to check everything’s status. By default ambari disables HBase, you need to manually start the <code class="highlighter-rouge">HBase</code> service.<br />
 <img src="https://raw.githubusercontent.com/KylinOLAP/kylinolap.github.io/master/docs/installation/starthbase.png" alt="start hbase in ambari" /></p>
 
 <p>For other hadoop distribution, basically start the hadoop cluster, make sure HDFS, YARN, Hive, HBase are running.</p>
@@ -6368,7 +6375,8 @@ ambari-server start</code></pre></div>
 
 <ul>
   <li>You may need to adjust the YARN configuration, allocating 3-4GB memory to YARN resource manager.</li>
-  <li>The JDK in the sandbox VM might be old, please manually upgrade to Java 8 (Kyin 2.5 requires Java 8).</li>
+  <li>The JDK in the sandbox VM might be old, please manually upgrade to Java 8 (Kyin 2.5 requires Java 8). Relink the orginal JAVA_HOME to an new one will change the jdk version for every user. Otherwise, you may encounter <code class="highlighter-rouge">UnsupportedClassVersionError</code> exception. Here are some mails about this problem: <a href="https://lists.apache.org/thread.html/46eb7e4083fd25a461f09573fc4225689e61c0d8150463a2c0eb65ef@%3Cdev.kylin.apache.org%3E">spark task error occurs when run IT in sanbox</a>     <br />
+<strong>Tips:</strong> Here is a tutorial about sandbox will be helpful. <a href="https://hortonworks.com/tutorial/learning-the-ropes-of-the-hortonworks-sandbox">Learning the Ropes of the HDP Sandbox</a></li>
 </ul>
 
 <h2 id="environment-on-the-dev-machine">Environment on the dev machine</h2>
@@ -6435,7 +6443,7 @@ chmod 777 /hadoop/hbase/local/jars</code
 <h3 id="run-integration-tests">Run integration tests</h3>
 <p>Before actually running integration tests, need to run some end-to-end cube building jobs for test data population, in the meantime validating cubing process. Then comes with the integration tests.</p>
 
-<p>It might take a while (maybe two hours), please keep patient.</p>
+<p>It might take a while (maybe two hours), please keep patient and smooth network.</p>
 
 <div class="highlight"><pre><code class="language-groff" data-lang="groff">mvn verify -fae -Dhdp.version=&lt;hdp-version&gt; -P sandbox</code></pre></div>
 

Modified: kylin/site/feed.xml
URL: http://svn.apache.org/viewvc/kylin/site/feed.xml?rev=1856540&r1=1856539&r2=1856540&view=diff
==============================================================================
--- kylin/site/feed.xml (original)
+++ kylin/site/feed.xml Fri Mar 29 14:11:58 2019
@@ -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>Mon, 25 Mar 2019 06:59:17 -0700</pubDate>
-    <lastBuildDate>Mon, 25 Mar 2019 06:59:17 -0700</lastBuildDate>
+    <pubDate>Fri, 29 Mar 2019 06:59:36 -0700</pubDate>
+    <lastBuildDate>Fri, 29 Mar 2019 06:59:36 -0700</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>