You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Srinivasan Rajivelu <sr...@gmail.com> on 2012/04/15 22:22:09 UTC

Running Unit Test Cases Fail in Hive

Hi All,
       After running ant package, if I run ant test fails,

I tried all,

ant package
ant clean package
ant -Djavac.debug=on package

I cannot run neither all test cases or positive test cases.

ant test

ant test -Dtestcase=TestCliDriver


Both fails,


And hive version that I am using is hive 0.8.1. and Operating System is
MacOSX Lion.

Error when I run ant test,

[junit] 2012-04-15 13:16:25.951 java[39626:1803] Unable to load realm info
from SCDynamicStore
    [junit] org.apache.thrift.transport.TTransportException: Could not
create ServerSocket on address 0.0.0.0/0.0.0.0:10000.
    [junit] at
org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:93)
    [junit] at
org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:75)
    [junit] at
org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
    [junit] at
org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:2994)
    [junit] at
org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:2970)
    [junit] at
org.apache.hadoop.hive.metastore.MetaStoreUtils$1.run(MetaStoreUtils.java:740)
    [junit] at java.lang.Thread.run(Thread.java:680)
    [junit] Tests run: 3, Failures: 0, Errors: 2, Time elapsed: 1.235 sec

And please tell me how much time it will take to run all test cases. And
this is blocking my work. Please help me with this issue.

-- 
Thanks & Regards,
Srinivasan
"Some People dream of success..
 While others wake up and work hard at it..I am the later."