Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 64A0610269 for ; Thu, 7 Nov 2013 01:46:14 +0000 (UTC) Received: (qmail 58948 invoked by uid 500); 7 Nov 2013 01:46:12 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 58904 invoked by uid 500); 7 Nov 2013 01:46:12 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 58896 invoked by uid 99); 7 Nov 2013 01:46:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Nov 2013 01:46:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hellojinjie@gmail.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Nov 2013 01:46:05 +0000 Received: by mail-oa0-f42.google.com with SMTP id l6so445334oag.29 for ; Wed, 06 Nov 2013 17:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bdqerM1ssXkJqMG6pm1/gO8HTuQRAFT4R6DSe/E50xQ=; b=W1pNArgFr4hupyKWzCwIAocL9oRYQFqZ54f/49RsHFC5aIzDhUKxjkfBzDgvUgUKxE /g7DVvrtRs0+FY/gW62uC22Q+yaK/MJDI9SNX07f3nnMQowQDswRaPouglXJaCvTUkJw BdsYZPm0Q3sd2Z4pGvZf4e0a9fOoWHlcKtygFLuWjyImzmeRessr125+poz/h2ely1C+ 0qIaEQx4FBTCNl/uHeDOHB6VkLmP8fC/mVubq6Qr3i13c+REmbag5sPpZFQ8sUUPiGsK O7P7loc3U6+Owlcz3bsvAtHk9kmei01Zkh2ugNJkTa2wN0ZX0a/xd2NojzjeCDCBLRkD 718A== MIME-Version: 1.0 X-Received: by 10.182.117.195 with SMTP id kg3mr4826615obb.17.1383788744786; Wed, 06 Nov 2013 17:45:44 -0800 (PST) Received: by 10.182.156.37 with HTTP; Wed, 6 Nov 2013 17:45:44 -0800 (PST) In-Reply-To: References: Date: Thu, 7 Nov 2013 09:45:44 +0800 Message-ID: Subject: Re: exception when build Hive from source then start Hive CLI From: =?UTF-8?B?6YeR5p2w?= To: user@hive.apache.org Content-Type: multipart/alternative; boundary=089e0149c50693ccfa04ea8c6c60 X-Virus-Checked: Checked by ClamAV on apache.org --089e0149c50693ccfa04ea8c6c60 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You can go to this page https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ for reference. Best Regards =E9=87=91=E6=9D=B0 (Jay Jin) On Thu, Nov 7, 2013 at 1:29 AM, Zhang Xiaoyu wrot= e: > 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, =E9=87=91=E6=9D=B0 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=3Dorg.apache.hadoop.hive.cli.CliDriver >> >> >> >> >> Best Regards >> =E9=87=91=E6=9D=B0 (Jay Jin) >> >> >> On Wed, Nov 6, 2013 at 11:11 AM, Zhang Xiaoyu = 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 tarb= all >>> by maven command? looks like mvn clean install -DskipTests is not...... >>> >>> Thanks, >>> Johnny >>> >>> >>> On Tue, Nov 5, 2013 at 6:14 PM, Zhang Xiaoyu = 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: b= inary >>>> operator expected >>>> ./bin/hive: line 85: [: >>>> /Users/admin/Documents/hive/lib/hive-metastore-0.13.0-SNAPSHOT-tests.j= ar: >>>> 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 >>>> >>>> >>> >> > --089e0149c50693ccfa04ea8c6c60 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can go to this = page=C2=A0https://cwiki.apache.org/confluenc= e/display/Hive/HiveDeveloperFAQ=C2=A0for reference.


B= est Regards
=E9=87= =91=E6=9D=B0 (Jay Jin)


On Thu, Nov 7, 2013 at 1:29 AM, Zhang Xi= aoyu <zhangxiaoyu912@gmail.com> 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, bu= t wiki still shows ant related command.

Johnny

On Wed, Nov 6, 2013 at 6:04 AM, =E9=87=91= =E6=9D=B0 <hellojinjie@gmail.com> wrote:
Hi, Xiaoyu

You may run hive cli using= maven exec plugin

For example:

jj@hellojinjie hive = :) $ cd cli/
jj@hellojinjie cli :) $ mvn exec:j= ava -Dexec.mainClass=3Dorg.apache.hadoop.hive.cli.CliDriver


<= /div>


Best Re= gards
=E9=87= =91=E6=9D=B0 (Jay Jin)


On Wed, Nov 6, 2013 at 11:11 AM, Zhang X= iaoyu <zhangxiaoyu912@gmail.com> wrote:
so looks like jline jar is maven dependency which is pulle= d to ~/.m2 folder. The question here is what is the right way to build a Hi= ve tarball by maven command? looks like mvn clean install -DskipTests is no= t......

Thanks,
Johnny


On Tue, Nov 5, 2013 at 6:14= PM, Zhang Xiaoyu <zhangxiaoyu912@gmail.com> wrote:
Hi, all,
I am trying to= build hive from source and start CLI. What I did is
(1) git clon= e the source

(2) mvn clean install -DskipTests

(3) cp */target/*.jar lib/
---- this step basicall= y 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: j= line/ArgumentCompletor$ArgumentDelimiter
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forNam= e(Class.java:270)
at= org.apache.hadoop.util.RunJar.main(RunJar.java:205)
Caused by: j= ava.lang.ClassNotFoundException: jline.ArgumentCompletor$ArgumentDelimiter<= /div>
at java.net.URLClassLoade= r$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessCo= ntroller.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:3= 54)
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 l= ooks like the root cause.

Thanks,
Johnny=





--089e0149c50693ccfa04ea8c6c60--