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

danny0405 pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 1840b59  [minor][doc] Fix the hive sync template for flink (#4579)
1840b59 is described below

commit 1840b599f87ebb7379d30342f985f1f81f337a7d
Author: Danny Chan <yuzhao....@gmail.com>
AuthorDate: Thu Jan 13 19:25:09 2022 +0800

    [minor][doc] Fix the hive sync template for flink (#4579)
---
 website/docs/syncing_metastore.md                        | 16 ++++++++--------
 .../versioned_docs/version-0.10.0/syncing_metastore.md   | 16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/website/docs/syncing_metastore.md 
b/website/docs/syncing_metastore.md
index dad767b..ef7aa6a 100644
--- a/website/docs/syncing_metastore.md
+++ b/website/docs/syncing_metastore.md
@@ -82,9 +82,9 @@ PARTITIONED BY (`partition`)
 WITH (
   'connector' = 'hudi',
   'path' = '${db_path}/t1',
-  'table.type' = 'COPY_ON_WRITE',  --If MERGE_ON_READ, hive query will not 
have output until the parquet file is generated
+  'table.type' = 'COPY_ON_WRITE',  -- If MERGE_ON_READ, hive query will not 
have output until the parquet file is generated
   'hive_sync.enable' = 'true',     -- Required. To enable hive synchronization
-  'hive_sync.mode' = 'hms'         -- Required. Setting hive sync mode to hms, 
default jdbc
+  'hive_sync.mode' = 'hms',        -- Required. Setting hive sync mode to hms, 
default jdbc
   'hive_sync.metastore.uris' = 'thrift://${ip}:9083' -- Required. The port 
need set on hive-site.xml
 );
 
@@ -103,13 +103,13 @@ WITH (
   'path' = '${db_path}/t1',
   'table.type' = 'COPY_ON_WRITE',  --If MERGE_ON_READ, hive query will not 
have output until the parquet file is generated
   'hive_sync.enable' = 'true',     -- Required. To enable hive synchronization
-  'hive_sync.mode' = 'hms'         -- Required. Setting hive sync mode to hms, 
default jdbc
-  'hive_sync.metastore.uris' = 'thrift://${ip}:9083'  -- Required. The port 
need set on hive-site.xml
+  'hive_sync.mode' = 'jdbc',       -- Required. Setting hive sync mode to hms, 
default jdbc
+  'hive_sync.metastore.uris' = 'thrift://${ip}:9083', -- Required. The port 
need set on hive-site.xml
   'hive_sync.jdbc_url'='jdbc:hive2://${ip}:10000',    -- required, hiveServer 
port
-  'hive_sync.table'='t1',                          -- required, hive table name
-  'hive_sync.db'='testDB',                         -- required, hive database 
name
-  'hive_sync.username'='${user_name}',                     -- required, HMS 
username
-  'hive_sync.password'='${password}'             -- required, HMS password
+  'hive_sync.table'='${table_name}',                  -- required, hive table 
name
+  'hive_sync.db'='${db_name}',                        -- required, hive 
database name
+  'hive_sync.username'='${user_name}',                -- required, JDBC 
username
+  'hive_sync.password'='${password}'                  -- required, JDBC 
password
 );
 ```
 
diff --git a/website/versioned_docs/version-0.10.0/syncing_metastore.md 
b/website/versioned_docs/version-0.10.0/syncing_metastore.md
index dad767b..3c28ee2 100644
--- a/website/versioned_docs/version-0.10.0/syncing_metastore.md
+++ b/website/versioned_docs/version-0.10.0/syncing_metastore.md
@@ -84,7 +84,7 @@ WITH (
   'path' = '${db_path}/t1',
   'table.type' = 'COPY_ON_WRITE',  --If MERGE_ON_READ, hive query will not 
have output until the parquet file is generated
   'hive_sync.enable' = 'true',     -- Required. To enable hive synchronization
-  'hive_sync.mode' = 'hms'         -- Required. Setting hive sync mode to hms, 
default jdbc
+  'hive_sync.mode' = 'hms',        -- Required. Setting hive sync mode to hms, 
default jdbc
   'hive_sync.metastore.uris' = 'thrift://${ip}:9083' -- Required. The port 
need set on hive-site.xml
 );
 
@@ -101,15 +101,15 @@ PARTITIONED BY (`partition`)
 WITH (
   'connector' = 'hudi',
   'path' = '${db_path}/t1',
-  'table.type' = 'COPY_ON_WRITE',  --If MERGE_ON_READ, hive query will not 
have output until the parquet file is generated
+  'table.type' = 'COPY_ON_WRITE',  -- If MERGE_ON_READ, hive query will not 
have output until the parquet file is generated
   'hive_sync.enable' = 'true',     -- Required. To enable hive synchronization
-  'hive_sync.mode' = 'hms'         -- Required. Setting hive sync mode to hms, 
default jdbc
-  'hive_sync.metastore.uris' = 'thrift://${ip}:9083'  -- Required. The port 
need set on hive-site.xml
+  'hive_sync.mode' = 'jdbc'        -- Required. Setting hive sync mode to hms, 
default jdbc
+  'hive_sync.metastore.uris' = 'thrift://${ip}:9083', -- Required. The port 
need set on hive-site.xml
   'hive_sync.jdbc_url'='jdbc:hive2://${ip}:10000',    -- required, hiveServer 
port
-  'hive_sync.table'='t1',                          -- required, hive table name
-  'hive_sync.db'='testDB',                         -- required, hive database 
name
-  'hive_sync.username'='${user_name}',                     -- required, HMS 
username
-  'hive_sync.password'='${password}'             -- required, HMS password
+  'hive_sync.table'='${table_name}',                  -- required, hive table 
name
+  'hive_sync.db'='${db_name}',                        -- required, hive 
database name
+  'hive_sync.username'='${user_name}',                -- required, JDBC 
username
+  'hive_sync.password'='${password}'                  -- required, JDBC 
password
 );
 ```
 

Reply via email to