QnaList > Groups > Sqoop-User > Mar 2013
faq

Java To Sqoop Commands

So, I am running a java program to import data from a sqlserver using sqoop.
I have the Microsoft SQL - Hadoop connector in the lib and whenever I run
commands from the command line the import runs fine.
Problem is when my Java is the one trying to run the command then sqoop
can't find the lib somehow so it does not connect to the DB.
I try running the exact same query directly in command line and everything
works fine.
Is there a way where I can define both the driver and connection manager
through Java as not to worry about it not finding the proper manager for
import?
Regards
Cyril

asked Mar 2 2013 at 20:11

Cyril Bogus's gravatar image



1 Replies for : Java To Sqoop Commands
Hi Cyril,
when executing Sqoop from within your Java application, do you have all the jars (connector,
JDBC Driver) in the classpath? Also it would be helpful if you could share exactly the error
message that you're getting.
Jarcec

answered Mar 2 2013 at 20:28

Jarek Jarcec Cecho's gravatar image


Related discussions

Tagged

Group Sqoop-user

asked Mar 2 2013 at 20:11

active Mar 2 2013 at 20:28

posts:2

users:2

©2013 QnaList.com . QnaList is part of ZisaTechnologies LLC.