apache sqoop 1.4.4 development environment setup in eclipse - java

I am trying to setup sqoop development environment in eclipse but, I do not see any instructions for sqoop 1.4.4.
I tried downloading the source from the SVN repo.
Installed ant and tried compiling the source code. But i want to set the project in eclipse.
I also tried creating a maven project under eclipse but it is giving the error
Missing artifact org.apache.sqoop:sqoop:jar:1.4.4
Any help or pointers are much appreciated.

I used the maven dependency to resolve the above issue
<dependency>
<groupId>org.apache.sqoop</groupId>
<artifactId>sqoop</artifactId>
<version>1.4.4</version>
<classifier>hadoop23</classifier>
I still want the ant related development setup. Please let me know.

Related

Maven throwing no class found but is working on other developers environment

I am getting the following error when running mvn clean test:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/maven/plugin/MojoExecutionException
It's not happening on my development team they say they are running the command just fine.
I've checked the JAVA_HOME and JRE_HOME environments, both fine.
I'm using maven version 3.6.3 and Java version 1.8.0_144
Not sure what to do at this point. This project was installed using IntelliJ git clone
IntelliJ could use a bundled maven version, which could be different from the system/user one. Have you already checked settings of the IDE?
The problem could be related to different option, maybe a log could help more. Be sure that all the dependencies and plugins are downloaded without any problems. In the past I had same issue and it was related to the proxy settings for the download.
Something was wrong with the maven donwload. I remapped the environment settings to use the intellij maven and everything worked great.

Eclipse build errors when using Gradle or Maven?

When using a build manager like Gradle or Maven, my dependencies are being managed correctly, however the Eclipse IDE is unaware of the resolved dependencies so it will still show errors and I cannot build through Eclipse, I have to run a 'build' command through the build manager.
How do you get Eclipse to be aware of the resolved dependencies taken care of by a build manager and running the app through the IDE?
You can generate Eclipse metadata using eclipse plugin distribute with Gradle - http://www.gradle.org/docs/current/userguide/eclipse_plugin.html - this will set up the project with its classpath.
Or install Gradle plugin for Eclipse developed by Pivotal folks.
The question is vague. Using m2e or Gradle plugin for Eclipse developed by Pivotal can lead you to different errors. You should ask exact question, sharing error that you got here on stackoverflow.

Hadoop 2.2.0 Eclipse Plugin

I have installed hadoop-2.2.0 (single node cluser) and maven3.3.1 on my pc. I want to program MapReduce code in eclipse. So my questions are:
What is the relationship between mapreduce and maven?
How do I debug the code in eclipse? A tutorial says that I should first install a hadoop eclipse plugin in an old version, but it seems there isn't a plugin for the new version hadoop-2.2.0. How can I solve this?
I have compiled the eclipse plugin from https://github.com/winghc/hadoop2x-eclipse-plugin and uploaded the final jar file on github ( https://github.com/abhishekgoel137/hadoop-eclipse-plugins ).
will save you some time to compile.
Hope it helps.
There is no direct relationship between maven and hadoop
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
And using maven you can download dependencies to develop hadoop/mapreduce project
http://mvnrepository.com/artifact/org.apache.hadoop/
There is no eclipse plugin for 2.2.0, it's still in development stage but you can try IntelliJ IDEA, which is also a nice development tool for java.
http://vichargrave.com/intellij-project-for-building-hadoop-the-definitive-guide-examples/
you can download and compile the eclipse plugin for hadoop 2.2.0 from github at https://github.com/winghc/hadoop2x-eclipse-plugin

Problems integrating Maven with Eclipse Kepler

I am totally new to working with Maven in Eclipse. I am using the latest verion of Eclipse (Kepler). According other posts, as well as Eclipse's help page http://help.eclipse.org/kepler/index.jsp?topic=//org.eclipse.platform.doc.user/tasks/tasks-127.htm , I am supposed to try to install new software within Eclipse IDE.
However, when I try to Add Eclipse's recommended m2e release, Eclipse gives me an error:
Unable to read repository at http://download.eclipse.org/technology/m2e/releases.
download.eclipse[...]releases is not a valid repository location.
Essentially I run into the same problem no matter which approach I take outlined on the Eclipse help page. Is there some other/better way to integrate Maven with Eclipse? Are there steps I should have taken before this? All I have done so far is install Eclipse. How can I successfully get Maven running?
EDIT: Now I am using Java EE and still run into problems when making a Maven project. I get a "Could not resolve archetype error" could this be because I'm behind a proxy?
Most convenient option:
The reason you're getting that error is because that repo is deprecated, and it has been moved. Example of how the new repo looks:
http://download.eclipse.org/technology/m2e/releases/1.0/1.0.0.20110607-2117
Copy that in the Install New Software view, and you will see that it works.
Other options:
Install the Maven Integration from Eclipse Marketplace (Help -> Eclipse Marketplace)
Download the EE version of Kepler (comes with m2e)
Choose your own release (bottom of the page) and use the Install New Software view.
I had the same issue here and the above answer didnt work for me. Although Maven is installed I cane update my dependencies on my folder the way I used to be able to do on Juno. What I did was used the pom.xml from my current project and pasted it into the pom of my new project I created specifically in Eclipse using new project->Maven.
This was eclipse knows its a Maven project and allows my all the benefits of being one.
To install maven properly for eclipse you should set the correct repos as follow:
Help=>install=>
then work with
http://download.eclipse.org/releases/
example of eclipse version : mars or kepler ..

m2e in Eclipse Indigo no longer working

m2e is no longer working in my Eclipse Indigo. Nothing is printed to the Maven console, I can't download any sources and some dependencies won't be resolved.
I'm using the embedded Maven installation.
Do you know how to fix this issue?
Just a wild guess (due to similar problems I had in the past):
If you use the embedded m2e Maven installation, Maven has no information to your settings.
If you are in a corporate environment, you have to set your proxy in a Maven related location:
In your users settings.xml file.
In your Maven installation settings.xml file
m2e can only use the proxy set in your Maven settings file, not the one in your eclipse environment. So as a result, you could see all the old libraries contained in local repositories, but no new ones contained only in remote repositories located somewhere on the internet.
Please add some more information about your configuration in eclipse (does eclipse find your user settings.xml file?) and the errors you get.
Try -clean workspace option. Or if it doesn't help, create new workspace, test if m2e started working and import your old projects. I just resolved issue very similar to yours using second option.
Here is good explanation of such kind of troubles: http://www.eclipsezone.com/eclipse/forums/t61566.html

Categories

Resources