我一直在努力安装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
答案 0 :(得分:1)
解决 程序自动分配的路径不正确。 所以设置
HADOOP_HOME = /usr/local/Cellar/hadoop/2.7.2/libexec