hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guo Ruijing (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-6471) Hiveserver2 can retry to connect to Hive-metastore when restart
Date Thu, 20 Feb 2014 02:21:19 GMT
Guo Ruijing created HIVE-6471:
---------------------------------

             Summary: Hiveserver2 can retry to connect to Hive-metastore when restart
                 Key: HIVE-6471
                 URL: https://issues.apache.org/jira/browse/HIVE-6471
             Project: Hive
          Issue Type: Improvement
          Components: HiveServer2
    Affects Versions: 0.12.0
            Reporter: Guo Ruijing


Hiveserver2 can retry to connect to Hive-metastore when restart.

If Hive-metastore restart after Hiveserver2, Hiveserver cannot start as following. We may
enhance for hiveserver2 to retry to connect hive-metastore

2014-02-19 21:14:44,049 WARN  hive.metastore (HiveMetaStoreClient.java:open(291)) - Failed
to connect to the MetaStore Server...
2014-02-19 21:14:45,057 WARN  hive.metastore (HiveMetaStoreClient.java:open(291)) - Failed
to connect to the MetaStore Server...
2014-02-19 21:14:46,058 WARN  hive.metastore (HiveMetaStoreClient.java:open(291)) - Failed
to connect to the MetaStore Server...
2014-02-19 21:14:47,063 ERROR service.CompositeService (CompositeService.java:start(74)) -
Error starting services HiveServer2
org.apache.hive.service.ServiceException: Unable to connect to MetaStore!
	at org.apache.hive.service.cli.CLIService.start(CLIService.java:85)
	at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
	at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:73)
	at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:103)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Caused by: MetaException(message:Could not connect to meta store using any of the URIs provided.
Most recent failure: org.apache.thrift.transport.TTransportException: java.net.ConnectException:
Connection refused
	at org.apache.thrift.transport.TSocket.open(TSocket.java:185)
	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:283)
	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:164)
	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:104)
	at org.apache.hive.service.cli.CLIService.start(CLIService.java:82)
	at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
	at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:73)
	at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:103)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:212)




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message