|
|
-
Add external jars automatically
Krishna Rao 2013-03-13, 17:26
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
Alex Kozlov 2013-03-13, 17:41
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 <[EMAIL PROTECTED]>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
Krishna Rao 2013-03-13, 17:54
Ah great, the auxlib dir option sounds perfect.
Cheers On 13 March 2013 17:41, Alex Kozlov <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>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 >> > >
|
|