Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> exception when build Hive from source then start Hive CLI


Copy link to this message
-
Re: exception when build Hive from source then start Hive CLI
You can go to this page
https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ for
reference.
Best Regards
金杰 (Jay Jin)
On Thu, Nov 7, 2013 at 1:29 AM, Zhang Xiaoyu <[EMAIL PROTECTED]>wrote:

> Hi, Jay,
> Thanks for your reply. Do you know the way to build a Hive tarball from
> source? Hive recently move to maven from ant, but wiki still shows ant
> related command.
>
> Johnny
>
>
> On Wed, Nov 6, 2013 at 6:04 AM, 金杰 <[EMAIL PROTECTED]> wrote:
>
>> Hi, Xiaoyu
>>
>> You may run hive cli using maven exec plugin
>>
>> For example:
>>
>> jj@hellojinjie hive :) $ cd cli/
>> jj@hellojinjie cli :) $ mvn exec:java
>> -Dexec.mainClass=org.apache.hadoop.hive.cli.CliDriver
>>
>>
>>
>>
>> Best Regards
>> 金杰 (Jay Jin)
>>
>>
>> On Wed, Nov 6, 2013 at 11:11 AM, Zhang Xiaoyu <[EMAIL PROTECTED]>wrote:
>>
>>> so looks like jline jar is maven dependency which is pulled to ~/.m2
>>> folder. The question here is what is the right way to build a Hive tarball
>>> by maven command? looks like mvn clean install -DskipTests is not......
>>>
>>> Thanks,
>>> Johnny
>>>
>>>
>>> On Tue, Nov 5, 2013 at 6:14 PM, Zhang Xiaoyu <[EMAIL PROTECTED]>wrote:
>>>
>>>> Hi, all,
>>>> I am trying to build hive from source and start CLI. What I did is
>>>> (1) git clone the source
>>>>
>>>> (2) mvn clean install -DskipTests
>>>>
>>>> (3) cp */target/*.jar lib/
>>>> ---- this step basically copy all jar files to lib
>>>>
>>>> (4) start cli by ./bin/hive
>>>>
>>>> I got exception
>>>> ./bin/hive: line 80: [:
>>>> /Users/admin/Documents/hive/lib/hive-exec-0.13.0-SNAPSHOT-tests.jar: binary
>>>> operator expected
>>>> ./bin/hive: line 85: [:
>>>> /Users/admin/Documents/hive/lib/hive-metastore-0.13.0-SNAPSHOT-tests.jar:
>>>> binary operator expected
>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>>> jline/ArgumentCompletor$ArgumentDelimiter
>>>> at java.lang.Class.forName0(Native Method)
>>>>  at java.lang.Class.forName(Class.java:270)
>>>> at org.apache.hadoop.util.RunJar.main(RunJar.java:205)
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> jline.ArgumentCompletor$ArgumentDelimiter
>>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>>>  at java.security.AccessController.doPrivileged(Native Method)
>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>> ... 3 more
>>>>
>>>>
>>>> Anyone has idea what did I miss? BTW, I am using JDK7, but it doesn't
>>>> looks like the root cause.
>>>>
>>>> Thanks,
>>>> Johnny
>>>>
>>>>
>>>
>>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB