samredai commented on issue #4410:
URL: https://github.com/apache/iceberg/issues/4410#issuecomment-1079784280


   I believe this is caused by the HadoopFileIO [no-arg 
constructor](https://github.com/apache/iceberg/blob/01393a06c284175edab75de34f48b2bfbd606081/core/src/main/java/org/apache/iceberg/hadoop/HadoopFileIO.java#L42)
 not setting an empty conf. Using the `HadoopFileIO` directly you can use 
`setConf` to add an empty configuration (when reading local files) and the NPE 
goes away. Should the no-arg constructor do the same?
   
   ```java
     public HadoopFileIO() {
       Configuration conf = new Configuration();
       this.hadoopConf = new SerializableConfiguration(conf)::get;
     }
   ```
   
   Otherwise, is there some other way to set an empty conf before `JdbcCatalog` 
uses it?


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



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

Reply via email to