You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Krishna Rao <kr...@gmail.com> on 2013/03/13 18:26:46 UTC
Add external jars automatically
Hi all,
I'm using the hive json serde and need to run: "ADD JAR
/usr/lib/hive/lib/hive-json-serde-0.2.jar;", before I can use tables that
require it.
Is it possible to have this jar available automatically?
I could do it via adding the statement to a .hiverc file, but I was
wondering if there is some better way...
Cheers,
Krishna
Re: Add external jars automatically
Posted by Krishna Rao <kr...@gmail.com>.
Ah great, the auxlib dir option sounds perfect.
Cheers
On 13 March 2013 17:41, Alex Kozlov <al...@cloudera.com> wrote:
> If you look into ${HIVE_HOME}/bin/hive script there are multiple ways to
> add the jar. One of my favorite, besides the .hiverc file, has been to put
> the jar into ${HIVE_HOME}/auxlib dir. There always is the
> HIVE_AUX_JARS_PATH environment variable (but this introduces a dependency
> on the environment).
>
>
> On Wed, Mar 13, 2013 at 10:26 AM, Krishna Rao <kr...@gmail.com>wrote:
>
>> Hi all,
>>
>> I'm using the hive json serde and need to run: "ADD JAR
>> /usr/lib/hive/lib/hive-json-serde-0.2.jar;", before I can use tables that
>> require it.
>>
>> Is it possible to have this jar available automatically?
>>
>> I could do it via adding the statement to a .hiverc file, but I was
>> wondering if there is some better way...
>>
>> Cheers,
>>
>> Krishna
>>
>
>
Re: Add external jars automatically
Posted by Alex Kozlov <al...@cloudera.com>.
If you look into ${HIVE_HOME}/bin/hive script there are multiple ways to
add the jar. One of my favorite, besides the .hiverc file, has been to put
the jar into ${HIVE_HOME}/auxlib dir. There always is the
HIVE_AUX_JARS_PATH environment variable (but this introduces a dependency
on the environment).
On Wed, Mar 13, 2013 at 10:26 AM, Krishna Rao <kr...@gmail.com>wrote:
> Hi all,
>
> I'm using the hive json serde and need to run: "ADD JAR
> /usr/lib/hive/lib/hive-json-serde-0.2.jar;", before I can use tables that
> require it.
>
> Is it possible to have this jar available automatically?
>
> I could do it via adding the statement to a .hiverc file, but I was
> wondering if there is some better way...
>
> Cheers,
>
> Krishna
>