You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wenbo Zhao (JIRA)" <ji...@apache.org> on 2018/10/12 13:51:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Wenbo Zhao updated ARROW-3503:
------------------------------
    Description: 
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 

```python

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'

``` 

 

> [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: Bug
>            Reporter: Wenbo Zhao
>            Priority: Major
>
> 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 
> ```python
> 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'
> ``` 
>  



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