Author: lidong Date: Mon Dec 7 14:10:36 2020 New Revision: 1884181 URL: http://svn.apache.org/viewvc?rev=1884181&view=rev Log: Update cubeMigrationCLI document
Modified: kylin/site/cn/docs/install/index.html kylin/site/cn/docs/tutorial/cube_migration.html kylin/site/docs/install/index.html kylin/site/docs/tutorial/cube_migration.html kylin/site/feed.xml Modified: kylin/site/cn/docs/install/index.html URL: http://svn.apache.org/viewvc/kylin/site/cn/docs/install/index.html?rev=1884181&r1=1884180&r2=1884181&view=diff ============================================================================== --- kylin/site/cn/docs/install/index.html (original) +++ kylin/site/cn/docs/install/index.html Mon Dec 7 14:10:36 2020 @@ -267,6 +267,26 @@ Web UI is at http://<hostname>:707 </code></pre> </div> +<p><strong>注</strong>ï¼å¦æå¨å¯å¨ kylin æ¶éå°å¦ä¸æ¥é(Hadoop3 ç¯å¢ä¸å¯è½åºç°)ï¼</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>Caused by: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V + at org.apache.hadoop.conf.Configuration.set(Configuration.java:1358) + at org.apache.hadoop.conf.Configuration.set(Configuration.java:1339) + at org.apache.kylin.common.util.HadoopUtil.healSickConfig(HadoopUtil.java:77) + at org.apache.kylin.common.util.HadoopUtil.getCurrentConfiguration(HadoopUtil.java:63) + at org.apache.kylin.storage.hbase.HBaseConnection.newHBaseConfiguration(HBaseConnection.java:170) + at org.apache.kylin.storage.hbase.HBaseConnection.get(HBaseConnection.java:259) + at org.apache.kylin.storage.hbase.HBaseResourceStore.getConnection(HBaseResourceStore.java:96) + at org.apache.kylin.storage.hbase.HBaseResourceStore.createHTableIfNeeded(HBaseResourceStore.java:119) + at org.apache.kylin.storage.hbase.HBaseResourceStore.<init>(HBaseResourceStore.java:89) + ... 8 more +</code></pre> +</div> + +<p>å¯ä»¥å°è¯å¦ä¸æ¹æ³è§£å³ï¼</p> + +<p>ä¸è½½<a href="https://repo1.maven.org/maven2/com/google/guava/guava/28.0-jre/guava-28.0-jre.jar">guava-28.0-jre.jar</a>, å°å ¶æ¾å°<code class="highlighter-rouge">$KYLIN_HOME/tool/</code> å <code class="highlighter-rouge">$KYLIN_HOME/tomcat/lib/</code>ç®å½ä¸ï¼ç¶åéå¯kylin <code class="highlighter-rouge">bin/kylin.sh restart</code>ã</p> + <h3 id="kylin-1">ä½¿ç¨ Kylin</h3> <p>Kylin å¯å¨åæ¨å¯ä»¥éè¿æµè§å¨ <code class="highlighter-rouge">http://<hostname>:7070/kylin</code> è¿è¡è®¿é®ã<br /> Modified: kylin/site/cn/docs/tutorial/cube_migration.html URL: http://svn.apache.org/viewvc/kylin/site/cn/docs/tutorial/cube_migration.html?rev=1884181&r1=1884180&r2=1884181&view=diff ============================================================================== --- kylin/site/cn/docs/tutorial/cube_migration.html (original) +++ kylin/site/cn/docs/tutorial/cube_migration.html Mon Dec 7 14:10:36 2020 @@ -283,7 +283,7 @@ var _hmt = _hmt || []; <p>ä¾å¦ï¼</p> -<div class="highlight"><pre><code class="language-groff" data-lang="groff">./bin/kylin.sh org.apache.kylin.tool.CubeMigrationCLI kylin-qa:7070 kylin-prod:7070 kylin_sales_cube learn_kylin true false false true false</code></pre></div> +<div class="highlight"><pre><code class="language-groff" data-lang="groff">./bin/kylin.sh org.apache.kylin.tool.CubeMigrationCLI ADMIN:KYLIN@kylin-qa:7070 ADMIN:KYLIN@kylin-prod:7070 kylin_sales_cube learn_kylin true false false true false</code></pre></div> <p>å½ä»¤æ§è¡æååï¼è¯· reload metadataï¼æ¨æ³è¦è¿ç§»ç cube å°ä¼åå¨äºè¿ç§»åç project ä¸ã</p> @@ -302,7 +302,7 @@ var _hmt = _hmt || []; <tbody> <tr> <td>srcKylinConfigUri</td> - <td style="text-align: left">The URL of the source environmentâs Kylin configuration. It can be <code class="highlighter-rouge">host:7070</code>, or an absolute file path to the <code class="highlighter-rouge">kylin.properties</code>.</td> + <td style="text-align: left">The URL of the source environmentâs Kylin configuration. It can be <code class="highlighter-rouge">username:password@host:7070</code>, or an absolute file path to the <code class="highlighter-rouge">kylin.properties</code>. If you use the URL method, you need to change the ADMIN user name and password to username:password@hostname:port format is placed in the URL, because there is a API needs to be called with admin permission during the migration process.</td> </tr> <tr> <td>dstKylinConfigUri</td> Modified: kylin/site/docs/install/index.html URL: http://svn.apache.org/viewvc/kylin/site/docs/install/index.html?rev=1884181&r1=1884180&r2=1884181&view=diff ============================================================================== --- kylin/site/docs/install/index.html (original) +++ kylin/site/docs/install/index.html Mon Dec 7 14:10:36 2020 @@ -8934,6 +8934,24 @@ Web UI is at http://<hostname>:707 </code></pre> </div> +<p><strong>Note</strong>: If you encounter the following error when starting kylin (possible in Hadoop3 environment)ï¼</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>Caused by: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V + at org.apache.hadoop.conf.Configuration.set(Configuration.java:1358) + at org.apache.hadoop.conf.Configuration.set(Configuration.java:1339) + at org.apache.kylin.common.util.HadoopUtil.healSickConfig(HadoopUtil.java:77) + at org.apache.kylin.common.util.HadoopUtil.getCurrentConfiguration(HadoopUtil.java:63) + at org.apache.kylin.storage.hbase.HBaseConnection.newHBaseConfiguration(HBaseConnection.java:170) + at org.apache.kylin.storage.hbase.HBaseConnection.get(HBaseConnection.java:259) + at org.apache.kylin.storage.hbase.HBaseResourceStore.getConnection(HBaseResourceStore.java:96) + at org.apache.kylin.storage.hbase.HBaseResourceStore.createHTableIfNeeded(HBaseResourceStore.java:119) + at org.apache.kylin.storage.hbase.HBaseResourceStore.<init>(HBaseResourceStore.java:89) + ... 8 more +</code></pre> +</div> + +<p>You can try download <a href="https://repo1.maven.org/maven2/com/google/guava/guava/28.0-jre/guava-28.0-jre.jar">guava-28.0-jre.jar</a>, put it into <code class="highlighter-rouge">$KYLIN_HOME/tool/</code> and <code class="highlighter-rouge">$KYLIN_HOME/tomcat/lib/</code> and restart kylin <code class="highlighter-rouge">bin/kylin.sh restart</code>.</p> + <h3 id="using-kylin">Using Kylin</h3> <p>Once Kylin is launched, you can access it via the browser <code class="highlighter-rouge">http://<hostname>:7070/kylin</code> with<br /> Modified: kylin/site/docs/tutorial/cube_migration.html URL: http://svn.apache.org/viewvc/kylin/site/docs/tutorial/cube_migration.html?rev=1884181&r1=1884180&r2=1884181&view=diff ============================================================================== --- kylin/site/docs/tutorial/cube_migration.html (original) +++ kylin/site/docs/tutorial/cube_migration.html Mon Dec 7 14:10:36 2020 @@ -8950,7 +8950,7 @@ var _hmt = _hmt || []; <p>For example:</p> -<div class="highlight"><pre><code class="language-groff" data-lang="groff">./bin/kylin.sh org.apache.kylin.tool.CubeMigrationCLI kylin-qa:7070 kylin-prod:7070 kylin_sales_cube learn_kylin true false false true false</code></pre></div> +<div class="highlight"><pre><code class="language-groff" data-lang="groff">./bin/kylin.sh org.apache.kylin.tool.CubeMigrationCLI ADMIN:KYLIN@kylin-qa:7070 ADMIN:KYLIN@kylin-prod:7070 kylin_sales_cube learn_kylin true false false true false</code></pre></div> <p>After the command is successfully executed, please reload Kylin metadata, the cube you want to migrate will appear in the target environment.</p> @@ -8972,7 +8972,7 @@ var _hmt = _hmt || []; <tbody> <tr> <td>srcKylinConfigUri</td> - <td style="text-align: left">The URL of the source environmentâs Kylin configuration. It can be <code class="highlighter-rouge">host:7070</code>, or an absolute file path to the <code class="highlighter-rouge">kylin.properties</code>.</td> + <td style="text-align: left">The URL of the source environmentâs Kylin configuration. It can be <code class="highlighter-rouge">username:password@host:port</code>, or an absolute file path to the <code class="highlighter-rouge">kylin.properties</code>. If you use the URL method, you need to change the ADMIN user name and password to username:password@hostname:port format is placed in the URL, because there is a API needs to be called with admin permission during the migration process.</td> </tr> <tr> <td>dstKylinConfigUri</td> Modified: kylin/site/feed.xml URL: http://svn.apache.org/viewvc/kylin/site/feed.xml?rev=1884181&r1=1884180&r2=1884181&view=diff ============================================================================== --- kylin/site/feed.xml (original) +++ kylin/site/feed.xml Mon Dec 7 14:10:36 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>Mon, 30 Nov 2020 05:59:24 -0800</pubDate> - <lastBuildDate>Mon, 30 Nov 2020 05:59:24 -0800</lastBuildDate> + <pubDate>Mon, 07 Dec 2020 05:59:12 -0800</pubDate> + <lastBuildDate>Mon, 07 Dec 2020 05:59:12 -0800</lastBuildDate> <generator>Jekyll v2.5.3</generator> <item>