2016-04-17 96 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