gpt4 book ai didi

用于 Hadoop 开发的 Eclipse 配置

转载 作者:可可西里 更新时间:2023-11-01 16:56:13 25 4
gpt4 key购买 nike

我是 Hadoop 的新手。我尝试通过 linux 终端运行 wordcount 和 PI 等示例程序。现在想尝试使用 eclipse。有人可以分享如何为 Hadoop 开发配置 Eclipse 吗?我在 Ubuntu 14.04 LTS Vm 上使用 hadoop 2.6.0。

最佳答案

您只需在要使用 Hadoop 的 Eclipse 项目中引用这些库。仅此而已。

$HADOOP_HOME/libexec/share/hadoop/common/hadoop-common-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/hdfs/hadoop-hdfs-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/yarn/hadoop-yarn-api-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/yarn/hadoop-yarn-client-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/yarn/hadoop-yarn-common-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/yarn/hadoop-yarn-registry-2.6.0.jar
$HADOOP_HOME/libexec/share/hadoop/yarn/hadoop-yarn-server-common-2.6.0.jar

关于用于 Hadoop 开发的 Eclipse 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29657274/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com