各位好,我的hadoop是0.20.1,现在想使用 lzo压缩,目前在编译hadoop-gpl-compression的时候出错,错误信息如下:
[ol][root@linux-1 hadoop-gpl-compression-0.1.0]# export CFLAGS=-m32[root@linux-1 hadoop-gpl-compression-0.1.0]# export CXXFLAGS=-m32[root@linux-1 hadoop-gpl-compression-0.1.0]# ant compile-nativeBuildfile: /soft/hadoop-gpl-compression-0.1.0/build.xmlivy-download: [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar [get] To: /soft/hadoop-gpl-compression-0.1.0/ivy/ivy-2.0.0-rc2.jar [get] Not modified - so not downloadedivy-init-dirs:ivy-probe-antlib:ivy-init-antlib:ivy-init:[ivy:configure] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ :::: loading settings :: file = /soft/hadoop-gpl-compression-0.1.0/ivy/ivysettings.xmlivy-resolve-common:[ivy:resolve] :: resolving dependencies :: com.hadoop.gplcompression#Hadoop-GPL-Compression;working@linux-1[ivy:resolve] confs: [common][ivy:resolve] found commons-logging#commons-logging;1.0.4 in maven2[ivy:resolve] found junit#junit;3.8.1 in maven2[ivy:resolve] found commons-logging#commons-logging-api;1.0.4 in maven2[ivy:resolve] :: resolution report :: resolve 284ms :: artifacts dl 4ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | common | 3 | 0 | 0 | 0 || 3 | 0 | ---------------------------------------------------------------------ivy-retrieve-common:[ivy:retrieve] :: retrieving :: com.hadoop.gplcompression#Hadoop-GPL-Compression[ivy:retrieve] confs: [common][ivy:retrieve] 0 artifacts copied, 3 already retrieved (0kB/12ms)No ivy:settings found for the default reference 'ivy.instance'. A default instance will be usedDEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead:: loading settings :: file = /soft/hadoop-gpl-compression-0.1.0/ivy/ivysettings.xmlinit:compile-java: [javac] /soft/hadoop-gpl-compression-0.1.0/build.xml:191: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 9 source files to /soft/hadoop-gpl-compression-0.1.0/build/classes [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:27: package org.apache.hadoop.conf does not exist [javac] import org.apache.hadoop.conf.Configurable; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:28: package org.apache.hadoop.conf does not exist [javac] import org.apache.hadoop.conf.Configuration; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:29: cannot find symbol [javac] symbol : class BlockCompressorStream [javac] location: package org.apache.hadoop.io.compress [javac] import org.apache.hadoop.io.compress.BlockCompressorStream; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:30: cannot find symbol [javac] symbol : class BlockDecompressorStream [javac] location: package org.apache.hadoop.io.compress [javac] import org.apache.hadoop.io.compress.BlockDecompressorStream; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:31: cannot find symbol [javac] symbol : class CompressionCodec [javac] location: package org.apache.hadoop.io.compress [javac] import org.apache.hadoop.io.compress.CompressionCodec; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:32: cannot find symbol [javac] symbol : class CompressionInputStream [javac] location: package org.apache.hadoop.io.compress [javac] import org.apache.hadoop.io.compress.CompressionInputStream; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:33: cannot find symbol [javac] symbol : class CompressionOutputStream [javac] location: package org.apache.hadoop.io.compress [javac] import org.apache.hadoop.io.compress.CompressionOutputStream; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:34: cannot find symbol [javac] symbol : class Compressor [javac] location: package org.apache.hadoop.io.compress [javac] import org.apache.hadoop.io.compress.Compressor; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:35: cannot find symbol [javac] symbol : class Decompressor [javac] location: package org.apache.hadoop.io.compress [javac] import org.apache.hadoop.io.compress.Decompressor; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:43: cannot find symbol [javac] symbol: class Configurable [javac] public class LzoCodec implements Configurable, CompressionCodec { [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:43: cannot find symbol [javac] symbol: class CompressionCodec [javac] public class LzoCodec implements Configurable, CompressionCodec { [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzoCodec.java:47: cannot find symbol [javac] symbol : class Configuration [javac] location: class com.hadoop.compression.lzo.LzoCodec [javac] private Configuration conf; [javac] ^ [javac] public Decompressor createDecompressor() { [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzopCodec.java:135: cannot find symbol [javac] symbol : class BlockCompressorStream [javac] location: class com.hadoop.compression.lzo.LzopCodec [javac] protected static class LzopOutputStream extends BlockCompressorStream { [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzopCodec.java:179: cannot find symbol [javac] symbol : class Compressor [javac] location: class com.hadoop.compression.lzo.LzopCodec.LzopOutputStream [javac] public LzopOutputStream(OutputStream out, Compressor compressor, [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzopCodec.java:202: cannot find symbol [javac] symbol : class BlockDecompressorStream [javac] location: class com.hadoop.compression.lzo.LzopCodec [javac] protected static class LzopInputStream extends BlockDecompressorStream { [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/compression/lzo/LzopCodec.java:213: cannot find symbol [javac] symbol : class Decompressor [javac] location: class com.hadoop.compression.lzo.LzopCodec.LzopInputStream [javac] public LzopInputStream(InputStream in, Decompressor decompressor, [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/mapreduce/LzoLineRecordReader.java:22: package org.apache.hadoop.conf does not exist [javac] import org.apache.hadoop.conf.Configuration; [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/mapreduce/LzoLineRecordReader.java:23: package org.apache.hadoop.fs does not exist [javac] import org.apache.hadoop.fs.FSDataInputStream; [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/mapreduce/LzoTextInputFormat.java:156: cannot find symbol [javac] symbol : class FileSystem [javac] location: class com.hadoop.mapreduce.LzoTextInputFormat [javac] private LzoIndex readIndex(Path file, FileSystem fs) throws IOException { [javac] ^ [javac] /soft/hadoop-gpl-compression-0.1.0/src/java/com/hadoop/mapreduce/LzoTextInputFormat.java:190: cannot find symbol [javac] symbol : class FileSystem [javac] location: class com.hadoop.mapreduce.LzoTextInputFormat [javac] public static void createIndex(FileSystem fs, Path lzoFile) [javac] ^ [javac] 100 errorsBUILD FAILED/soft/hadoop-gpl-compression-0.1.0/build.xml:191: Compile failed; see the compiler error output for details.Total time: 10 seconds[root@linux-1 hadoop-gpl-compression-0.1.0]# [/ol]复制代码
请问各位,可能是什么原因吗?吗?吗?吗?
哪位有成功的经验,麻烦传道一下,呵呵。3q!!! |
|