前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >com.mysql.jdbc.exceptions.jdbc4.CommunicationsE...

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

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

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 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
云数据库 SQL Server
腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档