Thanks for replying, I was Digging into it, and I could fix that.
It was happening because Hive has upgraded to Jline2 but jline 0.94 exists
in the Hadoop lib.
I ended up following these steps (Which I found here
<https://cwiki.apache.org/confluence/display/Hive/Hive+on+Spark%3A+Getting+Started>
):


Delete jline from the Hadoop lib directory (it's only pulled in
transitively from ZooKeeper).
export HADOOP_USER_CLASSPATH_FIRST=true

and it solved the problem.

On Sat, Jun 6, 2015 at 8:04 AM, Slava Markeyev <slava.marke...@upsight.com>
wrote:

> What's the rest of that stack trace? Do you see a NoClassDefFoundError?
>
> -Slava
>
> On Fri, Jun 5, 2015 at 7:28 PM, James Pirz <james.p...@gmail.com> wrote:
>
>> I am trying to run Apache Hive 1.2.0 on Hadoop 2.6.0 on a cluster. My
>> hadoop cluster comes up fine (I start hdfs and yarn) and then I create
>> required tmp and warehouse directories in HDFS and I try to start Hive CLI
>> (I do not do anything with HCatalog or Hiveserver2) but I keep getting
>> errors related to metastore (See below). Replacing Hive 1.2.0 with Hive
>> 0.13, it just works fine.
>>
>> Is there anything changed regarding starting Hive 1.X on Hadoop 2.X from
>> Hive 0.X ? (This is the first time I am trying Hive on Hadoop 2)
>>
>> Exception in thread "main" java.lang.RuntimeException:
>> java.lang.RuntimeException: Unable to instantiate
>> org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
>> at
>> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:519)
>> at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
>> at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>> at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
>> Caused by: java.lang.RuntimeException: Unable to instantiate
>> org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
>> at
>> org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1523)
>> ….
>>
>
>
>
> --
>
> Slava Markeyev | Engineering | Upsight
>
> Find me on LinkedIn <http://www.linkedin.com/in/slavamarkeyev>
> <http://www.linkedin.com/in/slavamarkeyev>
>

Reply via email to