You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@sqoop.apache.org by Alec Ten Harmsel <al...@alectenharmsel.com> on 2014/07/28 20:24:30 UTC
SQOOP_CLASSPATH
Hi guys,
I'd like to be able to set SQOOP_CLASSPATH on my own so that I can point
it to JARs provided by packages instead of having to copy JARs into
$SQOOP_HOME/lib. The MySQL and Postgres JDBC drivers provided by RHEL
all end up in /usr/share/java.
Relevant lines from bin/configure-sqoop:
. ${SQOOP_CONF_DIR}/sqoop-env.sh # Line 38. I've set SQOOP_CLASSPATH
in sqoop-env.sh
# ...
SQOOP_CLASSPATH="" # Line 161. Clears SQOOP_CLASSPATH
I'm just wondering if there's either a good reason for this or another
way to point sqoop at the relevant JARs.
Thanks,
Alec
Re: SQOOP_CLASSPATH
Posted by Alec Ten Harmsel <al...@alectenharmsel.com>.
Thanks Jarcec.
That's kind of annoying; for now I'm modifying SQOOP_USER_CLASSPATH,
and that works just fine.
Alec
On Tue 29 Jul 2014 04:49:20 PM EDT, Jarek Jarcec Cecho wrote:
> Hi Alec,
> variable SQOOP_CLASSPATH is a private one (don’t ask me why though). If you need to put something on Sqoop class path you need to alter HADOOP_CLASSPATH variable instead.
>
> Jarcec
>
> On Jul 28, 2014, at 11:24 AM, Alec Ten Harmsel <al...@alectenharmsel.com> wrote:
>
>> Hi guys,
>>
>> I'd like to be able to set SQOOP_CLASSPATH on my own so that I can point
>> it to JARs provided by packages instead of having to copy JARs into
>> $SQOOP_HOME/lib. The MySQL and Postgres JDBC drivers provided by RHEL
>> all end up in /usr/share/java.
>>
>> Relevant lines from bin/configure-sqoop:
>>
>> . ${SQOOP_CONF_DIR}/sqoop-env.sh # Line 38. I've set SQOOP_CLASSPATH
>> in sqoop-env.sh
>> # ...
>> SQOOP_CLASSPATH="" # Line 161. Clears SQOOP_CLASSPATH
>>
>> I'm just wondering if there's either a good reason for this or another
>> way to point sqoop at the relevant JARs.
>>
>> Thanks,
>>
>> Alec
>
Re: SQOOP_CLASSPATH
Posted by Jarek Jarcec Cecho <ja...@apache.org>.
Hi Alec,
variable SQOOP_CLASSPATH is a private one (don’t ask me why though). If you need to put something on Sqoop class path you need to alter HADOOP_CLASSPATH variable instead.
Jarcec
On Jul 28, 2014, at 11:24 AM, Alec Ten Harmsel <al...@alectenharmsel.com> wrote:
> Hi guys,
>
> I'd like to be able to set SQOOP_CLASSPATH on my own so that I can point
> it to JARs provided by packages instead of having to copy JARs into
> $SQOOP_HOME/lib. The MySQL and Postgres JDBC drivers provided by RHEL
> all end up in /usr/share/java.
>
> Relevant lines from bin/configure-sqoop:
>
> . ${SQOOP_CONF_DIR}/sqoop-env.sh # Line 38. I've set SQOOP_CLASSPATH
> in sqoop-env.sh
> # ...
> SQOOP_CLASSPATH="" # Line 161. Clears SQOOP_CLASSPATH
>
> I'm just wondering if there's either a good reason for this or another
> way to point sqoop at the relevant JARs.
>
> Thanks,
>
> Alec