设为首页 加入收藏

TOP

hive错误汇总
2019-04-30 01:03:56 】 浏览:209
Tags:hive 错误 汇总

1,hive启动不成功。
关闭防火墙,
启动hive前提是启动hadoop集群

2,hive写入数据,mysql不显示(没有用mysql作为源数据存储)
conf设置问题,重新检查!!

3,beeline 的拒绝连接问题
首先检查源数据存储是不是mysql
完事之后

Hive交互shell
cd /export/servers/hive-1.1.0-cdh5.14.0
bin/hive

查看所有的数据库
hive (default)> show databases;

创建一个数据库
hive (default)> create database myhive;
使用该数据库并创建数据库表
hive (default)> use myhive;
hive (myhive)> create table test(id int,name string);

以上命令操作完成之后,一定要确认mysql里面出来一个数据库hive

注意:如果使用beeline方式连接hiveserver2,一定要保证hive在mysql当中的元数据库已经创建成功,不然就会拒绝连接

4,beeline连接错误

Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status.
Error: Could not open client transport with JDBC Uri: jdbc:hive2://node03.hadoop.com:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)

检查mysql是否启动成功:service mysqld status
必须先启动hive2,再使用beeline

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Hive踩坑之The specified datasto.. 下一篇HIVE metastore Duplicate key na..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目