hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashutosh Chauhan <hashut...@apache.org>
Subject Re: Does anyone get past TestEmbeededHiveMetaStore in ant test?
Date Fri, 03 Dec 2010 20:14:18 GMT
This happens because you have a slower machine :) In this test
HiveMetaStore is brought up in separate thread and then current thread
sleeps for 5 secs, hoping MetaStore will be up by then.  On heavily
loaded machine (or slow machines) 5 seconds may be too less. Change
TestRemoteHiveMetaStore.java line number 51:
 -Thread.sleep(5000);
 +Thread.sleep(20000);
and your test should pass.

Hope it helps,
Ashutosh
On Fri, Dec 3, 2010 at 10:50, Edward Capriolo <edlinuxguru@gmail.com> wrote:
> test:
>    [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>    [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 34.192 sec
>    [junit] BR.recoverFromMismatchedToken
>    [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>    [junit] Running metastore!
>    [junit] Running metastore!
>    [junit] org.apache.thrift.transport.TTransportException: Could not
> create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>    [junit]     at
> org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>    [junit]     at
> org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>    [junit]     at
> org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>    [junit]     at
> org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>    [junit]     at
> org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>    [junit]     at java.lang.Thread.run(Thread.java:619)
>    [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>    [junit] Test
> org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED
> (crashed)
>
> Does this test pass for anyone? If so did you need to do anything
> network wise to make this happen?
>
> Edward
>

Mime
View raw message