---
title: "java.net.ConnectException: to 0.0.0.0:10020 failed on connection exception"
author: "sjsky"
date: "2014-04-14T23:36:17Z"
tags: []
categories: ["开源软件"]
slug: "java-net-connectexception-to-0-0-0-0-10020-failed-on-connection-exception"
draft: false
lastmod: "2014-04-14T23:36:17Z"
id: 2046016
url: "https://sjsky.iteye.com/blog/2046016"
---

在DataNode节点中的Hive CLI中执行 select count(\*) from table\_name 查询时报错：

java.io.IOException: java.net.ConnectException: Call From Slave7.Hadoop/192.168.8.207 to 0.0.0.0:10020 failed on connection exception: java.net.ConnectException: Connection refused; 

解决办法详见：[http://www.micmiu.com/bigdata/hive/hive-connect-exception-to-10020/](http://www.micmiu.com/bigdata/hive/hive-connect-exception-to-10020/)