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 2020/04/27 11:24:03 UTC

svn commit: r1877065 - in /kylin/site: cn/docs/gettingstarted/kylin-quickstart.html docs/gettingstarted/kylin-quickstart.html feed.xml

Author: lidong
Date: Mon Apr 27 11:24:03 2020
New Revision: 1877065

URL: http://svn.apache.org/viewvc?rev=1877065&view=rev
Log:
Fix quick start document display problems

Modified:
    kylin/site/cn/docs/gettingstarted/kylin-quickstart.html
    kylin/site/docs/gettingstarted/kylin-quickstart.html
    kylin/site/feed.xml

Modified: kylin/site/cn/docs/gettingstarted/kylin-quickstart.html
URL: http://svn.apache.org/viewvc/kylin/site/cn/docs/gettingstarted/kylin-quickstart.html?rev=1877065&r1=1877064&r2=1877065&view=diff
==============================================================================
--- kylin/site/cn/docs/gettingstarted/kylin-quickstart.html (original)
+++ kylin/site/cn/docs/gettingstarted/kylin-quickstart.html Mon Apr 27 11:24:03 2020
@@ -199,13 +199,16 @@ var _hmt = _hmt || [];
 <p>我们已将面向用户的 Kylin 镜像上传至 docker 仓库,用户无需在本地构建镜像,只需要安装docker,就可以体验kylin的一键安装。</p>
 
 <h4 id="step1-docker--pull-">step1、首先执行以下命令从 docker 仓库 pull 镜像:</h4>
+
 <div class="highlighter-rouge"><pre class="highlight"><code>docker pull apachekylin/apache-kylin-standalone:3.0.1
 </code></pre>
 </div>
+
 <p>此处的镜像包含的是kylin最新Release版本kylin 3.0.1。由于该镜像中包含了所有kylin依赖的大数据组件,所以拉取镜像需要的时间较长,请耐心等待。Pull成功后显示如下:<br />
 <img src="/images/docs/quickstart/pull_docker.png" alt="" /></p>
 
 <h4 id="step2">step2、执行以下命令来启动容器:</h4>
+
 <div class="highlighter-rouge"><pre class="highlight"><code>docker run -d \
 -m 8G \
 -p 7070:7070 \
@@ -217,6 +220,7 @@ var _hmt = _hmt || [];
 apachekylin/apache-kylin-standalone:3.0.1
 </code></pre>
 </div>
+
 <p>容器会很快启动,由于容器内指定端口已经映射到本机端口,可以直接在本机浏览器中打开各个服务的页面,如:</p>
 
 <ul>
@@ -237,17 +241,19 @@ apachekylin/apache-kylin-standalone:3.0.
 </ul>
 
 <p>并自动运行 $KYLIN_HOME/bin/sample.sh及在 Kafka 中创建 kylin_streaming_topic topic 并持续向该 topic 中发送数据。这是为了让用户启动容器后,就能体验以批和流的方式的方式构建 Cube 并进行查询。<br />
-用户可以通过docker exec命令进入容器,容器内相关环境变量如下:<br />
-<code class="highlighter-rouge">
-JAVA_HOME=/home/admin/jdk1.8.0_141
+用户可以通过docker exec命令进入容器,容器内相关环境变量如下:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>JAVA_HOME=/home/admin/jdk1.8.0_141
 HADOOP_HOME=/home/admin/hadoop-2.7.0
 KAFKA_HOME=/home/admin/kafka_2.11-1.1.1
 SPARK_HOME=/home/admin/spark-2.3.1-bin-hadoop2.6
 HBASE_HOME=/home/admin/hbase-1.1.2
 HIVE_HOME=/home/admin/apache-hive-1.2.1-bin
 KYLIN_HOME=/home/admin/apache-kylin-3.0.0-alpha2-bin-hbase1x
-</code><br />
-使用ADMIN/KYLIN的用户名和密码组合登陆Kylin后,用户可以使用sample cube来体验cube的构建和查询,也可以按照下面“基于hadoop环境安装使用kylin”中从step8之后的教程来创建并查询属于自己的model和cube。</p>
+</code></pre>
+</div>
+
+<p>使用ADMIN/KYLIN的用户名和密码组合登陆Kylin后,用户可以使用sample cube来体验cube的构建和查询,也可以按照下面“基于hadoop环境安装使用kylin”中从step8之后的教程来创建并查询属于自己的model和cube。</p>
 
 <h3 id="hadoopkylin">二、	基于hadoop环境安装使用kylin</h3>
 <p>对于已经有稳定hadoop环境的用户,可以下载kylin的二进制包将其部署安装在自己的hadoop集群。安装之前请根据以下要求进行环境检查:</p>
@@ -284,52 +290,64 @@ CentOS 6.5+ 或Ubuntu 16.0.4+</p>
 
 <h4 id="step1kylin">step1、下载kylin压缩包</h4>
 
-<p>从<a href="https://kylin.apache.org/download/">Apache Kylin Download Site</a>下载一个适用于你的Hadoop版本的二进制文件。目前最新Release版本是kylin 3.0.1和kylin 2.6.5,其中3.0版本支持实时摄入数据进行预计算的功能。以CDH 5.的hadoop环境为例,可以使用如下命令行下载kylin 3.0.0:<br />
-<code class="highlighter-rouge">
-cd /usr/local/
+<p>从<a href="https://kylin.apache.org/download/">Apache Kylin Download Site</a>下载一个适用于你的Hadoop版本的二进制文件。目前最新Release版本是kylin 3.0.1和kylin 2.6.5,其中3.0版本支持实时摄入数据进行预计算的功能。以CDH 5.的hadoop环境为例,可以使用如下命令行下载kylin 3.0.0:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>cd /usr/local/
 wget http://apache.website-solution.net/kylin/apache-kylin-3.0.0/apache-kylin-3.0.0-bin-cdh57.tar.gz
-</code><br />
-#### step2、解压kylin</p>
+</code></pre>
+</div>
+
+<h4 id="step2kylin">step2、解压kylin</h4>
 
-<p>解压下载得到的kylin压缩包,并配置环境变量KYLIN_HOME指向解压目录:<br />
-<code class="highlighter-rouge">
-tar -zxvf  apache-kylin-3.0.0-bin-cdh57.tar.gz
+<p>解压下载得到的kylin压缩包,并配置环境变量KYLIN_HOME指向解压目录:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>tar -zxvf  apache-kylin-3.0.0-bin-cdh57.tar.gz
 cd apache-kylin-3.0.0-bin-cdh57
 export KYLIN_HOME=`pwd`
-</code></p>
+</code></pre>
+</div>
 
 <h4 id="step3spark">step3、下载SPARK</h4>
 
-<p>由于kylin启动时会对SPARK环境进行检查,所以你需要设置SPARK_HOME指向自己的spark安装路径:<br />
-<code class="highlighter-rouge">
-export SPARK_HOME=/path/to/spark
-</code><br />
-如果您没有已经下载好的Spark环境,也可以使用kylin自带脚本下载spark:<br />
-<code class="highlighter-rouge">
-$KYLIN_HOME/bin/download-spark.sh
-</code><br />
-脚本会将解压好的spark放在$KYLIN_HOME目录下,如果系统中没有设置SPARK_HOME,启动kylin时会自动找到$KYLIN_HOME目录下的spark。</p>
+<p>由于kylin启动时会对SPARK环境进行检查,所以你需要设置SPARK_HOME指向自己的spark安装路径:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>export SPARK_HOME=/path/to/spark
+</code></pre>
+</div>
+
+<p>如果您没有已经下载好的Spark环境,也可以使用kylin自带脚本下载spark:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>$KYLIN_HOME/bin/download-spark.sh
+</code></pre>
+</div>
+
+<p>脚本会将解压好的spark放在$KYLIN_HOME目录下,如果系统中没有设置SPARK_HOME,启动kylin时会自动找到$KYLIN_HOME目录下的spark。</p>
 
 <h4 id="step4">step4、环境检查</h4>
 
-<p>Kylin 运行在 Hadoop 集群上,对各个组件的版本、访问权限及 CLASSPATH 等都有一定的要求,为了避免遇到各种环境问题,您可以执行<br />
-<code class="highlighter-rouge">
-$KYLIN_HOME/bin/check-env.sh
-</code><br />
-来进行环境检测,如果您的环境存在任何的问题,脚本将打印出详细报错信息。如果没有报错信息,代表您的环境适合 Kylin 运行。</p>
+<p>Kylin 运行在 Hadoop 集群上,对各个组件的版本、访问权限及 CLASSPATH 等都有一定的要求,为了避免遇到各种环境问题,您可以执行</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>$KYLIN_HOME/bin/check-env.sh
+</code></pre>
+</div>
+
+<p>来进行环境检测,如果您的环境存在任何的问题,脚本将打印出详细报错信息。如果没有报错信息,代表您的环境适合 Kylin 运行。</p>
 
 <h4 id="step5kylin">step5、启动kylin</h4>
 
-<p>运行如下命令来启动kylin:<br />
-<code class="highlighter-rouge">
-$KYLIN_HOME/bin/kylin.sh start 
-</code><br />
-如果启动成功,命令行的末尾会输出如下内容:<br />
-<code class="highlighter-rouge">
-A new Kylin instance is started by root. To stop it, run 'kylin.sh stop'
+<p>运行如下命令来启动kylin:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>$KYLIN_HOME/bin/kylin.sh start 
+</code></pre>
+</div>
+
+<p>如果启动成功,命令行的末尾会输出如下内容:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>A new Kylin instance is started by root. To stop it, run 'kylin.sh stop'
 Check the log at /usr/local/apache-kylin-3.0.0-bin-cdh57/logs/kylin.log
 Web UI is at http://&lt;hostname&gt;:7070/kylin
-</code></p>
+</code></pre>
+</div>
 
 <h4 id="step6kylin">step6、访问kylin</h4>
 
@@ -341,21 +359,27 @@ Web UI is at http://&lt;hostname&gt;:707
 <h4 id="step7sample-cube">step7、创建Sample Cube</h4>
 
 <p>Kylin提供了一个创建样例Cube的脚本,以供用户快速体验Kylin。<br />
-在命令行运行:<br />
-<code class="highlighter-rouge">
-$KYLIN_HOME/bin/sample.sh
-</code><br />
-完成后登陆kylin,点击System-&gt;Configuration-&gt;Reload Metadata来重载元数据<br />
+在命令行运行:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>$KYLIN_HOME/bin/sample.sh
+</code></pre>
+</div>
+
+<p>完成后登陆kylin,点击System-&gt;Configuration-&gt;Reload Metadata来重载元数据<br />
 元数据重载完成后你可以在左上角的Project中看到一个名为learn_kylin的项目,它包含kylin_sales_cube和kylin_streaming_cube, 它们分别为batch cube和streaming cube,你可以直接对kylin_sales_cube进行构建,构建完成后就可以查询。<br />
-对于kylin_streaming_cube,需要设置KAFKA_HOME指向你的kafka安装目录:<br />
-<code class="highlighter-rouge">
-export KAFKA_HOME=/path/to/kafka
-</code><br />
-然后执行<br />
-<code class="highlighter-rouge">
-${KYLIN_HOME}/bin/sample-streaming.sh
-</code><br />
-该脚本会在 localhost:9092 broker 中创建名为 kylin_streaming_topic 的 Kafka Topic,它也会每秒随机发送 100 条 messages 到 kylin_streaming_topic,然后你可以对kylin_streaming_cube进行构建。</p>
+对于kylin_streaming_cube,需要设置KAFKA_HOME指向你的kafka安装目录:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>export KAFKA_HOME=/path/to/kafka
+</code></pre>
+</div>
+
+<p>然后执行</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>${KYLIN_HOME}/bin/sample-streaming.sh
+</code></pre>
+</div>
+
+<p>该脚本会在 localhost:9092 broker 中创建名为 kylin_streaming_topic 的 Kafka Topic,它也会每秒随机发送 100 条 messages 到 kylin_streaming_topic,然后你可以对kylin_streaming_cube进行构建。</p>
 
 <p>关于sample cube,可以参考<a href="/cn/docs/tutorial/kylin_sample.html">Sample Cube</a>。</p>
 

Modified: kylin/site/docs/gettingstarted/kylin-quickstart.html
URL: http://svn.apache.org/viewvc/kylin/site/docs/gettingstarted/kylin-quickstart.html?rev=1877065&r1=1877064&r2=1877065&view=diff
==============================================================================
--- kylin/site/docs/gettingstarted/kylin-quickstart.html (original)
+++ kylin/site/docs/gettingstarted/kylin-quickstart.html Mon Apr 27 11:24:03 2020
@@ -201,18 +201,20 @@ var _hmt = _hmt || [];
 <p>We have uploaded the user facing Kylin image to the Docker repository. Users do not need to build the image locally; they only need to install Docker to experience Kylin’s one-click installation.</p>
 
 <h4 id="step1">Step1</h4>
-<p>First, execute the following command to pull the image from the Docker repository:<br />
-<code class="highlighter-rouge">
-docker pull apachekylin/apache-kylin-standalone:3.0.1
-</code><br />
-The image here contains the latest version of Kylin: Kylin v3.0.1. This image contains all of the big data components that Kylin depends on, so it takes a long time to pull the image – please be patient. After the pull is successful, it is displayed as follows:</p>
+<p>First, execute the following command to pull the image from the Docker repository:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>docker pull apachekylin/apache-kylin-standalone:3.0.1
+</code></pre>
+</div>
+
+<p>The image here contains the latest version of Kylin: Kylin v3.0.1. This image contains all of the big data components that Kylin depends on, so it takes a long time to pull the image – please be patient. After the pull is successful, it is displayed as follows:</p>
 
 <p><img src="/images/docs/quickstart/pull_docker.png" alt="" /></p>
 
 <h4 id="step2">Step2</h4>
-<p>Execute the following command to start the container:<br />
-<code class="highlighter-rouge">
-docker run -d \
+<p>Execute the following command to start the container:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>docker run -d \
 -m 8G \
 -p 7070:7070 \
 -p 8088:8088 \
@@ -221,8 +223,10 @@ docker run -d \
 -p 8042:8042 \
 -p 16010:16010 \
 apachekylin/apache-kylin-standalone:3.0.1
-</code><br />
-The container will start shortly. Since the specified port in the container has been mapped to the local port, you can directly open the pages of each service in the local browser, such as:<br />
+</code></pre>
+</div>
+
+<p>The container will start shortly. Since the specified port in the container has been mapped to the local port, you can directly open the pages of each service in the local browser, such as:<br />
 - Kylin Page: http://127.0.0.1:7070/kylin/<br />
 - HDFS NameNode Page: http://127.0.0.1:50070<br />
 - Yarn ResourceManager Page: http://127.0.0.1:8088<br />
@@ -272,30 +276,36 @@ The container will start shortly. Since
 <p>When your environment meets the above prerequisites, you can install and start using Kylin.</p>
 
 <h4 id="step1-download-the-kylin-archive">Step1. Download the Kylin Archive</h4>
-<p>Download a binary for your version of Hadoop from <a href="https://kylin.apache.org/download/">Apache Kylin Download Site</a>. Currently, the latest versions are Kylin 3.0.1 and Kylin 2.6.5, of which, version 3.0 supports the function of ingesting data in real time for pre-calculation. If your Hadoop environment is CDH 5.7, you can download Kylin 3.0.0 using the following command line:<br />
-<code class="highlighter-rouge">
-cd /usr/local/
+<p>Download a binary for your version of Hadoop from <a href="https://kylin.apache.org/download/">Apache Kylin Download Site</a>. Currently, the latest versions are Kylin 3.0.1 and Kylin 2.6.5, of which, version 3.0 supports the function of ingesting data in real time for pre-calculation. If your Hadoop environment is CDH 5.7, you can download Kylin 3.0.0 using the following command line:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>cd /usr/local/
 wget http://apache.website-solution.net/kylin/apache-kylin-3.0.0/apache-kylin-3.0.0-bin-cdh57.tar.gz
-</code></p>
+</code></pre>
+</div>
 
 <h4 id="step2-extract-kylin">Step2. Extract Kylin</h4>
-<p>Extract the downloaded Kylin archive and configure the environment variable KYLIN_HOME to point to the extracted directory:<br />
-<code class="highlighter-rouge">
-tar -zxvf  apache-kylin-3.0.0-bin-cdh57.tar.gz
+<p>Extract the downloaded Kylin archive and configure the environment variable KYLIN_HOME to point to the extracted directory:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>tar -zxvf  apache-kylin-3.0.0-bin-cdh57.tar.gz
 cd apache-kylin-3.0.0-bin-cdh57
 export KYLIN_HOME=`pwd`
-</code></p>
+</code></pre>
+</div>
 
 <h4 id="step3-download-spark">Step3. Download Spark</h4>
-<p>Since Kylin checks the Spark environment when it starts, you need to set SPARK_HOME:<br />
-<code class="highlighter-rouge">
-export SPARK_HOME=/path/to/spark
-</code><br />
-If you don’t have a Spark environment already downloaded, you can also download Spark using Kylin’s own script:<br />
-<code class="highlighter-rouge">
-$KYLIN_HOME/bin/download-spark.sh
-</code><br />
-The script will place the decompressed Spark in the $ KYLIN_HOME directory. If SPARK_HOME is not set in the system, the Spark in the $ KYLIN_HOME directory will be found automatically when Kylin is started.</p>
+<p>Since Kylin checks the Spark environment when it starts, you need to set SPARK_HOME:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>export SPARK_HOME=/path/to/spark
+</code></pre>
+</div>
+
+<p>If you don’t have a Spark environment already downloaded, you can also download Spark using Kylin’s own script:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>$KYLIN_HOME/bin/download-spark.sh
+</code></pre>
+</div>
+
+<p>The script will place the decompressed Spark in the $ KYLIN_HOME directory. If SPARK_HOME is not set in the system, the Spark in the $ KYLIN_HOME directory will be found automatically when Kylin is started.</p>
 
 <h4 id="step4-environmental-inspection">Step4. Environmental Inspection</h4>
 <p>Kylin runs on a Hadoop cluster and has certain requirements for the version, access permissions and CLASSPATH of each component. <br />
@@ -303,28 +313,34 @@ To avoid encountering various environmen
 The script will print out detailed error messages if any errors are identified. If there is no error message, your environment is suitable for Kylin operation.</p>
 
 <h4 id="step5-start-kylin">Step5. Start Kylin</h4>
-<p>Run <br />
-<code class="highlighter-rouge">
-$KYLIN_HOME/bin/kylin.sh
-</code><br />
-Start script to start Kylin. If the startup is successful, the following will be output at the end of the command line:<br />
-<code class="highlighter-rouge">
-A new Kylin instance is started by root. To stop it, run 'kylin.sh stop'
+<p>Run</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>$KYLIN_HOME/bin/kylin.sh
+</code></pre>
+</div>
+
+<p>Start script to start Kylin. If the startup is successful, the following will be output at the end of the command line:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>A new Kylin instance is started by root. To stop it, run 'kylin.sh stop'
 Check the log at /usr/local/apache-kylin-3.0.0-bin-cdh57/logs/kylin.log
 Web UI is at http://&lt;hostname&gt;:7070/kylin
-</code><br />
-The default port started by Kylin is 7070. You can use $ KYLIN_HOME/bin/kylin-port-replace-util.sh set number to modify the port. The modified port is 7070 + number.</p>
+</code></pre>
+</div>
+
+<p>The default port started by Kylin is 7070. You can use $ KYLIN_HOME/bin/kylin-port-replace-util.sh set number to modify the port. The modified port is 7070 + number.</p>
 
 <h4 id="step6-visit-kylin">Step6. Visit Kylin</h4>
 <p>After Kylin starts, you can access it through your browser: http://<hostname>:port/kylin – where <hostname> is the specific machine name, IP address or domain name, port is the Kylin port and the default is 7070. 
 The initial username and password are ADMIN/KYLIN. After the server starts, you can get the runtime log by looking at $ KYLIN_HOME/logs/kylin.log.</hostname></hostname></p>
 
 <h4 id="step7-create-sample-cube">Step7. Create Sample Cube</h4>
-<p>Kylin provides a script to create a sample cube for users to quickly experience Kylin. Run from the command line:<br />
-<code class="highlighter-rouge">
-$KYLIN_HOME/bin/sample.sh
-</code><br />
-After completing, log in to Kylin, click System -&gt; Configuration -&gt; Reload Metadata to reload the metadata.</p>
+<p>Kylin provides a script to create a sample cube for users to quickly experience Kylin. Run from the command line:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>$KYLIN_HOME/bin/sample.sh
+</code></pre>
+</div>
+
+<p>After completing, log in to Kylin, click System -&gt; Configuration -&gt; Reload Metadata to reload the metadata.</p>
 
 <p>After the metadata is reloaded, you can see a project named learn_kylin in Project in the upper left corner. <br />
 This contains kylin_sales_cube and kylin_streaming_cube, which are a batch cube and a streaming cube, respectively. <br />

Modified: kylin/site/feed.xml
URL: http://svn.apache.org/viewvc/kylin/site/feed.xml?rev=1877065&r1=1877064&r2=1877065&view=diff
==============================================================================
--- kylin/site/feed.xml (original)
+++ kylin/site/feed.xml Mon Apr 27 11:24:03 2020
@@ -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, 23 Apr 2020 06:59:14 -0700</pubDate>
-    <lastBuildDate>Thu, 23 Apr 2020 06:59:14 -0700</lastBuildDate>
+    <pubDate>Mon, 27 Apr 2020 04:09:54 -0700</pubDate>
+    <lastBuildDate>Mon, 27 Apr 2020 04:09:54 -0700</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>