xiaozhch5 opened a new issue, #5762:
URL: https://github.com/apache/hudi/issues/5762

   **Describe the problem you faced**
   
   In order to sync metadata to hive metastore, I put 
hudi-hadoop-mr-bundle-0.11.0.jar into hive/auxlib, but after that I can't query 
hbase table in hive cli.
   
   The example is list below.
   
   hive_access_hbase_table_t_user_2 is a hive external table, used to query 
hbase table.
   
   
![image](https://user-images.githubusercontent.com/46479816/172132747-ac73b477-5562-4ef2-a138-5e49f35512f3.png)
   
   I query the table in hive cli, the following problem occurs
   
   
![image](https://user-images.githubusercontent.com/46479816/172131934-84cbafb6-d0ee-4312-b284-6e0136da6d71.png)
   
   After that, I change the property of hbase.defaults.for.version in 
hbase-site.xml and hbase-default.xml in hudi-hadoop-mr-bundle-0.11.0.jar, 
another problems arise,
   
   
![image](https://user-images.githubusercontent.com/46479816/172133255-60b56d8f-84f5-4283-b74a-a065637fc48c.png)
   
   
![image](https://user-images.githubusercontent.com/46479816/172133371-a842b7d3-6f8b-406f-a5c3-dbe31c4def52.png)
   
   That's to say, hive read properties list in 
hudi-hadoop-mr-bundle-0.11.0.jar/hbase-site.xml,hbase-default.xml,without 
reading the hbase cluster's config.
   
   In the end, I delete hbase-site.xml and hbase-default.xml in 
hudi-hadoop-mr-bundle-0.11.0.jar, I can seccessful query the hbase table in 
hive cli.
   
   I wonder if I can delete hbase-site.xml and hbase-default.xml in 
hudi-hadoop-mr-bundle-0.11.0.jar so as to run all the function of hive, hbase 
and hudi correctly?
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1. Create hbase table and insert data
   ```sql
   create 'hbase_to_hive_t_user', 'cf_user_info'
   put 'hbase_to_hive_t_user', '1', 'cf_user_info:name','Tom'
   
   put 'hbase_to_hive_t_user', '1', 'cf_user_info:age',24
   
   put 'hbase_to_hive_t_user', '2', 'cf_user_info:name','John'
   
   put 'hbase_to_hive_t_user', '2', 'cf_user_info:age',18
   
   put 'hbase_to_hive_t_user', '3', 'cf_user_info:name','Steven'
   
   put 'hbase_to_hive_t_user', '3', 'cf_user_info:age',38
   ```
   2. create external table in hive
   ```sql
   CREATE EXTERNAL TABLE hive_access_hbase_table_t_user_2 (key string, name 
string, age int,)
   
   STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
   
   WITH SERDEPROPERTIES ("hbase.columns.mapping" = 
":key,cf_user_info:name,cf_user_info:age")
   
   TBLPROPERTIES ("hbase.table.name" = "hbase_to_hive_t_user");
   ```
   3. query hbase table in hive cli
   ```sql
   SELECT * from hive_access_hbase_table_t_user_2;
   ```
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version : 0.11.0
   
   * Spark version : 3.2.1
   
   * Flink version: 1.13.6
   
   * Hive version : 3.1.0.3.1.4.0-315
   
   * Hadoop version : 3.1.1.3.1.4.0-315
   
   * Storage (HDFS/S3/GCS..) : HDFS 
   
   * Running on Docker? (yes/no) : no 
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   ```Add the stacktrace of the error.```
   
   


-- 
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]

Reply via email to