You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "王晓宇 (Jira)" <ji...@apache.org> on 2021/09/07 08:00:32 UTC

[jira] [Created] (HUDI-2402) Hive Sync supports Kerberos authentication

王晓宇 created HUDI-2402:
-------------------------

             Summary: Hive Sync supports Kerberos authentication
                 Key: HUDI-2402
                 URL: https://issues.apache.org/jira/browse/HUDI-2402
             Project: Apache Hudi
          Issue Type: Improvement
          Components: Flink Integration, Hive Integration
            Reporter: 王晓宇
             Fix For: 0.9.0


For Hive with Kerberos enabled, THE HMS of HUDI cannot access the Hive metadata
Hive.get(configuration).getMSC()
Methods before
Perform Kerberos authentication on the Flink client
Set the parameters for enabling Kerberos authentication and the configuration parameters for transmitting hive Principal to Hive
I added two parameters
1.hive_sync.use_kerberos
2.hive_sync.kerberos_principal
Use the following method to enable Hive Kerberos access control
CREATE TABLE t2(
Uuid VARCHAR (20),
The name VARCHAR (10),
The age INT,
Ts TIMESTAMP (3),
` partition ` VARCHAR (20)
)
PARTITIONED BY (`partition`)
with(
'connector' = 'hudi',
'hive_sync.enable'='true',
'hive_sync.db'='test',
'hive_sync.table'='t2',
'hive_sync.mode'='hms',
'path' = 'hdfs://ip:8020/warehouse/hudi/t2',
'hive_sync.metastore.uris'='thrift://ip:9083',
'hive_sync.use_kerberos' = 'true',
'hive_sync.kerberos_principal' = 'hive/_HOST@BIGDATA'
)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)