frankliee opened a new pull request, #675:
URL: https://github.com/apache/iceberg-python/pull/675
When I try to test write support for Iceberg table on HDFS, there is an
error.
```
File
"/home/root/anaconda3/lib/python3.8/site-packages/pyiceberg/io/pyarrow.py",
line 244, in exists
self._file_info() # raises FileNotFoundError if it does not exist
File
"/home/root/anaconda3/lib/python3.8/site-packages/pyiceberg/io/pyarrow.py",
line 226, in _file_info
file_info = self._filesystem.get_file_info(self._path)
File "pyarrow/_fs.pyx", line 584, in pyarrow._fs.FileSystem.get_file_info
File "pyarrow/error.pxi", line 154, in
pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: GetFileInfo must not be passed a URI, got:
hdfs://clusterXX/user/my_db/my_table/metadata/xxxxx.metadata.json
```
The root cause is that `file_info =
self._filesystem.get_file_info(self._path)` does not support HDFS path with
schema/ netloc
`(hdfs://clusterXX/user/my_db/my_table/metadata/xxxxx.metadata.json)` .
This PR uses uri.path (`/user/my_db/my_table/metadata/xxxxx.metadata.json`)
instead.
--
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]