Re: UnitTest did not pass during compile the latest hive code

2013-11-05 Thread 金杰
I modify the test code. And it passed the test. See the diff below, Could anyone fix it? diff --git hcatalog/core/src/test/java/org/apache/hcatalog/cli/TestUseDatabase.java hcatalog/core/src/test/java/org/apache/hcatalog/cli/TestUseDatabase.java index d164da3..6624849 100644 --- hcatalog/core/sr

Re: exception when build Hive from source then start Hive CLI

2013-11-05 Thread Zhang Xiaoyu
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 wrote: > Hi, all, >

Re: UnitTest did not pass during compile the latest hive code

2013-11-05 Thread 金杰
Thanks Tim & Thejas I trying to compile the latest code because I want to learn HIVE code. I have compiled HIVE successfully. But still have problem in running the tests. The test ./hcatalog/core/src/test/java/org/apache/hive/hcatalog/cli/TestUseDatabase.java failed to pass the junit test. we

Why hiveserver2 is much slower than hiveserver1?

2013-11-05 Thread B C
hi,   We are building ms sql cube by linkedserver connecting to hiveserver with Cloudera's ODBC driver.   There are two test results: 1. hiveserver1 running on 2CPUs, 8G mem, took about 8 hours 2. hiveserver2 running on 4CPUs, 16 mem, took about 13 hours and 27min (almost failed on machine with 2

exception when build Hive from source then start Hive CLI

2013-11-05 Thread Zhang Xiaoyu
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/D

aliases for histogram_numeric (a UDTF)

2013-11-05 Thread P Reeder
I'm trying to use histogram_numeric(), and output the results as a table with an x and y column, one row per bin. SELECT histogram_numeric(freight, 10) from flights produces an array of JSON objects: [{"x":25702.200152788293,"y":79849},{"x":2287471.0415704413,"y":866},{"x":5190680.02686567,"y":33

Re: UnitTest did not pass during compile the latest hive code

2013-11-05 Thread Thejas Nair
The new instructions for using maven are here - https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ I have updated the https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide with link to above document. But it still needs cleanup. On Tue, Nov 5, 2013 at 7:46 AM, Tim Chou w

Re: UnitTest did not pass during compile the latest hive code

2013-11-05 Thread Tim Chou
Hi Jie, Can you compile HIVE successfully now? You need to modify some settings according to your error information. Maybe you can use the release version to avoid the error. Tim 2013/11/5 金杰 > I got it. > > I need to run "mvn install -DskipTests" before I run "mvn install" > > Are there any

Re: UnitTest did not pass during compile the latest hive code

2013-11-05 Thread 金杰
I got it. I need to run "mvn install -DskipTests" before I run "mvn install" Are there any documents that I can follow to help me compile or reading hive code? The documents on https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide seems to be outdated. Best Regards 金杰 (Jay Jin) On

UnitTest did not pass during compile the latest hive code

2013-11-05 Thread 金杰
Hi, All When I try to compile the latest code of hive using "mvn install" I got these messages. How to pass these unit tests? Did I miss something? I was compiling the code on ubuntu 13.04 And my JAVA_HOME is set: $ echo $JAVA_HOME /usr/lib/jvm/java-6-oracle/ Running org.apache.hadoop.hive.ql.e