You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "shou123 (via GitHub)" <gi...@apache.org> on 2023/09/26 01:32:17 UTC

[GitHub] [arrow] shou123 opened a new issue, #37866: [Error] failed to scan file fragment for pyarrow.dataset.dataset for parquet file

shou123 opened a new issue, #37866:
URL: https://github.com/apache/arrow/issues/37866

   ### Describe the usage question you have. Please include as many useful details as  possible.
   
   
   I want to use pyarrow.dataset.dataset to open a parquet file and to make it a dataset. The parquet is 395M, it always pops up an error as "failed to scan file fragment", but when I cut the parquet to a smaller file. it is working well. No, error. I assume there is an argument to control the threshold. 
   
   My code 
   ```
       format = ds.SkyhookFileFormat("parquet", "/etc/ceph/ceph.conf")
   
       data = list()
       lineitem = ds.dataset(os.path.join(dataset_path, "lineitem"), format=format)
       print(f"lineitem arrow dataset: {lineitem.to_table().to_pandas()}")
   ```
   
   Error message: 
   ```
   Exception has occurred: ArrowInvalid       (note: full exception trace is shown but execution is paused at: _run_module_as_main)
   failed to scan file fragment
     File "/usr/local/lib/python3.8/dist-packages/pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
       raise ArrowInvalid(message)
     File "/usr/local/lib/python3.8/dist-packages/pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
       return check_status(status)
     File "/usr/local/lib/python3.8/dist-packages/pyarrow/_dataset.pyx", line 3070, in pyarrow._dataset.Scanner.to_table
       return pyarrow_wrap_table(GetResultValue(result))
     File "/usr/local/lib/python3.8/dist-packages/pyarrow/_dataset.pyx", line 466, in pyarrow._dataset.Dataset.to_table
       return self.scanner(**kwargs).to_table()
     File "/home/yue21/project/NDP_test/bench_single.py", line 29, in <module>
       print(f"nation arrow dataset: {lineitem.to_table().to_pandas()}")
     File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
       exec(code, run_globals)
     File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main (Current frame)
   ```
   
   ### Component(s)
   
   Parquet


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

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


Re: [I] [Python][Skyhook][Parquet] failed to scan file fragment for pyarrow.dataset.dataset for parquet file [arrow]

Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic commented on issue #37866:
URL: https://github.com/apache/arrow/issues/37866#issuecomment-3547497047

   This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this usage question has evolved into a feature request or docs update, please remove the 'Type: usage' label and add the 'Type: enhancement' label 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: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow] shou123 commented on issue #37866: [Error] failed to scan file fragment for pyarrow.dataset.dataset for parquet file

Posted by "shou123 (via GitHub)" <gi...@apache.org>.
shou123 commented on issue #37866:
URL: https://github.com/apache/arrow/issues/37866#issuecomment-1735698088

   > @shou123 the error message is specifically coming from the Skyhook layer (reading from ceph file system). Do you know it you can read the same file if you use the direct Parquet reader? (`ds.dataset("path/to/parquet/file", format="parquet")`)
   
   I want to enable the skyhook and utilize the skyhook to read the data. Do you know which skyhook argument controls this threshold?


-- 
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: github-unsubscribe@arrow.apache.org

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


Re: [I] [Python][Skyhook][Parquet] failed to scan file fragment for pyarrow.dataset.dataset for parquet file [arrow]

Posted by "drin (via GitHub)" <gi...@apache.org>.
drin commented on issue #37866:
URL: https://github.com/apache/arrow/issues/37866#issuecomment-2000131637

   @shou123 If this is still an issue I can try and help with it; please let me know!


-- 
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: github-unsubscribe@arrow.apache.org

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


Re: [I] [Python][Skyhook][Parquet] failed to scan file fragment for pyarrow.dataset.dataset for parquet file [arrow]

Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic closed issue #37866: [Python][Skyhook][Parquet] failed to scan file fragment for pyarrow.dataset.dataset for parquet file
URL: https://github.com/apache/arrow/issues/37866


-- 
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: issues-unsubscribe@arrow.apache.org

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


Re: [I] [Python][Skyhook][Parquet] failed to scan file fragment for pyarrow.dataset.dataset for parquet file [arrow]

Posted by "shou123 (via GitHub)" <gi...@apache.org>.
shou123 commented on issue #37866:
URL: https://github.com/apache/arrow/issues/37866#issuecomment-2000230309

   Thank you, I have figured it out. We just need the pyarrow interface for the skyhook. 


-- 
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: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow] jorisvandenbossche commented on issue #37866: [Error] failed to scan file fragment for pyarrow.dataset.dataset for parquet file

Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on issue #37866:
URL: https://github.com/apache/arrow/issues/37866#issuecomment-1734934932

   @shou123 the error message is specifically coming from the Skyhook layer (reading from ceph file system). Do you know it you can read the same file if you use the direct Parquet reader? (`ds.dataset("path/to/parquet/file", format="parquet")`)


-- 
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: github-unsubscribe@arrow.apache.org

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


Re: [I] [Python][Skyhook][Parquet] failed to scan file fragment for pyarrow.dataset.dataset for parquet file [arrow]

Posted by "shou123 (via GitHub)" <gi...@apache.org>.
shou123 commented on issue #37866:
URL: https://github.com/apache/arrow/issues/37866#issuecomment-2000230926

   > @shou123 If this is still an issue I can try and help with it; please let me know!
   
   Thank you, I have figured it out. We just need the pyarrow interface for the skyhook.


-- 
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: github-unsubscribe@arrow.apache.org

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