You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2022/03/08 18:03:00 UTC
[jira] [Commented] (ARROW-12839) [Python] ImportError: The pyarrow installation is not built with support for 'HadoopFileSystem'
[ https://issues.apache.org/jira/browse/ARROW-12839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503092#comment-17503092 ]
Joris Van den Bossche commented on ARROW-12839:
-----------------------------------------------
[~amueller] sorry for the very late response.
It seems you are installing from source? (pip is not installing using a binary wheel? Which platform are you using?)
If installing from source, you need to ensure to enable HDFS while building (both for C++, see https://arrow.apache.org/docs/developers/cpp/building.html#optional-components ({{ARROW_HFDS}}) as for Python: {{export PYARROW_WITH_HDFS=1}})
> [Python] ImportError: The pyarrow installation is not built with support for 'HadoopFileSystem'
> -----------------------------------------------------------------------------------------------
>
> Key: ARROW-12839
> URL: https://issues.apache.org/jira/browse/ARROW-12839
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 4.0.0
> Reporter: Armin Müller
> Priority: Critical
>
> Tried to install pyarrow with
> {noformat}
> python3.7 -m pip install hdfs pyarrow=4.00{noformat}
> which gave me this
> {noformat}
> CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
> Could NOT find ArrowPython (missing: ARROW_PYTHON_INCLUDE_DIR
> ARROW_PYTHON_LIB_DIR) (found version "4.0.0"){noformat}
> so I installed the C++ libs as listed on [https://arrow.apache.org/install/]
> With that I was able to run the above pip install w/o errors but now an
> {noformat}
> hdfs = fs.HadoopFileSystem('namenode', 8020){noformat}
> throws an
> {noformat}
> ImportError: The pyarrow installation is not built with support for 'HadoopFileSystem'{noformat}
> I do have hadoop installed in that container, HADOOP_HOME and CLASSPATH is set and I have found some
> {code:java}
> /usr/include/arrow/filesystem/hdfs.h
> /usr/include/arrow/io/hdfs.h
> {code}
> in this container.
> What am I missing?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)