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/12/07 14:10:36 UTC

svn commit: r1884181 - in /kylin/site: cn/docs/install/index.html cn/docs/tutorial/cube_migration.html docs/install/index.html docs/tutorial/cube_migration.html feed.xml

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.&lt;init&gt;(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://&lt;hostname&gt;: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://&lt;hostname&gt;: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.&lt;init&gt;(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://&lt;hostname&gt;: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>