我是一个简单的2节点cloudera CDH5群集,而在从机中,我设置了Hive& amp;色调。
我可以通过CLI viz在hive中工作。创建数据库和表,我无法在hue中配置hive / beeswax,可能是Hive Server2死机的原因。请帮我解决这个问题。
以下是一些细节:
的/ etc /主机
192.168.1.190主人 192.168.1.191奴隶
/etc/hive/conf/hive-site.xml
<configuration>
<!-- Hive Execution Parameters -->
<property>
<name>fs.default.name</name>
<value>hdfs://master:8020</value>
</property>
<property>
<name>mapred.job.tracker</name>
<value>master:8021</value>
</property>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://slave/metastore</value>
<description>the URL of the MySQL database</description>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>hive</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>mypassword</value>
</property>
<property>
<name>datanucleus.autoCreateSchema</name>
<value>false</value>
</property>
<property>
<name>datanucleus.fixedDatastore</name>
<value>true</value>
</property>
<property>
<name>hive.metastore.uris</name>
<value>thrift://slave:9083</value>
<description>IP address (or fully-qualified domain name) and port of the metastore host</description>
</property>
</configuration>
错误日志:
/var/log/hive/hive-server2.log
2015-04-16 19:57:19,098 WARN [main]:hive.metastore (HiveMetaStoreClient.java:open(355)) - 无法连接到 MetaStore Server ... 2015-04-16 19:57:20,148 WARN [主要]: hive.metastore(HiveMetaStoreClient.java:open(355)) - 无法 连接到MetaStore服务器...... 2015-04-16 19:57:21,150警告 [main]:hive.metastore(HiveMetaStoreClient.java:open(355)) - 失败 连接到MetaStore服务器... 2015-04-16 19:57:22,174警告 [main]:server.HiveServer2(HiveServer2.java:startHiveServer2(112)) - 尝试1启动HiveServer2时出错,将在60秒后重试 java.lang.RuntimeException:java.lang.RuntimeException:无法执行 实例化org.apache.hadoop.hive.metastore.HiveMetaStoreClient at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:367) 在 org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:313) 在 org.apache.hive.service.cli.session.SessionManager.applyAuthorizationConfigPolicy(SessionManager.java:113) 在 org.apache.hive.service.cli.session.SessionManager.init(SessionManager.java:74) 在 org.apache.hive.service.CompositeService.init(CompositeService.java:59) 在org.apache.hive.service.cli.CLIService.init(CLIService.java:108) 在 org.apache.hive.service.CompositeService.init(CompositeService.java:59) 在 org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:68) 在 org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:100) 在 org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:149) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(Method.java:597)at org.apache.hadoop.util.RunJar.main(RunJar.java:212)引起: java.lang.RuntimeException:无法实例化 org.apache.hadoop.hive.metastore.HiveMetaStoreClient at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1426) 在 org.apache.hadoop.hive.metastore.RetryingMetaStoreClient。(RetryingMetaStoreClient.java:63) 在 org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:73) 在 org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2562) 在org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2581)at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:361) ... 14更多引起:java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 方法)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 在 org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1424) ... 19更多引起:MetaException(消息:无法连接到 元商店使用提供的任何URI。最近的失败: org.apache.thrift.transport.TTransportException: java.net.ConnectException:拒绝连接 org.apache.thrift.transport.TSocket.open(TSocket.java:185)at at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:347) 在 org.apache.hadoop.hive.metastore.HiveMetaStoreClient。(HiveMetaStoreClient.java:216) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 方法)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 在 org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1424) 在 org.apache.hadoop.hive.metastore.RetryingMetaStoreClient。(RetryingMetaStoreClient.java:63) 在 org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:73) 在 org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2562) 在org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2581)at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:361) 在 org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:313) 在 org.apache.hive.service.cli.session.SessionManager.applyAuthorizationConfigPolicy(SessionManager.java:113) 在 org.apache.hive.service.cli.session.SessionManager.init(SessionManager.java:74) 在 org.apache.hive.service.CompositeService.init(CompositeService.java:59) 在org.apache.hive.service.cli.CLIService.init(CLIService.java:108) 在 org.apache.hive.service.CompositeService.init(CompositeService.java:59) 在 org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:68) 在 org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:100) 在 org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:149) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(Method.java:597)at org.apache.hadoop.util.RunJar.main(RunJar.java:212)引起: java.net.ConnectException:拒绝连接 java.net.PlainSocketImpl.socketConnect(Native Method)at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) 在java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)at java.net.Socket.connect(Socket.java:529)at org.apache.thrift.transport.TSocket.open(TSocket.java:180)... 26 更多) org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:393) 在 org.apache.hadoop.hive.metastore.HiveMetaStoreClient。(HiveMetaStoreClient.java:216) ... 24更多2015-04-16 19:58:25,074 INFO [主要]: session.SessionState(SessionState.java:start(381)) - 没有Tez会话 此时需要。 hive.execution.engine =先生。 2015年4月16日 19:58:26,639 ERROR [Thread-6]:thrift.ThriftCLIService (ThriftBinaryCLIService.java:run(115)) - 错误: org.apache.thrift.transport.TTransportException:无法创建 ServerSocket的地址为0.0.0.0/0.0.0.0:10000。在 org.apache.thrift.transport.TServerSocket。(TServerSocket.java:93) 在 org.apache.thrift.transport.TServerSocket。(TServerSocket.java:79) 在 org.apache.hive.service.auth.HiveAuthFactory.getServerSocket(HiveAuthFactory.java:229) 在 org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:89) 在java.lang.Thread.run(Thread.java:662)
非常感谢你: - )