Author: lidong
Date: Fri Aug 31 01:53:20 2018
New Revision: 1839718
URL: http://svn.apache.org/viewvc?rev=1839718&view=rev
Log:
Update document for EMR, jobengine HA, etc
Modified:
kylin/site/cn/docs/install/advance_settings.html
kylin/site/cn/docs/install/kylin_aws_emr.html
kylin/site/cn/docs/install/kylin_cluster.html
kylin/site/cn/docs23/install/advance_settings.html
kylin/site/docs/howto/howto_ldap_and_sso.html
kylin/site/docs/install/advance_settings.html
kylin/site/docs/install/kylin_aws_emr.html
kylin/site/docs/install/kylin_cluster.html
kylin/site/docs23/howto/howto_ldap_and_sso.html
kylin/site/docs23/install/advance_settings.html
kylin/site/feed.xml
Modified: kylin/site/cn/docs/install/advance_settings.html
URL:
http://svn.apache.org/viewvc/kylin/site/cn/docs/install/advance_settings.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/cn/docs/install/advance_settings.html (original)
+++ kylin/site/cn/docs/install/advance_settings.html Fri Aug 31 01:53:20 2018
@@ -259,7 +259,7 @@ var _hmt = _hmt || [];
<p>使ç¨å¤ä»»å¡å¼æï¼ä½ å¯ä»¥å¨å¤ä¸ª Kylin èç¹ä¸é
ç½®å®çè§è²ä¸º <code class="highlighter-rouge">job</code> æ <code
class="highlighter-rouge">all</code>ã为äºé¿å
å®ä»¬ä¹é´äº§çç«äºï¼éè¦å¯ç¨åå¸å¼ä»»å¡éï¼è¯·å¨ <code
class="highlighter-rouge">kylin.properties</code> éé
ç½®ï¼</p>
<div class="highlighter-rouge"><pre
class="highlight"><code>kylin.job.scheduler.default=2
-kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperDistributedJobLock
+kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperJobLock
</code></pre>
</div>
<p>å¹¶è®°å¾å°ææä»»å¡åæ¥è¯¢èç¹çå°å注åå° <code
class="highlighter-rouge">kylin.server.cluster-servers</code>.</p>
Modified: kylin/site/cn/docs/install/kylin_aws_emr.html
URL:
http://svn.apache.org/viewvc/kylin/site/cn/docs/install/kylin_aws_emr.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/cn/docs/install/kylin_aws_emr.html (original)
+++ kylin/site/cn/docs/install/kylin_aws_emr.html Fri Aug 31 01:53:20 2018
@@ -315,6 +315,22 @@ $KYLIN_HOME/bin/kylin.sh start
<p>Build åä¸ä¸ª Cubeï¼å½ Cube åå¤å¥½åè¿è¡æ¥è¯¢ãæ¨å¯ä»¥æµè§
S3 æ¥çæ°æ®æ¯å¦å®å
¨çæä¹
åäºã</p>
+<h3 id="spark-">Spark é
ç½®</h3>
+
+<p>EMR ç Spark çæ¬å¾å¯è½ä¸ Kylin ç¼è¯ççæ¬ä¸ä¸è´ï¼å
æ¤æ¨é常ä¸è½ç´æ¥ä½¿ç¨ EMR æå
ç Spark ç¨äº Kylin çä»»å¡ã
æ¨éè¦å¨å¯å¨ Kylin ä¹åï¼å° âSPARK_HOMEâ ç¯å¢åé设置æå
Kylin ç Spark åç®å½ (KYLIN_HOME/spark) ãæ¤å¤ï¼ä¸ºäºä» Spark
ä¸è®¿é® S3 æ EMRFS ä¸çæä»¶ï¼æ¨éè¦å° EMR çæ©å±ç±»ä» EMR
çç®å½æ·è´å° Kylin ç Spark ä¸ã</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>export
SPARK_HOME=$KYLIN_HOME/spark
+
+cp /usr/lib/hadoop-lzo/lib/*.jar $KYLIN_HOME/spark/jars/
+cp /usr/share/aws/emr/emrfs/lib/emrfs-hadoop-assembly-*.jar
$KYLIN_HOME/spark/jars/
+cp /usr/lib/hadoop/hadoop-common*-amzn-*.jar $KYLIN_HOME/spark/jars/
+
+$KYLIN_HOME/bin/kylin.sh start
+</code></pre>
+</div>
+
+<p>æ¨ä¹å¯ä»¥åè EMR Spark ç spark-defauts æ¥è®¾ç½® Kylin ç Spark é
ç½®ï¼ä»¥è·å¾æ´å¥½ç对éç¾¤èµæºçéé
ã</p>
+
<h3 id="emr--1">å
³é EMR é群</h3>
<p>å
³é EMR é群åï¼æä»¬å»ºè®®æ¨ä¸º Kylin metadata åå¤ä»½ä¸å°å
¶ä¸ä¼ å° S3ã</p>
Modified: kylin/site/cn/docs/install/kylin_cluster.html
URL:
http://svn.apache.org/viewvc/kylin/site/cn/docs/install/kylin_cluster.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/cn/docs/install/kylin_cluster.html (original)
+++ kylin/site/cn/docs/install/kylin_cluster.html Fri Aug 31 01:53:20 2018
@@ -198,18 +198,31 @@ var _hmt = _hmt || [];
</div>
<ul>
- <li><code class="highlighter-rouge">kylin.server.mode</code><br />
-ç¡®ä¿åªæä¸ä¸ªå®ä¾ç <code
class="highlighter-rouge">kylin.server.mode</code> 设置为 âallâ æ
âjobâ, å
¶ä½çåºè¯¥ä¸º âqueryâ</li>
+ <li><code class="highlighter-rouge">kylin.server.mode</code></li>
</ul>
+<p>é»è®¤æ
åµä¸ï¼åªæä¸ä¸ªå®ä¾ç <code
class="highlighter-rouge">kylin.server.mode</code> 设置为 âallâ æ
âjobâ, å
¶ä½ç为 âqueryâã</p>
+
<div class="highlighter-rouge"><pre
class="highlight"><code>kylin.server.mode=all
</code></pre>
</div>
+<p>ä¹å³é»è®¤æ
åµä¸ï¼åªæä¸ä¸ªèç¹ç¨äºè°åº¦æå»ºä»»å¡çæ§è¡ã妿æ¨éè¦é
ç½®å¤ä¸ªèç¹åæ¶æ§è¡ä»»å¡æå»ºï¼ä»¥æ»¡è¶³é«å¯ç¨åé«å¹¶åçéæ±ï¼è¯·åè
âå¯ç¨å¤ä¸ªä»»å¡å¼æâ çå
容ï¼å¨ <a
href="advance_settings.html">é«çº§è®¾ç½®</a> 页.</p>
+
<h3 id="section">å®è£
è´è½½åè¡¡å¨</h3>
<p>ä¸ºç¡®ä¿ Kylin æå¡å¨çé«å¯ç¨æ§,
æ¨éè¦å¨è¿äºæå¡å¨ä¹åå®è£
è´è½½åè¡¡å¨, 让å
¶å°ä¼ å
¥ç请æ±è·¯ç±è³é群ã客æ·ç«¯åè´è½½åè¡¡å¨é信代æ¿åç¹å®ç
Kylin å®ä¾éä¿¡ãå®è£
è´è½½åè¡¡å¨è¶
åºäºèå´ï¼æ¨å¯ä»¥éæ©å
Nginx, F5 æ cloud LB æå¡è¿æ ·çå®ç°ã</p>
+<h3 id="section-1">读ï¼åå离çåé群é
ç½®</h3>
+
+<p>Kylin å¯ä»¥è¿æ¥ä¸¤ä¸ªé群以è·å¾æ´å¥½çç¨³å®æ§åæ§è½ï¼</p>
+
+<ul>
+ <li>ä¸ä¸ª Hadoop é群ç¨ä½ Cube æå»º;
è¿ä¸ªé群å¯ä»¥æ¯ä¸ä¸ªå¤§çãä¸å
¶å®åºç¨å
±äº«çé群ï¼</li>
+ <li>ä¸ä¸ª HBase é群ç¨ä½ SQL æ¥è¯¢ï¼é常è¿ä¸ªé群æ¯ä¸é¨ä¸º
Kylin é
ç½®çï¼èç¹æ°ä¸ç¨å Hadoop é群é£ä¹å¤ãHBase çé
ç½®å¯ä»¥æ´å é对 Kylin Cube åªè¯»çç¹æ§èè¿è¡ä¼åã</li>
+</ul>
+
+<p>è¿ç§é¨ç½²çç¥å·²ç»è¢«å¾å¤å¤§ä¼ä¸æé纳并å¾å°éªè¯ã宿¯è¿ä»æä»¬ç¥ééåç产ç¯å¢çæä½³é¨ç½²æ¹æ¡ãå
³äºå¦ä½é
ç½®è¿ç§æ¶æï¼è¯·åè <a
href="/blog/2016/06/10/standalone-hbase-cluster/">Deploy Apache Kylin with
Standalone HBase Cluster</a></p>
</article>
</div>
Modified: kylin/site/cn/docs23/install/advance_settings.html
URL:
http://svn.apache.org/viewvc/kylin/site/cn/docs23/install/advance_settings.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/cn/docs23/install/advance_settings.html (original)
+++ kylin/site/cn/docs23/install/advance_settings.html Fri Aug 31 01:53:20 2018
@@ -259,7 +259,7 @@ var _hmt = _hmt || [];
<p>使ç¨å¤ä»»å¡å¼æï¼ä½ å¯ä»¥å¨å¤ä¸ª Kylin èç¹ä¸é
ç½®å®çè§è²ä¸º <code class="highlighter-rouge">job</code> æ <code
class="highlighter-rouge">all</code>ã为äºé¿å
å®ä»¬ä¹é´äº§çç«äºï¼éè¦å¯ç¨åå¸å¼ä»»å¡éï¼è¯·å¨ <code
class="highlighter-rouge">kylin.properties</code> éé
ç½®ï¼</p>
<div class="highlighter-rouge"><pre
class="highlight"><code>kylin.job.scheduler.default=2
-kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperDistributedJobLock
+kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperJobLock
</code></pre>
</div>
<p>å¹¶è®°å¾å°ææä»»å¡åæ¥è¯¢èç¹çå°å注åå° <code
class="highlighter-rouge">kylin.server.cluster-servers</code>.</p>
Modified: kylin/site/docs/howto/howto_ldap_and_sso.html
URL:
http://svn.apache.org/viewvc/kylin/site/docs/howto/howto_ldap_and_sso.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/docs/howto/howto_ldap_and_sso.html (original)
+++ kylin/site/docs/howto/howto_ldap_and_sso.html Fri Aug 31 01:53:20 2018
@@ -5610,7 +5610,7 @@ var _hmt = _hmt || [];
<p>Firstly, provide LDAP URL, and username/password if the LDAP server is
secured; The password in kylin.properties need be encrypted; You can run the
following command to get the encrypted value:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>cd
$KYLIN_HOME/tomcat/webapps/kylin/WEB-INF/lib
-java -classpath
kylin-server-base-\<versioin\>.jar:spring-beans-3.2.17.RELEASE.jar:spring-core-3.2.17.RELEASE.jar:commons-codec-1.7.jar
org.apache.kylin.rest.security.PasswordPlaceholderConfigurer AES
<your_password>
+java -classpath
kylin-server-base-\<versioin\>.jar:kylin-core-common-\<versioin\>.jar:spring-beans-4.3.10.RELEASE.jar:spring-core-4.3.10.RELEASE.jar:commons-codec-1.7.jar
org.apache.kylin.rest.security.PasswordPlaceholderConfigurer AES
<your_password>
</code></pre>
</div>
Modified: kylin/site/docs/install/advance_settings.html
URL:
http://svn.apache.org/viewvc/kylin/site/docs/install/advance_settings.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/docs/install/advance_settings.html (original)
+++ kylin/site/docs/install/advance_settings.html Fri Aug 31 01:53:20 2018
@@ -5694,7 +5694,7 @@ The compression settings define in <code
<p>To enable the distributed job scheduler, you need to set or update the
configs in the kylin.properties:</p>
<div class="highlighter-rouge"><pre
class="highlight"><code>kylin.job.scheduler.default=2
-kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperDistributedJobLock
+kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperJobLock
</code></pre>
</div>
<p>Please add all job servers and query servers to the <code
class="highlighter-rouge">kylin.server.cluster-servers</code>.</p>
Modified: kylin/site/docs/install/kylin_aws_emr.html
URL:
http://svn.apache.org/viewvc/kylin/site/docs/install/kylin_aws_emr.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/docs/install/kylin_aws_emr.html (original)
+++ kylin/site/docs/install/kylin_aws_emr.html Fri Aug 31 01:53:20 2018
@@ -5750,6 +5750,22 @@ $KYLIN_HOME/bin/kylin.sh start
<p>Build the sample Cube, and then run queries when the Cube is ready. You can
browse S3 to see whether the data is safely persisted.</p>
+<h3 id="spark-configuration">Spark Configuration</h3>
+
+<p>EMRâs Spark version may be incompatible with Kylin, so you couldnât
directly use EMRâs Spark. You need to set âSPARK_HOMEâ environment
variable to Kylinâs Spark folder (KYLIN_HOME/spark) before start Kylin. To
access files on S3 or EMRFS, we need to copy EMRâs implementation jars to
Spark.</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>export
SPARK_HOME=$KYLIN_HOME/spark
+
+cp /usr/lib/hadoop-lzo/lib/*.jar $KYLIN_HOME/spark/jars/
+cp /usr/share/aws/emr/emrfs/lib/emrfs-hadoop-assembly-*.jar
$KYLIN_HOME/spark/jars/
+cp /usr/lib/hadoop/hadoop-common*-amzn-*.jar $KYLIN_HOME/spark/jars/
+
+$KYLIN_HOME/bin/kylin.sh start
+</code></pre>
+</div>
+
+<p>You can also copy EMRâs spark-defauts configuration to Kylinâs spark
for a better utilization of the cluster resources.</p>
+
<h3 id="shut-down-emr-cluster">Shut down EMR Cluster</h3>
<p>Before you shut down EMR cluster, we suggest you take a backup for Kylin
metadata and upload it to S3.</p>
Modified: kylin/site/docs/install/kylin_cluster.html
URL:
http://svn.apache.org/viewvc/kylin/site/docs/install/kylin_cluster.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/docs/install/kylin_cluster.html (original)
+++ kylin/site/docs/install/kylin_cluster.html Fri Aug 31 01:53:20 2018
@@ -5613,7 +5613,9 @@ var _hmt = _hmt || [];
<li><strong>all</strong> : run both job engine and query engines in this
instance.</li>
</ul>
-<p>Notice that only one instance can run the job engine (âallâ or
âjobâ mode), the others must be âqueryâ mode.</p>
+<p>By default only one instance can run the job engine (âallâ or âjobâ
mode), the others should be in the âqueryâ mode.</p>
+
+<p>If you want to run multiple job engines to get high availability or handle
heavy concurrent jobs, please check âEnable multiple job enginesâ in <a
href="advance_settings.html">Advanced settings</a> page.</p>
<p>A typical scenario is depicted in the following chart:</p>
@@ -5645,6 +5647,16 @@ Make sure there is only one instance who
<p>To enable Kylin service high availability, you need setup a load balancer
in front of these servers, letting it routes the incoming requests to the
cluster. Client side communicates with the load balancer, instead of with a
specific Kylin instance. The setup of load balancer is out of the scope; you
may select an implementation like Nginx, F5 or cloud LB service.</p>
+<h3 id="configure-readwrite-separated-deployment">Configure Read/Write
separated deployment</h3>
+
+<p>Kylin can work with two clusters to gain better stability and
performance:</p>
+
+<ul>
+ <li>A Hadoop cluster for Cube building; This can be a shared, large
cluster.</li>
+ <li>A HBase cluster for SQL queries; Usually this is a dedicated cluster
with less nodes. The HBase configurations can be tuned for better read
performance as Cubes are immutable after built.</li>
+</ul>
+
+<p>This deployment has been adopted and verified by many large companies. It
is the best solution for production deployment as we know. For how to do this,
please refer to <a href="/blog/2016/06/10/standalone-hbase-cluster/">Deploy
Apache Kylin with Standalone HBase Cluster</a></p>
</article>
</div>
Modified: kylin/site/docs23/howto/howto_ldap_and_sso.html
URL:
http://svn.apache.org/viewvc/kylin/site/docs23/howto/howto_ldap_and_sso.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/docs23/howto/howto_ldap_and_sso.html (original)
+++ kylin/site/docs23/howto/howto_ldap_and_sso.html Fri Aug 31 01:53:20 2018
@@ -5611,7 +5611,7 @@ var _hmt = _hmt || [];
<p>Firstly, provide LDAP URL, and username/password if the LDAP server is
secured; The password in kylin.properties need be encrypted; You can run the
following command to get the encrypted value:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>cd
$KYLIN_HOME/tomcat/webapps/kylin/WEB-INF/lib
-java -classpath
kylin-server-base-\<versioin\>.jar:spring-beans-3.2.17.RELEASE.jar:spring-core-3.2.17.RELEASE.jar:commons-codec-1.7.jar
org.apache.kylin.rest.security.PasswordPlaceholderConfigurer AES
<your_password>
+java -classpath
kylin-server-base-\<versioin\>.jar:kylin-core-common-\<versioin\>.jar:spring-beans-4.3.10.RELEASE.jar:spring-core-4.3.10.RELEASE.jar:commons-codec-1.7.jar
org.apache.kylin.rest.security.PasswordPlaceholderConfigurer AES
<your_password>
</code></pre>
</div>
Modified: kylin/site/docs23/install/advance_settings.html
URL:
http://svn.apache.org/viewvc/kylin/site/docs23/install/advance_settings.html?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/docs23/install/advance_settings.html (original)
+++ kylin/site/docs23/install/advance_settings.html Fri Aug 31 01:53:20 2018
@@ -5695,7 +5695,7 @@ The compression settings define in <code
<p>To enable the distributed job scheduler, you need to set or update the
configs in the kylin.properties:</p>
<div class="highlighter-rouge"><pre
class="highlight"><code>kylin.job.scheduler.default=2
-kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperDistributedJobLock
+kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperJobLock
</code></pre>
</div>
<p>Please add all job servers and query servers to the <code
class="highlighter-rouge">kylin.server.cluster-servers</code>.</p>
Modified: kylin/site/feed.xml
URL:
http://svn.apache.org/viewvc/kylin/site/feed.xml?rev=1839718&r1=1839717&r2=1839718&view=diff
==============================================================================
--- kylin/site/feed.xml (original)
+++ kylin/site/feed.xml Fri Aug 31 01:53:20 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, 23 Aug 2018 06:59:42 -0700</pubDate>
- <lastBuildDate>Thu, 23 Aug 2018 06:59:42 -0700</lastBuildDate>
+ <pubDate>Thu, 30 Aug 2018 18:45:34 -0700</pubDate>
+ <lastBuildDate>Thu, 30 Aug 2018 18:45:34 -0700</lastBuildDate>
<generator>Jekyll v2.5.3</generator>
<item>