You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Fabian Höring (Jira)" <ji...@apache.org> on 2019/12/05 12:42:01 UTC

[jira] [Comment Edited] (ARROW-7309) [Python] Support HDFS federation viewfs://

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

Fabian Höring edited comment on ARROW-7309 at 12/5/19 12:41 PM:
----------------------------------------------------------------

[~apitrou] [~kszucs]
I played a bit with the new Fs interface on the c++ hdfs filesystem and by directly using this in Python (ARROW-7311)
Indeed getting it with FileSystemFromUri seems easy. 

However the API completely changed in https://github.com/apache/arrow/blob/master/python/pyarrow/_fs.pyx#L172 

How are you going to map this to the existing documented interface ?
https://arrow.apache.org/docs/python/filesystems.html

There seems to be something missing.

I'm not convinced that fs.get_target_stats(Selector("/user/f.horing/*") is easier than the existing fs.ls("/user/f.horing/*")



was (Author: fhoering):
[~apitrou] [~kszucs]
I played a bit with the new Fs interface on the c++ hdfs filesystem and by directly using this in Python (ARROW-7311)
Indeed getting it with FileSystemFromUri seems easy. 

However the API completely changed in https://github.com/apache/arrow/blob/master/python/pyarrow/_fs.pyx#L172 

How are you going to map this to the existing documented interface ?
https://arrow.apache.org/docs/python/filesystems.html

There seems to be something missing.

I'm not convinced that `fs.get_target_stats(Selector("/user/f.horing/*")` is easier than the existing `fs.ls("/user/f.horing/*")`


> [Python] Support HDFS federation viewfs://
> ------------------------------------------
>
>                 Key: ARROW-7309
>                 URL: https://issues.apache.org/jira/browse/ARROW-7309
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>    Affects Versions: 0.15.1
>            Reporter: Fabian Höring
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> - Add viewfs support to pyarrow.filesystem.resolve_filesystem_and_path
> -  libhdfs already supports injecting the scheme and will automatically resolve federation in
>     fs = FileSystem#get(URI, conf, ugi)
> -  works with Hadoop 2/3
> see:
> https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c#L770
> https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c#L637



--
This message was sent by Atlassian Jira
(v8.3.4#803005)