Jibing-Li opened a new pull request, #11002:
URL: https://github.com/apache/doris/pull/11002

   # Proposed changes
   
   Iceberg external table couldn't read files on hdfs with ha mode enabled. 
This pr is to support reading hdfs ha files for Iceberg external tables.
   
   ```
   mysql> CREATE EXTERNAL TABLE test 
       -> ( `id` bigint,    `data` varchar) 
       -> engine=iceberg  
       -> PROPERTIES 
       -> ('iceberg.hive.metastore.uris' = 'thrift://172.21.16.26:7004',  
       -> 'iceberg.database' = 'james_db', 
       -> 'iceberg.table'='james_table',
       -> 'iceberg.catalog.type'='HIVE_CATALOG',  
       -> 'dfs.nameservices'='HDFS8000463',  
       -> 'dfs.ha.namenodes.HDFS8000463'='nn2,nn1',  
       -> 'dfs.namenode.rpc-address.HDFS8000463.nn2'='172.21.16.5:4007',  
       -> 'dfs.namenode.rpc-address.HDFS8000463.nn1'='172.21.16.26:4007', 
       -> 
'dfs.client.failover.proxy.provider.HDFS8000463'='org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider');
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> select * from test;                                                   
                                                                                
                     +------+------+
   | id   | data |
   +------+------+
   |    1 | a    |
   |    2 | b    |
   |    3 | c    |
   +------+------+
   3 rows in set (0.12 sec)
   ```
   
   ## Problem Summary:
   
   ```
   mysql> CREATE EXTERNAL TABLE test 
       -> ( `id` bigint,    `data` varchar) 
       -> engine=iceberg  
       -> PROPERTIES 
       -> ('iceberg.hive.metastore.uris' = 'thrift://172.21.16.26:7004',  
       -> 'iceberg.database' = 'james_db', 
       -> 'iceberg.table'='james_table',
       -> 'iceberg.catalog.type'='HIVE_CATALOG');
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> select * from test;
   ERROR 1105 (HY000): errCode = 2, detailMessage = connect to hdfs failed. 
namenode address:hdfs://HDFS8000463, error: InvalidParameter: Cannot parse URI: 
hdfs://HDFS8000463, missing port or invalid HA configuration        Caused by: 
HdfsConfigNotFound: Config key: dfs.ha.namenodes.HDFS8000463 not found
   ```
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (Yes/No/I Don't know)
   2. Has unit tests been added: (Yes/No/No Need)
   3. Has document been added or modified: (Yes/No/No Need)
   4. Does it need to update dependencies: (Yes/No)
   5. Are there any changes that cannot be rolled back: (Yes/No)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to