You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/06/22 12:40:00 UTC

[jira] [Commented] (ARROW-12790) [Python] Cannot read from HDFS with blanks in path names

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

Antoine Pitrou commented on ARROW-12790:
----------------------------------------

Thanks for the report. I will try to look into this.

> [Python] Cannot read from HDFS with blanks in path names
> --------------------------------------------------------
>
>                 Key: ARROW-12790
>                 URL: https://issues.apache.org/jira/browse/ARROW-12790
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 4.0.0
>            Reporter: Armin Müller
>            Priority: Major
>              Labels: filesystem, hdfs
>
> I have a Hadoop FS with blanks in path and filenames.
> Running this
> {{hdfs = fs.HadoopFileSystem('namenode', 8020)}}
> {{files = hdfs.get_file_info(fs.FileSelector("/", recursive=True))}}
> throws a
> {{pyarrow.lib.ArrowInvalid: Cannot parse URI: 'hdfs://namenode:8020/data/Path with Blank'}}
> How can I avoid that?
> Strangely enough, reading a file with
> {{hdfs.open_input_file(csv_file)}}
> works just fine regardless of the blanks?



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