com.mysql.jdbc.exceptions.jdbc4.CommunicationsE...

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
插件的问题,将mysql-connector-java-5.1.21-bin.jar插件换成mysql-connector-java-5.1.12.jar
FAILED: Error in metadata: javax.jdo.JDOFatalInternalException: Error creating transactional connection factory
插件的问题,将mysql-connector-java-5.1.12.jar换成mysql-connector-java-5.1.15.jar,再将hive-site.xml文件内容全部删掉,只输入需要的内容即可。具体如下:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<configuration>
<property>  
  <name>javax.jdo.option.ConnectionURL</name>  
  <value>jdbc:mysql://192.168.0.118:3306/hive?createDatabaseIfNotExist=true</value>  
  <description>JDBC connect string for a JDBC metastore</description>  
</property>  
<property>  
  <name>javax.jdo.option.ConnectionDriverName</name>  
  <value>com.mysql.jdbc.Driver</value>  
  <description>Driver class name for a JDBC metastore</description>  
</property>  
<property>  
  <name>javax.jdo.option.ConnectionUserName</name>  
  <value>hive</value>  
  <description>username to use against metastore database</description>  
</property>  
<property>  
  <name>javax.jdo.option.ConnectionPassword</name>  
  <value>123456</value>  
  <description>password to use against metastore database</description>  
</property>
</configuration>


FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException: Access denied for user 'hive'@'ubuntu118' (using password: YES)
修改hive数据库权限。

FAILED: Error in metadata: MetaException(message:Got exception: java.net.ConnectException Call to ubuntu118/192.168.0.118:9000 failed on connection exception: java.net.ConnectException: Connection refused)
没有启动hadoop集群,因为hive的处理方式是通过hadoop集群中的map-reducer进行处理的。

/usr/lib/sudo/sudoers.so must be only be writable by owner
chown 777 sudo/


你可能感兴趣的:(link,failure,communications)