Class org.apache.hadoop.io.compress.BZip2Codec not found

 java.lang.ClassNotFoundException: Class org.apache.hadoop.io.compress.BZip2Codec not found


要记住,配置文件不要乱加空格,回车。


解决方案: http://blog.sina.com.cn/s/blog_48a45b95010173ez.html

把配置中的空白字符和换行去掉即可,修改为:
<property>
<name>io.compression.codecs</name>
<value>org.apache.hadoop.io.compress.DefaultCodec, org.apache.hadoop.io.compress.GzipCodec,
org.apache.hadoop.io.compress.BZip2Codec, org.apache.hadoop.io.compress.LzoCodec</value>
<description>A list of the compression codec classes that can be used 
                       for compression/decompression.</description>
</property>

你可能感兴趣的:(Class org.apache.hadoop.io.compress.BZip2Codec not found)