qphien opened a new issue #1718:
URL: https://github.com/apache/iceberg/issues/1718


   Related to https://github.com/apache/iceberg/pull/1495
   ```
   set iceberg.mr.catalog=hadoop;
   hive (default)> create external table iceberg_table (id int) 
                 > stored by 
'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler' 
                 > location '/hive/default.db/iceberg_table';
   FAILED: Execution Error, return code 1 from 
org.apache.hadoop.hive.ql.exec.DDLTask. Cannot set a custom location for a 
path-based table. Expected 
hdfs://10.242.199.202:9000/iceberg/warehouse/default/iceberg_table but got 
hdfs://10.242.199.202:9000/hive/default.db/iceberg_table
   ```
   
   ```
       // HadoopCatalog.java
   private class HadoopCatalogTableBuilder extends 
BaseMetastoreCatalogTableBuilder {
        ...
       @Override
       public TableBuilder withLocation(String location) {
         Preconditions.checkArgument(location == null || 
location.equals(defaultLocation),
             "Cannot set a custom location for a path-based table. Expected " + 
defaultLocation + " but got " + location);
         return this;
       }
      ...
   }
   ```
   
   HadoopCatalogTableBuilder only support null location


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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to