如何在 HDP 2.2 中安装 hadoop-examples* 和 hadoop-test* jar?
How do I install the hadoop-examples* and hadoop-test* jars in HDP 2.2?
如何在 Hortonworks Data Platform 2.2 上安装 hadoop-examples* 和 hadoop-test* jar?这些罐子在任何服务器上都不存在。我需要安装另一个软件包吗?
我发现一个 reference 说它们应该位于 /usr/share/hadoop
,但是我集群中的任何节点上都不存在该目录。
您需要安装 hadoop 包,可以使用 RPM 以两种方式安装 Hadoop 库,也可以使用 Tarball
RPM (Binary - Requires sudo access)
第 1 步:配置 Remote repository
第 2 步:安装 hadoop 库 - Refer this link
Tarball (Source + Binary : No need of sudo access just need to
extract )
从 link 提取物中获取 tar 球并使用它。
使用 RPM 完成安装后,您可以使用 locate 命令或 find 命令来定位这些 jar。如果是 Tarball,您可以在解压缩的目录中定位 hadoop 库。
locate hadoop-test.jar hadoop-examples.jar
find /usr -iname hadoop-test.jar
HDP 2.2 的大多数内容已移至 /usr/hdp,因此这些可能正是您要查找的内容。
[hdpdemo@hdp-demo-mas5 hdp]$ pwd
/usr/hdp
[hdpdemo@hdp-demo-mas5 hdp]$ ls
2.2.0.0-2041 current
[hdpdemo@hdp-demo-mas5 hdp]$ find ./2.2.0.0-2041 -name "hadoop*examples*"
./2.2.0.0-2041/hadoop-mapreduce/hadoop-mapreduce-examples-2.6.0.2.2.0.0-2041.jar
./2.2.0.0-2041/hadoop-mapreduce/hadoop-mapreduce-examples.jar
./2.2.0.0-2041/knox/samples/hadoop-examples.jar
[hdpdemo@hdp-demo-mas5 hdp]$ find ./2.2.0.0-2041 -name "hadoop*test*"
./2.2.0.0-2041/hadoop/hadoop-common-tests.jar
./2.2.0.0-2041/hadoop/hadoop-common-2.6.0.2.2.0.0-2041-tests.jar
./2.2.0.0-2041/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-2.6.0.2.2.0.0-2041-tests.jar
./2.2.0.0-2041/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-tests.jar
./2.2.0.0-2041/hadoop-yarn/hadoop-yarn-server-tests.jar
./2.2.0.0-2041/hadoop-yarn/hadoop-yarn-server-tests-2.6.0.2.2.0.0-2041.jar
./2.2.0.0-2041/hadoop-hdfs/hadoop-hdfs-tests.jar
./2.2.0.0-2041/hadoop-hdfs/hadoop-hdfs-2.6.0.2.2.0.0-2041-tests.jar
[hdpdemo@hdp-demo-mas5 hdp]$
如何在 Hortonworks Data Platform 2.2 上安装 hadoop-examples* 和 hadoop-test* jar?这些罐子在任何服务器上都不存在。我需要安装另一个软件包吗?
我发现一个 reference 说它们应该位于 /usr/share/hadoop
,但是我集群中的任何节点上都不存在该目录。
您需要安装 hadoop 包,可以使用 RPM 以两种方式安装 Hadoop 库,也可以使用 Tarball
RPM (Binary - Requires sudo access)
第 1 步:配置 Remote repository
第 2 步:安装 hadoop 库 - Refer this link
Tarball (Source + Binary : No need of sudo access just need to extract )
从 link 提取物中获取 tar 球并使用它。
使用 RPM 完成安装后,您可以使用 locate 命令或 find 命令来定位这些 jar。如果是 Tarball,您可以在解压缩的目录中定位 hadoop 库。
locate hadoop-test.jar hadoop-examples.jar
find /usr -iname hadoop-test.jar
HDP 2.2 的大多数内容已移至 /usr/hdp,因此这些可能正是您要查找的内容。
[hdpdemo@hdp-demo-mas5 hdp]$ pwd
/usr/hdp
[hdpdemo@hdp-demo-mas5 hdp]$ ls
2.2.0.0-2041 current
[hdpdemo@hdp-demo-mas5 hdp]$ find ./2.2.0.0-2041 -name "hadoop*examples*"
./2.2.0.0-2041/hadoop-mapreduce/hadoop-mapreduce-examples-2.6.0.2.2.0.0-2041.jar
./2.2.0.0-2041/hadoop-mapreduce/hadoop-mapreduce-examples.jar
./2.2.0.0-2041/knox/samples/hadoop-examples.jar
[hdpdemo@hdp-demo-mas5 hdp]$ find ./2.2.0.0-2041 -name "hadoop*test*"
./2.2.0.0-2041/hadoop/hadoop-common-tests.jar
./2.2.0.0-2041/hadoop/hadoop-common-2.6.0.2.2.0.0-2041-tests.jar
./2.2.0.0-2041/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-2.6.0.2.2.0.0-2041-tests.jar
./2.2.0.0-2041/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-tests.jar
./2.2.0.0-2041/hadoop-yarn/hadoop-yarn-server-tests.jar
./2.2.0.0-2041/hadoop-yarn/hadoop-yarn-server-tests-2.6.0.2.2.0.0-2041.jar
./2.2.0.0-2041/hadoop-hdfs/hadoop-hdfs-tests.jar
./2.2.0.0-2041/hadoop-hdfs/hadoop-hdfs-2.6.0.2.2.0.0-2041-tests.jar
[hdpdemo@hdp-demo-mas5 hdp]$