1

I'm trying to get Sqoop running on Java, and found the following question: How to use Sqoop in Java Program?

Seems like this is exactly what I need except I'm having trouble finding a maven repo for the "scoop jar". I am using cdh4.2 and our sqoop version is Sqoop 1.4.2-cdh4.2.1

Note: I have added a repo, but am still unable to access objects like ExportTool(), ExportTool(), or even Sqoop?

Community
  • 1
  • 1
Tyrick
  • 2,776
  • 3
  • 23
  • 33

2 Answers2

4

The maven repo for this artifact is for instance: https://mvnrepository.com (exactly look at https://mvnrepository.com/artifact/org.apache.sqoop/sqoop/1.4.2-cdh4.2.1)

At your pom file you have to add following dependency:

<dependency>
  <groupId>org.apache.sqoop</groupId>
  <artifactId>sqoop</artifactId>
  <version>1.4.2-cdh4.2.1</version>
  <type>pom</type>
</dependency>
Zoe
  • 27,060
  • 21
  • 118
  • 148
michal
  • 1,796
  • 1
  • 13
  • 11
1

If you are using Cloudera distribution of Hadoop (CDH), you should also use Cloudera maven repository and not third party site. You can find instructions in the installation guide.

Jarek Jarcec Cecho
  • 1,736
  • 1
  • 10
  • 13