Could not establish connection to hadoop0:10000/default: Connection refused: connect
来源:互联网 发布:网络歌手张书仪 编辑:程序博客网 时间:2024/05/23 13:55
今天在完成Hive的安装配置后,通过java客户端连接Hive进行操作时抛了一个异常:
Exception in thread "main" java.sql.SQLException: Could not establish connection to hadoop0:10000/default: java.net.ConnectException: Connection refused: connect
at org.apache.hadoop.hive.jdbc.HiveConnection.<init>(HiveConnection.java:116)
at org.apache.hadoop.hive.jdbc.HiveDriver.connect(HiveDriver.java:104)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at hive.HiveConn.main(HiveConn.java:12)
弄了半天原来是未启动hive的服务!于是乎执行命令
hive --service hiveserver &
启动服务!ok搞定!
注:通过java远程访问hive时需要在linux下启动服务;执行命令:
hive --service hiveserver &
(执行完该命令后服务会启动,光标会一直处于闪烁状态,可以回车返回linux命令行)
0 0
- Could not establish connection to hadoop0:10000/default: Connection refused: connect
- Could not establish connection to hadoop0:10000/default: Connection refused: connect
- QWSSocket::connectToLocalFile could not connect:: Connection refused
- sqlalchemy.exc.OperationalError: (OperationalError) could not connect to server: Connection refused
- Open edXDevstack启动出现:could not connect to localhost:27017: [Errno 111] Connection refused.
- 解决PostgreSQL远程访问报错could not connect to server:Connection refused (0x0000274D/10061)
- Redis 服务端配置——Could not connect to Redis at 127.0.0.1:6379: Connection refused
- Redis连接时报错:Could not connect to Redis at 127.0.0.1:6379: Connection refused
- Linux连接redis客户端出现Could not connect to Redis at 127.0.0.1:6379: Connection refused
- pexpect.pxssh.ExceptionPxssh: Could not establish connection to host
- WordPress could not establish a secure connection to WordPress.org.
- Redis启动失败 服务端配置——Could not connect to Redis at 127.0.0.1:6379: Connection refused
- PostgreSQL安装后Navicat客户端连接报错:Could not connect to server:Connection refused(0x00002740/10061)
- Could not connect to '10.7.100.182' (port 22): Connection failed
- Could not connect to '127.0.0.1' (port 22): Connection failed.
- Could not connect to '10.203.87.140' (port 22): Connection faile
- connect to host **** port 22: Connection refused
- Connect : Connection refused
- 一个极简单的 块设备驱动 的编写
- MongoDB+Struts2+JQuery.formValidator插件的web应用示例
- iOS动画-UIKitAnimation
- 程序员的路,谈何容易?
- 封装的好处
- Could not establish connection to hadoop0:10000/default: Connection refused: connect
- 远程登录linux,使用vi和less查看文本出现中文乱码,使用cat正常
- 题目及解答:利用常量、枚举实现访问权限的设置
- 负数在java中的存储和读取过程
- NHibernate中自带ID的generator的含义
- 跟我一起写 Makefile
- spritex工具的使用方法
- Valid Parentheses
- iOS地球坐标,火星坐标,百度坐标互转