You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by bl...@apache.org on 2019/08/29 03:41:33 UTC
[flink] branch release-1.9 updated: [hotfix][doc] fix catalog
registration example
This is an automated email from the ASF dual-hosted git repository.
bli pushed a commit to branch release-1.9
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.9 by this push:
new 5335e93 [hotfix][doc] fix catalog registration example
5335e93 is described below
commit 5335e9353bb4bd7c657f6191093bd9c7ff0de3ef
Author: bowen.li <bo...@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">