You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/02/06 20:14:00 UTC

[jira] [Commented] (ARROW-3503) [Python] Allow config hadoop_bin in pyarrow hdfs.py

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

Wes McKinney commented on ARROW-3503:
-------------------------------------

Can you update your PR so we can merge this?

> [Python] Allow config hadoop_bin in pyarrow hdfs.py 
> ----------------------------------------------------
>
>                 Key: ARROW-3503
>                 URL: https://issues.apache.org/jira/browse/ARROW-3503
>             Project: Apache Arrow
>          Issue Type: New Feature
>            Reporter: Wenbo Zhao
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.13.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Currently, the hadoop_bin is either from `HADOOP_HOME` or the `hadoop` command. 
> [https://github.com/apache/arrow/blob/master/python/pyarrow/hdfs.py#L130]
> However, in some of environment setup, hadoop_bin could be some other location. Can we do something like 
>  
> {code:java}
> if 'HADOOP_BIN' in os.environ:
>     hadoop_bin = os.environ['HADOOP_BIN']
> elif 'HADOOP_HOME' in os.environ:
>     hadoop_bin = '{0}/bin/hadoop'.format(os.environ['HADOOP_HOME'])
> else:
>     hadoop_bin = 'hadoop'
> {code}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)