hadoop-lzo安装出错的解决方法

check-native-uptodate:

compile-native:
    [javah] Error: Class org.apache.hadoop.conf.Configuration could not be found.

BUILD FAILED
/home/hadoop/src/kevinweil-hadoop-lzo-6bb1b7f/build.xml:269: compilation failed

在build.xml中添加 <classpath refid="classpath"/>

<javah classpath="${build.classes}"
  destdir="${build.native}/src/com/hadoop/compression/lzo"
  force="yes" verbose="yes">
   <class name="com.hadoop.compression.lzo.LzoCompressor" />
   <class name="com.hadoop.compression.lzo.LzoDecompressor" />
   <classpath refid="classpath"/>
</javah>

 

posted @ 2012-12-04 16:55  rilley  阅读(599)  评论(0编辑  收藏  举报