【发布时间】:2015-08-06 10:45:00
【问题描述】:
我正在关注 Apache 提供的 this hadoop mapreduce tutorial。 那里给出的 Java 代码使用这些 Apache-hadoop 类:
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
但我不明白从哪里下载这些罐子。在互联网上搜索这些课程时,我可以看到它们可用here。
但是这些和 Jars 的正式/真实的 Apache 存储库是什么?
如果 jar 是随 hadoop 一起提供的,请告诉我路径。
编辑:其他问题没有给出明确的说明。 我找到了如下答案
This tutorial 提及:
下载Hadoop-core-1.2.1.jar,用于编译和执行MapReduce程序。访问以下链接http://mvnrepository.com/artifact/org.apache.hadoop/hadoop-core/1.2.1 下载jar。
所以这看起来是真实的存储库。
【问题讨论】:
-
尝试从hadoop.apache.org/releases.html下载hadoop发行版并检查它的lib文件夹
-
在这个线程中有关于jar文件利用的答案:stackoverflow.com/questions/29551179/…