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 c0502ab  [docs] Broken links in Hive documentation
c0502ab is described below

commit c0502ab261c558249de43808ba262fbd4fddc517
Author: Seth Wiesman <sjwies...@gmail.com>
AuthorDate: Tue Aug 13 19:04:44 2019 -0400

    [docs] Broken links in Hive documentation
    
    This closes #9435.
---
 docs/dev/table/hive/index.md    |  2 +-
 docs/dev/table/hive/index.zh.md |  2 +-
 docs/dev/table/sqlClient.md     |  2 +-
 docs/dev/table/sqlClient.zh.md  | 28 ++++++++++++++++++++++++++++
 4 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/docs/dev/table/hive/index.md b/docs/dev/table/hive/index.md
index ebafb1a..89511f3 100644
--- a/docs/dev/table/hive/index.md
+++ b/docs/dev/table/hive/index.md
@@ -130,7 +130,7 @@ To integrate with Hive users need the following 
dependencies in their project.
 
 ## Connecting To Hive
 
-Connect to an existing Hive installation using the Hive [Catalog]({{ 
site.baseurl }}/dev/table/catalog.html) through the table environment or YAML 
configuration.
+Connect to an existing Hive installation using the Hive [Catalog]({{ 
site.baseurl }}/dev/table/catalogs.html) through the table environment or YAML 
configuration.
 
 <div class="codetabs" markdown="1">
 <div data-lang="Java" markdown="1">
diff --git a/docs/dev/table/hive/index.zh.md b/docs/dev/table/hive/index.zh.md
index 0433a9b..ab86482 100644
--- a/docs/dev/table/hive/index.zh.md
+++ b/docs/dev/table/hive/index.zh.md
@@ -130,7 +130,7 @@ To integrate with Hive users need the following 
dependencies in their project.
 
 ## Connecting To Hive
 
-Connect to an existing Hive installation using the Hive [Catalog]({{ 
site.baseurl }}/dev/table/catalog.html) through the table environment or YAML 
configuration.
+Connect to an existing Hive installation using the Hive [Catalog]({{ 
site.baseurl }}/dev/table/catalogs.html) through the table environment or YAML 
configuration.
 
 <div class="codetabs" markdown="1">
 <div data-lang="Java" markdown="1">
diff --git a/docs/dev/table/sqlClient.md b/docs/dev/table/sqlClient.md
index 059cd94..24c63cb 100644
--- a/docs/dev/table/sqlClient.md
+++ b/docs/dev/table/sqlClient.md
@@ -464,7 +464,7 @@ execution:
    current-database: mydb1
 {% endhighlight %}
 
-For more information about catalog, see [Catalogs]({{ site.baseurl 
}}/dev/table/catalog.html).
+For more information about catalogs, see [Catalogs]({{ site.baseurl 
}}/dev/table/catalogs.html).
 
 Detached SQL Queries
 --------------------
diff --git a/docs/dev/table/sqlClient.zh.md b/docs/dev/table/sqlClient.zh.md
index b1d8f4c..d5bd97b 100644
--- a/docs/dev/table/sqlClient.zh.md
+++ b/docs/dev/table/sqlClient.zh.md
@@ -410,6 +410,34 @@ This process can be recursively performed until all the 
constructor parameters a
 
 {% top %}
 
+Catalogs
+--------
+
+Catalogs can be defined as a set of YAML properties and are automatically 
registered to the environment upon starting SQL Client.
+
+Users can specify which catalog they want to use as the current catalog in SQL 
CLI, and which database of the catalog they want to use as the current database.
+
+{% highlight yaml %}
+catalogs:
+   - name: catalog_1
+     type: hive
+     property-version: 1
+     default-database: mydb2
+     hive-version: 1.2.1
+     hive-conf-dir: <path of Hive conf directory>
+   - name: catalog_2
+     type: hive
+     property-version: 1
+     hive-conf-dir: <path of Hive conf directory>
+
+execution:
+   ...
+   current-catalog: catalog_1
+   current-database: mydb1
+{% endhighlight %}
+
+For more information about catalogs, see [Catalogs]({{ site.baseurl 
}}/dev/table/catalogs.html).
+
 Detached SQL Queries
 --------------------
 

Reply via email to