简体   繁体   English

找不到org.apache.hadoop.mapreduce-Hadoop

[英]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.

相关问题 Apache Hadoop 2.2中的org.apache.hadoop.mapreduce导入问题 - Issue with org.apache.hadoop.mapreduce imports in Apache Hadoop 2.2 为什么IdentityMapper会在org.apache.hadoop.mapreduce库中消失? - Why IdentityMapper disappears in the org.apache.hadoop.mapreduce library? 如果我使用org.apache.hadoop.mapreduce(new)API,如何配置Hadoop MapReduce映射器输出压缩? - How to configure Hadoop MapReduce mapper output compression if I use org.apache.hadoop.mapreduce (new) API? 找到接口org.apache.hadoop.mapreduce.TaskAttemptContext - Found interface org.apache.hadoop.mapreduce.TaskAttemptContext 找到了类org.apache.hadoop.mapreduce.TaskInputOutputContext,但是需要接口 - Found class org.apache.hadoop.mapreduce.TaskInputOutputContext, but interface was expected 找到了接口org.apache.hadoop.mapreduce.TaskAttemptContext,但是期望使用类 - Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected Hadoop mapreduce错误:org.apache.hadoop.mapreduce.Counter - Hadoop mapreduce Error: org.apache.hadoop.mapreduce.Counter Amazon Hadoop 2.4 + Avro 1.77:找到了接口org.apache.hadoop.mapreduce.TaskAttemptContext,但是应该是类 - Amazon Hadoop 2.4 + Avro 1.77 : Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected Mahout 0.9和Hadoop 2.2.0-找到了接口org.apache.hadoop.mapreduce.JobContext,但是需要使用类 - Mahout 0.9 and Hadoop 2.2.0 - Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected Hadoop:java.lang.IncompatibleClassChangeError:找到接口org.apache.hadoop.mapreduce.JobContext,但是类是预期的 - Hadoop: java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM