[ 
https://issues.apache.org/jira/browse/ARROW-14930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17458257#comment-17458257
 ] 

Antoine Pitrou commented on ARROW-14930:
----------------------------------------

I tried reproducing by creating a single file in an empty bucket using 
{{s3cmd}}:

{code:bash}
$ s3cmd --no-ssl --host=localhost:8000 
--host-bucket="%(bucket)s.localhost:8000" --access_key=accessKey1 
--secret_key=verySecretKey1 put setup.cfg s3://bucket/foo/bar.txt
upload: 'setup.cfg' -> 's3://bucket/foo/bar.txt'  [1 of 1]
 1075 of 1075   100% in    0s   109.75 kB/s  done
{code}

And it still works properly with PyArrow:
{code:python}
>>> f = fs.S3FileSystem(scheme='http', access_key='accessKey1', 
>>> secret_key='verySecretKey1', endpoint_override='localhost:8000')
>>> f.get_file_info(fs.FileSelector('/', recursive=True))
[<FileInfo for 'bucket': type=FileType.Directory>,
 <FileInfo for 'bucket/foo': type=FileType.Directory>,
 <FileInfo for 'bucket/foo/bar.txt': type=FileType.File, size=1075>]
>>> f.get_file_info('bucket')
<FileInfo for 'bucket': type=FileType.Directory>
>>> f.get_file_info('bucket/foo')
<FileInfo for 'bucket/foo': type=FileType.Directory>
>>> f.get_file_info('bucket/foo/bar.txt')
<FileInfo for 'bucket/foo/bar.txt': type=FileType.File, size=1075>
{code}

even though s3cmd itself doesn't see the "directory":
{code:bash}
$ s3cmd --no-ssl --host=localhost:8000 
--host-bucket="%(bucket)s.localhost:8000" --access_key=accessKey1 
--secret_key=verySecretKey1 info s3://bucket/foo
ERROR: S3 error: 404 (Not Found)
{code}


> [C++][Python] FileNotFound with Scality accessed through S3 APIs
> ----------------------------------------------------------------
>
>                 Key: ARROW-14930
>                 URL: https://issues.apache.org/jira/browse/ARROW-14930
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 6.0.1
>         Environment: linux + python 3.8
>            Reporter: Luis Morales
>            Priority: Major
>              Labels: s3
>             Fix For: 6.0.2
>
>
> When using dataset.Dataset with S3FileSystem with compatible S3 object 
> sotrage, get an FileNotFoundError.
>  
> My code:
>  
> scality = fs.S3FileSystem(access_key='accessKey1', 
> secret_key='verySecretKey1', endpoint_override="http://localhost:8000";, 
> region="")
> data = ds.dataset("dasynth/parquet/taxies/2019_june/", format="parquet", 
> partitioning="hive", filesystem=scality)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to