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

2013-11-07 Thread Thejas Nair
You can use System.getProperty("test.tmp.dir") instead of '/tmp' . That is more portable. It would be wonderful if you can create a new issue in hive jira ( https://issues.apache.org/jira/browse/HIVE) and attach a patch with this change! On Tue, Nov 5, 2013 at 9:02 PM, 金杰 wrote: > I modify the

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: 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

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