Hive unit test errors

2013-09-03 Thread Eric Chu
Hi,

I'm trying to run unit tests on Hive 11 (with a few patches such as 4619,
4003, 4403, 4900, 3632, 4942) and encountering compile-test errors. I got
the same thing when I ran on Trunk or just the 11 branch. Is there
something I'm missing? Note that I could build and run Hive w/out problems.

*Commands:*
export ANT_OPTS=-XX:MaxPermSize=512M
ant very-clean package test -logfile ant.log

*Error (Attached is full log):*
compile-test:
 [echo] Project: ql
[javac] Compiling 92 source files to /hive/build/ql/test/classes
[javac] /hive/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java:118:
cannot find symbol
[javac] symbol  : class MiniMrShim
[javac] location: interface org.apache.hadoop.hive.shims.HadoopShims
[javac]   private HadoopShims.MiniMrShim mr = null;
[javac]  ^
[javac] /hive/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java:284:
cannot find symbol
[javac] symbol  : method
getMiniMrCluster(org.apache.hadoop.hive.conf.HiveConf,int,java.lang.String,int)
[javac] location: interface org.apache.hadoop.hive.shims.HadoopShims
[javac]   mr = ShimLoader.getHadoopShims().getMiniMrCluster(conf,
4, getHdfsUriString(fs.getUri().toString()), 1);
[javac]   ^
[javac]
/hive/ql/src/test/org/apache/hadoop/hive/ql/exec/TestFunctionRegistry.java:57:
cannot find symbol
[javac] symbol  : variable decimalTypeInfo
[javac] location: class
org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory
[javac] implicit(TypeInfoFactory.intTypeInfo,
TypeInfoFactory.decimalTypeInfo, true);



Thanks,

Eric


test errors

2012-06-11 Thread Namit Jain
I am seeing the following errors on a fresh hive trunk ?

[junit] Running org.apache.hadoop.hive.thrift.TestZooKeeperTokenStore
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Test org.apache.hadoop.hive.thrift.TestZooKeeperTokenStore FAILED 
(crashed)


Is anyone else getting the same error ?

Thanks,
-namit



Re: test errors

2012-06-11 Thread Ashutosh Chauhan
Works for me.

$ svn up
svn At revision 1348932.
$ svn st
$ ant clean package test -Dtestcase=TestZooKeeperTokenStore

 [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 1.783 sec

Any logs to look at?

Ashutosh
On Mon, Jun 11, 2012 at 5:33 AM, Namit Jain nj...@fb.com wrote:

 I am seeing the following errors on a fresh hive trunk ?

[junit] Running org.apache.hadoop.hive.thrift.TestZooKeeperTokenStore
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Test org.apache.hadoop.hive.thrift.TestZooKeeperTokenStore
 FAILED (crashed)


 Is anyone else getting the same error ?

 Thanks,
 -namit




Re: test errors

2012-06-11 Thread Kevin Wilfong
I was running into this too.  For me, it was a permissions problem, the
following directory was owned by root

/tmp/zookeeper_0/version-2/

Changing the ownership to me fixed the problem.

On 6/11/12 9:49 AM, Ashutosh Chauhan hashut...@apache.org wrote:

Works for me.

$ svn up
svn At revision 1348932.
$ svn st
$ ant clean package test -Dtestcase=TestZooKeeperTokenStore

 [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 1.783 sec

Any logs to look at?

Ashutosh
On Mon, Jun 11, 2012 at 5:33 AM, Namit Jain nj...@fb.com wrote:

 I am seeing the following errors on a fresh hive trunk ?

[junit] Running org.apache.hadoop.hive.thrift.TestZooKeeperTokenStore
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Test org.apache.hadoop.hive.thrift.TestZooKeeperTokenStore
 FAILED (crashed)


 Is anyone else getting the same error ?

 Thanks,
 -namit