xicm opened a new pull request, #5464:
URL: https://github.com/apache/hudi/pull/5464
## What is the purpose of the pull request
Add configurations in HoodieHBaseIndexConfig.java to support kerberos hbase
connection.
## Brief change log
Add configureations, getters and setters in
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieHBaseIndexConfig.java,hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieWriteConfig.java
Modify HbaseConnection in
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/hbase/SparkHoodieHBaseIndex.java
## Verify this pull request
I tested in my local cluster, spark 3.1.1, scala 2.12.10.
```
df.write.format("org.apache.hudi").
options(getQuickstartWriteConfigs).
option(PRECOMBINE_FIELD.key, "ts").
option(RECORDKEY_FIELD.key, "uuid").
option(PARTITIONPATH_FIELD.key, "partitionpath").
option(TBL_NAME.key, tableName).
option(INDEX_TYPE.key, "HBASE").
option(ZKQUORUM.key, zk_quorum).
option(ZKPORT.key, "2181").
option(ZK_NODE_PATH.key, zk_node_path).
option(SECURITY_AUTHENTICATION.key(), "kerberos").
option(KERBEROS_USER_KEYTAB.key(), keytab). // "keytab" is the name of
keytab file, it shoud be add with --files
option(KERBEROS_USER_PRINCIPAL.key(), principal).
option(REGIONSERVER_PRINCIPAL.key(), server_principal).
option(MASTER_PRINCIPAL.key(), master_principal).
option(TABLENAME.key(), tableName).
option(EMBEDDED_TIMELINE_SERVER_ENABLE.key, false).
mode(Overwrite).
save(tablePath)
```
Problems you may encounter during testing
1. NullPointException about hbase index configureations, see
https://github.com/apache/hudi/pull/5308
2. some ClassNotFoundExceptions I described at
https://issues.apache.org/jira/browse/HUDI-3983
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]