[英]org.apache.hadoop.mapreduce Not Found— Hadoop
I am working on Hadoop. 我正在开发Hadoop。 I need to process images using the power of Big Data. 我需要使用大数据的功能来处理图像。 To play around with it, I have referred this example . 为了解决这个问题,我引用了这个示例 。 I need to create Sequence file prior working on the image duplicates. 在处理图像副本之前,我需要创建序列文件。 So i used this source code for creating sequence file. 因此,我使用了此源代码来创建序列文件。
When i compile this in Hadoop environment i am missing some packages. 当我在Hadoop环境中进行编译时,我缺少一些软件包。 I am using Hadoop-0.18.0. 我正在使用Hadoop-0.18.0。
/tmp/BinaryFilesToHadoopSequenceFile.java:12: package org.apache.hadoop.mapreduce does not exist
import org.apache.hadoop.mapreduce.Job;
^
/tmp/BinaryFilesToHadoopSequenceFile.java:13: package org.apache.hadoop.mapreduce does not exist
import org.apache.hadoop.mapreduce.Mapper;
^
/tmp/BinaryFilesToHadoopSequenceFile.java:14: package org.apache.hadoop.mapreduce.lib.input does not exist
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
^
/tmp/BinaryFilesToHadoopSequenceFile.java:15: package org.apache.hadoop.mapreduce.lib.input does not exist
import org.apache.hadoop.mapreduce.lib.input.TextInputFormat;
^
/tmp/BinaryFilesToHadoopSequenceFile.java:16: package org.apache.hadoop.mapreduce.lib.output does not exist
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
^
/tmp/BinaryFilesToHadoopSequenceFile.java:17: package org.apache.hadoop.mapreduce.lib.output does not exist
import org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat;
Whether am i doing anything wrong?? 我做错什么了吗? Or is it not available in 0.18.0. 还是在0.18.0中不可用。 I know this version is very old version. 我知道这个版本很旧。 Due to some restrictions i am using an already configured VM to work with ,which is having this version of hadoop. 由于某些限制,我正在使用已配置的VM来与该版本的hadoop一起使用。 Any Help would be appreciated!! 任何帮助,将不胜感激!!
I can't easily find a copy of 0.18.0 to download anymore, but it looks like the mapreduce package was not available in this version (or 0.19): 我无法轻易找到要下载的0.18.0副本,但是看起来mapreduce软件包在此版本(或0.19)中不可用:
It's definately in 0.20.2 though 绝对是0.20.2
尝试使用0.20.X hadoop核心软件包版本来使用org.apache.hadoop.mapreduce。*类
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.