Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Sqoop, mail # user - can we use -libjars with the Sqoop tool?

Copy link to this message
can we use -libjars with the Sqoop tool?
Jane Wayne 2013-06-06, 00:23

i am wondering if i can run the org.apache.sqoop.Sqoop tool like other
tools from the command line using the -libjars flag/option/parameter?

i have tried the following.


hadoop --config path/to/sqoop-cluster-config-dir jar sqoop-1.4.3.jar
org.apache.sqoop.Sqoop -libjars ${LIBJARS} import --connect
jdbc:mysql://mysql/mydb --username myuser --password mypass --table data
--verbose --append --warehouse-dir /sqoop

what i get is the message below.

No such sqoop tool: -libjars. See 'sqoop help'.

obviously, this problem has something to do with sqoop's parsing of the
command line options. shouldn't sqoop allow hadoop's command line options
and its own at the same time?

in the meanwhile, i will try to tinker a bit with that Sqoop class to see
if i can get it to work with -libjars.

references that i found regarding -libjars.
1. http://grepalex.com/2013/02/25/hadoop-libjars/