Thanks dean, I knew about the .hiverc script, will try the other
alternative of renaming jar and get back. Thanks
On Wed, Jan 23, 2013 at 2:57 PM, Dean Wampler <
[EMAIL PROTECTED]> wrote:
> Is there anything in the logs about problems loading the jar, etc.?
> The jar files in $HVE_HOME are added to the CLASSPATH in alphabetical
> order. As an experiment, rename your jar with a name that will go last,
> something like zzz.jar, and see what happens when you start Hive. If it
> seems to be working normally, it may be that some file in your jar file has
> a name that's the same as a file in one of Hive's jar files and your's gets
> read instead. An XML config file, for example.
> If this experiment appears to work, run "jar tf name-of-your-file.jar" and
> post the listing here, if you don't mind.
> Note that an alternative to dropping jar files in Hive's lib directory is
> to put the "add jar ..." command in your $HOME/.hiverc file, which Hive
> will read on startup (Hive v0.7.0 and later). What Hive version are you
> using, by the way? I also put lots of custom configuration setting
> commands, e.g., set hive.exec.mode.local.auto=true; (to encourage local
> mode execution, when possible).
> On Wed, Jan 23, 2013 at 6:41 AM, Ehsan Haq <[EMAIL PROTECTED]> wrote:
>> I have writen a custom serde and bundle it in a jar file, which is
>> working fine, when I add the jar using the CLI command add jar. However
>> when I put the jar in the hive/lib folder so that I dont have to explicitly
>> add the jar, it looks like other jars were failed to load. The outcome is
>> that the meta data is also not accessible due to that. The jar works just
>> fine if put it somewhere else and add it via add jar.
>> Any idea what might be wrong?
> *Dean Wampler, Ph.D.*
*Muhammad Ehsan ul Haque*
Norra Stationsgatan 61
SE-113 43 Stockholm
Tel: +46 (0)8- 120 120 00
Fax: +46 (0)8- 120 120 99