Java.net. ConnectException: to0.0.0.0: 10020 failed

Source: Internet
Author: User
When selectcount (*) fromtable_name is executed in HiveCLI on the DataNode node, the following error occurs: java. io. IOException: java.net. ConnectException: Failed: 10020 failedonconnectionexception: java.net. ConnectException:

If you run select count (*) from table_name query in Hive CLI of the DataNode node, the following error occurs: 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:

An error is returned when you execute select count (*) from table_name query in Hive CLI of the DataNode node:
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; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefusedat org.apache.hadoop.mapred.ClientServiceDelegate.invoke(ClientServiceDelegate.java:331)at org.apache.hadoop.mapred.ClientServiceDelegate.getJobStatus(ClientServiceDelegate.java:416)at org.apache.hadoop.mapred.YARNRunner.getJobStatus(YARNRunner.java:522)at org.apache.hadoop.mapreduce.Cluster.getJob(Cluster.java:183)at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:580)at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:578)at java.security.AccessController.doPrivileged(Native Method)at javax.security.auth.Subject.doAs(Subject.java:416)at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)at org.apache.hadoop.mapred.JobClient.getJobUsingCluster(JobClient.java:578)at org.apache.hadoop.mapred.JobClient.getJob(JobClient.java:596)at org.apache.hadoop.hive.ql.exec.mr.HadoopJobExecHelper.progress(HadoopJobExecHelper.java:288)at org.apache.hadoop.hive.ql.exec.mr.HadoopJobExecHelper.progress(HadoopJobExecHelper.java:547)at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.java:426)at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.java:136)at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:153)at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85)at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1472)at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1239)at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1057)at org.apache.hadoop.hive.ql.Driver.run(Driver.java:884)at org.apache.hadoop.hive.ql.Driver.run(Driver.java:874)at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:268)at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:220)at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:423)at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:792)at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:686)at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:616)at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Access the port from the error message 10020Can we see that DataNode needs to be accessed? MapReduce JobHistory Server. If it is not modified, use the default value :? 0.0.0.0:10020 . Need to modify the configuration file? mapred-site.xml?? :
 
  
   
Mapreduce. jobhistory. address
          
  
  
   
Master. Hadoop: 10020
  
 
Then execute the query in Hive shell. ------? EOF? @ Michael Sun? ------

Original article address: java.net. ConnectException: to 0.0.0.0: 10020 failed. Thank you for sharing it with me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.