首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >com.mysql.jdbc.exceptions.jdbc4.CommunicationsE...

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

作者头像
闵开慧
发布于 2018-03-30 11:45:56
发布于 2018-03-30 11:45:56
1.7K0
举报
文章被收录于专栏:闵开慧闵开慧

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文件内容全部删掉,只输入需要的内容即可。具体如下:

代码语言:javascript
复制
     <?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/

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档