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?

4

2 回答 2

4

该工件的 maven 存储库例如:https ://mvnrepository.com(具体 请查看https://mvnrepository.com/artifact/org.apache.sqoop/sqoop/1.4.2-cdh4.2.1

在您的 pom 文件中,您必须添加以下依赖项:

<dependency>
  <groupId>org.apache.sqoop</groupId>
  <artifactId>sqoop</artifactId>
  <version>1.4.2-cdh4.2.1</version>
  <type>pom</type>
</dependency>
于 2013-06-13T20:57:04.287 回答
1

如果您使用 Cloudera 的 Hadoop 发行版 (CDH),您还应该使用 Cloudera maven 存储库,而不是第三方站点。您可以在安装指南中找到说明。

于 2013-06-14T05:27:09.187 回答