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/04/22 14:01:46 UTC

svn commit: r1829785 - in /kylin/site: docs23/howto/howto_setup_systemcube.html feed.xml

Author: lidong
Date: Sun Apr 22 14:01:46 2018
New Revision: 1829785

URL: http://svn.apache.org/viewvc?rev=1829785&view=rev
Log:
fix layout in system cube tutorial

Modified:
    kylin/site/docs23/howto/howto_setup_systemcube.html
    kylin/site/feed.xml

Modified: kylin/site/docs23/howto/howto_setup_systemcube.html
URL: http://svn.apache.org/viewvc/kylin/site/docs23/howto/howto_setup_systemcube.html?rev=1829785&r1=1829784&r2=1829785&view=diff
==============================================================================
--- kylin/site/docs23/howto/howto_setup_systemcube.html (original)
+++ kylin/site/docs23/howto/howto_setup_systemcube.html Sun Apr 22 14:01:46 2018
@@ -4299,48 +4299,48 @@
     <p>Create a shell script that builds the system cube by calling org.apache.kylin.tool.job.CubeBuildingCLI</p>
 
     <p>For example:</p>
+  </li>
+</ol>
 
-    <p>```<br />
- #!/bin/bash</p>
+<div class="highlight"><pre><code class="language-groff" data-lang="groff">#!/bin/bash
 
-    <p>dir=$(dirname ${0})<br />
- export KYLIN_HOME=${dir}/../</p>
+dir=$(dirname ${0})
+export KYLIN_HOME=${dir}/../
 
-    <p>CUBE=$1<br />
- INTERVAL=$2<br />
- DELAY=$3<br />
- CURRENT_TIME_IN_SECOND=<code class="highlighter-rouge">date +%s</code><br />
- CURRENT_TIME=$((CURRENT_TIME_IN_SECOND * 1000))<br />
- END_TIME=$((CURRENT_TIME-DELAY))<br />
- END=$((END_TIME - END_TIME%INTERVAL))</p>
-
-    <p>ID=”$END”<br />
- echo “building for ${CUBE}<em>${ID}” » ${KYLIN_HOME}/logs/build_trace.log<br />
- sh ${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.tool.job.CubeBuildingCLI –cube ${CUBE} –endTime ${END} &gt; ${KYLIN_HOME}/logs/system_cube</em>${CUBE}_${END}.log 2&gt;&amp;1 &amp;<br />
- ```</p>
-  </li>
+CUBE=$1
+INTERVAL=$2
+DELAY=$3
+CURRENT_TIME_IN_SECOND=`date +%s`
+CURRENT_TIME=$((CURRENT_TIME_IN_SECOND * 1000))
+END_TIME=$((CURRENT_TIME-DELAY))
+END=$((END_TIME - END_TIME%INTERVAL))
+
+ID="$END"
+echo "building for ${CUBE}_${ID}" &gt;&gt; ${KYLIN_HOME}/logs/build_trace.log
+sh ${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.tool.job.CubeBuildingCLI --cube ${CUBE} --endTime ${END} &gt; ${KYLIN_HOME}/logs/system_cube_${CUBE}_${END}.log 2&gt;&amp;1 &amp;</code></pre></div>
+
+<ol>
   <li>
     <p>Then run this shell script regularly</p>
 
     <p>For example, add a cron job as follows:</p>
+  </li>
+</ol>
 
-    <p>```<br />
- 0 */2 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_QUERY_DEV 3600000 1200000</p>
+<div class="highlight"><pre><code class="language-groff" data-lang="groff">0 */2 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_QUERY_DEV 3600000 1200000
 
-    <p>20 */2 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_QUERY_CUBE_DEV 3600000 1200000</p>
+20 */2 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_QUERY_CUBE_DEV 3600000 1200000
 
-    <p>40 */4 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_QUERY_RPC_DEV 3600000 1200000</p>
+40 */4 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_QUERY_RPC_DEV 3600000 1200000
 
-    <p>30 */4 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_JOB_DEV 3600000 1200000</p>
+30 */4 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_JOB_DEV 3600000 1200000
 
-    <p>50 */12 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_JOB_EXCEPTION_DEV 3600000 12000<br />
- ```</p>
-  </li>
-</ol>
+50 */12 * * * sh ${KYLIN_HOME}/bin/system_cube_build.sh KYLIN_HIVE_METRICS_JOB_EXCEPTION_DEV 3600000 12000</code></pre></div>
 
 <h2 id="details-of-system-cube">Details of System Cube</h2>
-<p>### Common Dimension<br />
-For all of these cube, admins can query at four time granularities. From higher level to lower, it’s as follows:</p>
+
+<h3 id="common-dimension">Common Dimension</h3>
+<p>For all of these cube, admins can query at four time granularities. From higher level to lower, it’s as follows:</p>
 
 <table>
   <tr>

Modified: kylin/site/feed.xml
URL: http://svn.apache.org/viewvc/kylin/site/feed.xml?rev=1829785&r1=1829784&r2=1829785&view=diff
==============================================================================
--- kylin/site/feed.xml (original)
+++ kylin/site/feed.xml Sun Apr 22 14:01:46 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>Tue, 17 Apr 2018 00:00:40 -0700</pubDate>
-    <lastBuildDate>Tue, 17 Apr 2018 00:00:40 -0700</lastBuildDate>
+    <pubDate>Sun, 22 Apr 2018 06:59:09 -0700</pubDate>
+    <lastBuildDate>Sun, 22 Apr 2018 06:59:09 -0700</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>