Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3503

[Python] Allow config hadoop_bin in pyarrow hdfs.py

    XMLWordPrintableJSON

Details

    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 

       

      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'
      

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wbzhao Wenbo Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m