Ubuntu 16.0 using ant to compile hadoop-eclipse-plugins2.6.0

Source: Internet
Author: User
Tags shuffle log4j

Tossing for two days, holding the spirit of not giving up, I finally compiled my own need for Hadoop in the Eclipse plug-in

Download on the Internet may be due to version inconsistencies, there are a variety of issues during compilation, including your Eclipse version and Hadoop version, JDK version, ant version

So download a few, at least 19, but has not been successful, has been unable to find the package exception information, about this exception information on the Internet is very little

Compile
[Echo] Contrib:eclipse-plugin
[Javac] compiling source Files To/usr/hadoop/build/contrib/eclipse-plugin/classes
[Javac]/usr/hadoop/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/activator.java:22:package Org.eclipse.ui.plugin does not exist
[Javac] Import org.eclipse.ui.plugin.AbstractUIPlugin;
[Javac] ^
[Javac]/usr/hadoop/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/activator.java:23:package Org.osgi.framework does not exist
[Javac] Import org.osgi.framework.BundleContext;
[Javac] ^
[Javac]/usr/hadoop/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/activator.java:28:cannot find Symbol
[Javac] Symbol:class Abstractuiplugin
[Javac] public class Activator extends Abstractuiplugin {
[Javac] ^
[Javac]/usr/hadoop/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/activator.java:56:cannot find Symbol
[Javac] Symbol:class Bundlecontext
[Javac] Location:class Org.apache.hadoop.eclipse.Activator
[Javac] public void start (Bundlecontext context) throws Exception {
[Javac] ^
[Javac]/usr/hadoop/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/activator.java:62:cannot find Symbol
[Javac] Symbol:class Bundlecontext
[Javac] Location:class Org.apache.hadoop.eclipse.Activator
[Javac] public void Stop (Bundlecontext context) throws Exception {
[Javac] ^
[Javac]/usr/hadoop/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/errormessagedialog.java:21: Package Org.eclipse.jface.dialogs does not exist
[Javac] Import org.eclipse.jface.dialogs.MessageDialog;
[Javac] ^
[Javac]/usr/hadoop/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/hadoopperspectivefactory.java : 21:package Org.eclipse.debug.ui does not exist
[Javac] Import org.eclipse.debug.ui.IDebugUIConstants;
[Javac] ^
[Javac]/usr/hadoop/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/hadoopperspectivefactory.java : 22:package Org.eclipse.jdt.ui does not exist
[Javac] Import Org.eclipse.jdt.ui.JavaUI;
[Javac]

So we must pay attention to the version issue when using, if everyone's eclipse and Hadoop version like me, please go directly to my network download it

My eclipse is

Hadoop is 2.6.0

Resources are as follows:

https://pan.baidu.com/s/1dE9UN3z

There are also eclipse and Hadoop in the network disk.

hadoop2.x Resources for making eclipse: https://pan.baidu.com/s/1c2tsd8k

My Eclipse and Hadoop installation directories are in the Linux virtual machine as follows:

The plugins in Hadoop-eclipse in the command line are as follows:

[Email protected]:/usr/local/hadoop2x-eclipse-plugin/src/contrib/eclipse-plugin# ant jar-dversion=2.6.0- Declipse.home=/usr/local/eclipse-dhadoop.home=/usr/local/hadoop
BuildFile:/usr/local/hadoop2x-eclipse-plugin/src/contrib/eclipse-plugin/build.xml

Compile
[Echo] Contrib:eclipse-plugin
[Javac] compiling source Files To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/classes
[Javac] Note:some input files use or override a deprecated API.
[Javac] Note:recompile with-xlint:deprecation for details.
[Javac] Note:some input files Use unchecked or unsafe operations.
[Javac] Note:recompile with-xlint:unchecked for details.

Jar:
[MkDir] Created dir:/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying 9 Files To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-client-app-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-client-common-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-client-core-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-client-hs-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-client-hs-plugins-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.0-tests.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-client-jobclient-2.6.0-tests.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-client-jobclient-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-client-shuffle-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-mapreduce-examples-2.6.0.jar
[Copy] Copying 3 Files To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/hadoop-common-2.6.0-tests.jar To/usr/local/hadoop2x-eclipse-plugin /build/contrib/eclipse-plugin/lib/hadoop-common-2.6.0-tests.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/common/hadoop-common-2.6.0.jar To/usr/local/hadoop2x-eclipse-plugin/build /contrib/eclipse-plugin/lib/hadoop-common-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/common/hadoop-nfs-2.6.0.jar to/usr/local/hadoop2x-eclipse-plugin/build/ Contrib/eclipse-plugin/lib/hadoop-nfs-2.6.0.jar
[Copy] Copying 3 Files To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-2.6.0-tests.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/hadoop-hdfs-2.6.0-tests.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-2.6.0.jar to/usr/local/hadoop2x-eclipse-plugin/build/ Contrib/eclipse-plugin/lib/hadoop-hdfs-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-nfs-2.6.0.jar To/usr/local/hadoop2x-eclipse-plugin/build /contrib/eclipse-plugin/lib/hadoop-hdfs-nfs-2.6.0.jar
[Copy] Copying Files To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-api-2.6.0.jar To/usr/local/hadoop2x-eclipse-plugin/build /contrib/eclipse-plugin/lib/hadoop-yarn-api-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-yarn-applications-distributedshell-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.6.0.jar to/usr/ local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/ Hadoop-yarn-applications-unmanaged-am-launcher-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-client-2.6.0.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/hadoop-yarn-client-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-common-2.6.0.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/hadoop-yarn-common-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-registry-2.6.0.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/hadoop-yarn-registry-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.6.0.jar to/usr/local/ hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/ Hadoop-yarn-server-applicationhistoryservice-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-common-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-yarn-server-common-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-yarn-server-nodemanager-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-yarn-server-resourcemanager-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-tests-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-yarn-server-tests-2.6.0.jar
[Copy] Copying/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.6.0.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/hadoop-yarn-server-web-proxy-2.6.0.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/protobuf-java-2.5.0.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/protobuf-java-2.5.0.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/log4j-1.2.17.jar to/usr/local/hadoop2x-eclipse-plugin/build/ Contrib/eclipse-plugin/lib/log4j-1.2.17.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/commons-cli-1.2.jar To/usr/local/hadoop2x-eclipse-plugin/build /contrib/eclipse-plugin/lib/commons-cli-1.2.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/commons-configuration-1.6.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/commons-configuration-1.6.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/commons-lang-2.6.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/commons-lang-2.6.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/commons-collections-3.2.1.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/commons-collections-3.2.1.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/jackson-core-asl-1.9.13.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar to/usr/local/ Hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib/jackson-mapper-asl-1.9.13.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/slf4j-log4j12-1.7.5.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/slf4j-api-1.7.5.jar To/usr/local/hadoop2x-eclipse-plugin/build /contrib/eclipse-plugin/lib/slf4j-api-1.7.5.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/guava-11.0.2.jar to/usr/local/hadoop2x-eclipse-plugin/build/ Contrib/eclipse-plugin/lib/guava-11.0.2.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/hadoop-auth-2.6.0.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/hadoop-auth-2.6.0.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/netty-3.6.2.final.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/netty-3.6.2.final.jar
[Copy] Copying 1 File To/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/lib
[Copy] Copying/usr/local/hadoop/share/hadoop/common/lib/htrace-core-3.0.4.jar to/usr/local/hadoop2x-eclipse-plugin/ Build/contrib/eclipse-plugin/lib/htrace-core-3.0.4.jar
[Jar] Building jar:/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin/hadoop-eclipse-plugin-2.6.0.jar

BUILD Successful
Total Time:6 seconds

[Email protected]:/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin# ls
Classes Examples Hadoop-eclipse-plugin-2.6.0.jar lib system test

The compiled target file is stored in the following

[Email protected]:/usr/local/hadoop2x-eclipse-plugin/build/contrib/eclipse-plugin# CP hadoop-eclipse-plugin-2.6.0.jar/home/hett/eclipse/jee-oxygen/eclipse/plugins/

Put the compiled jar package into Eclipse's plugins

Configure remote use of Hadoop server

It's been a long, hard time.

Ubuntu 16.0 using ant to compile hadoop-eclipse-plugins2.6.0

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.