2016-04-17 98 views
1

我一直在努力安装pydoop。我遵循此页上的说明 http://crs4.github.io/pydoop/installation.htmlPydoop安装(类路径问题)? [SOVLED]

当我运行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 

回答

1

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

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