gpt4 book ai didi

python - Pydoop 安装(类路径问题)? [解决了]

转载 作者:太空宇宙 更新时间:2023-11-03 16:42:32 24 4
gpt4 key购买 nike

我一直在努力安装 pydoop。我按照此页面上的说明进行操作 http://crs4.github.io/pydoop/installation.html

当我运行 pip install pydoop 时,终端仅输出大量错误,但我无法查明主要问题。我粘贴了以下一些错误:

Compiling Java classes
src/v2/it/crs4/pydoop/pipes/Application.java:33: error: package org.apache.commons.logging does not exist
import org.apache.commons.logging.Log;
^
src/v2/it/crs4/pydoop/pipes/Application.java:34: error: package org.apache.commons.logging does not exist
import org.apache.commons.logging.LogFactory;
^
src/v2/it/crs4/pydoop/pipes/Application.java:35: error: package org.apache.hadoop.fs does not exist
import org.apache.hadoop.fs.FSDataOutputStream;

src/v2/it/crs4/pydoop/pipes/BinaryProtocol.java:61: error: cannot find symbol
private DataOutputBuffer buffer = new DataOutputBuffer();
^
symbol: class DataOutputBuffer
location: class BinaryProtocol<K1,V1,K2,V2>
where K1,V1,K2,V2 are type-variables:
K1 declared in class BinaryProtocol
V1 declared in class BinaryProtocol
K2 declared in class BinaryProtocol
V2 declared in class BinaryProtocol
src/v2/it/crs4/pydoop/pipes/BinaryProtocol.java:62: error: cannot find symbol
private static final Log LOG =

所以我造轮子失败了。

Failed building wheel for pydoop
Running setup.py clean for pydoop
Failed to build pydoop
Installing collected packages: pydoop
Running setup.py install for pydoop ... error

最佳答案

已解决程序自动分配的路径不正确。所以设置

HADOOP_HOME =/usr/local/Cellar/hadoop/2.7.2/libexec

关于python - Pydoop 安装(类路径问题)? [解决了],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36673171/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com