This is an automated email from the ASF dual-hosted git repository.

bli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new c14d843  [hotfix][doc] fix catalog registration example
c14d843 is described below

commit c14d8435e72fce95e964ba01f2bacd03b2508825
Author: bowen.li <bowenl...@gmail.com>
AuthorDate: Wed Aug 28 20:37:37 2019 -0700

    [hotfix][doc] fix catalog registration example
---
 docs/dev/table/hive/index.md    | 4 ++--
 docs/dev/table/hive/index.zh.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/dev/table/hive/index.md b/docs/dev/table/hive/index.md
index 53826ea..0d5ab31 100644
--- a/docs/dev/table/hive/index.md
+++ b/docs/dev/table/hive/index.md
@@ -155,7 +155,7 @@ String hiveConfDir     = "/opt/hive-conf";
 String version         = "2.3.4"; // or 1.2.1
 
 HiveCatalog hive = new HiveCatalog(name, defaultDatabase, hiveConfDir, 
version);
-tableEnv.registerCatalog(hive);
+tableEnv.registerCatalog("myhive", hive);
 {% endhighlight %}
 </div>
 <div data-lang="Scala" markdown="1">
@@ -167,7 +167,7 @@ val hiveConfDir     = "/opt/hive-conf"
 val version         = "2.3.4" // or 1.2.1
 
 val hive = new HiveCatalog(name, defaultDatabase, hiveConfDir, version)
-tableEnv.registerCatalog(hive)
+tableEnv.registerCatalog("myhive", hive)
 {% endhighlight %}
 </div>
 <div data-lang="YAML" markdown="1">
diff --git a/docs/dev/table/hive/index.zh.md b/docs/dev/table/hive/index.zh.md
index 031d15c..6b2f7e4 100644
--- a/docs/dev/table/hive/index.zh.md
+++ b/docs/dev/table/hive/index.zh.md
@@ -155,7 +155,7 @@ String hiveConfDir     = "/opt/hive-conf";
 String version         = "2.3.4"; // or 1.2.1
 
 HiveCatalog hive = new HiveCatalog(name, defaultDatabase, hiveConfDir, 
version);
-tableEnv.registerCatalog(hive);
+tableEnv.registerCatalog("myhive", hive);
 {% endhighlight %}
 </div>
 <div data-lang="Scala" markdown="1">
@@ -167,7 +167,7 @@ val hiveConfDir     = "/opt/hive-conf"
 val version         = "2.3.4" // or 1.2.1
 
 val hive = new HiveCatalog(name, defaultDatabase, hiveConfDir, version)
-tableEnv.registerCatalog(hive)
+tableEnv.registerCatalog("myhive", hive)
 {% endhighlight %}
 </div>
 <div data-lang="YAML" markdown="1">

Reply via email to