Caused by: java.net.ConnectException: Call From master/192.168.199.130 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.

1:安装好hive,准备启动的时候出现下面的错误(由于hive是基于Hadoop的,所以必须先将你的集群启动起来,我就是没有启动集群,直接启动hive导致的错误):

 1 [[email protected] bin]# ./hive
 2
 3 Logging initialized using configuration in jar:file:/home/hadoop/soft/apache-hive-1.2.1-bin/lib/hive-common-1.2.1.jar!/hive-log4j.properties
 4 Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException: Call From master/192.168.199.130 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
 5     at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:522)
 6     at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
 7     at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
 8     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 9     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
10     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11     at java.lang.reflect.Method.invoke(Method.java:606)
12     at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
13     at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
14 Caused by: java.net.ConnectException: Call From master/192.168.199.130 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
15     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
16     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
17     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
18     at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
19     at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:791)
20     at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:731)
21     at org.apache.hadoop.ipc.Client.call(Client.java:1473)
22     at org.apache.hadoop.ipc.Client.call(Client.java:1400)
23     at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)
24     at com.sun.proxy.$Proxy17.getFileInfo(Unknown Source)
25     at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:752)
26     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
27     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
28     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
29     at java.lang.reflect.Method.invoke(Method.java:606)
30     at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
31     at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
32     at com.sun.proxy.$Proxy18.getFileInfo(Unknown Source)
33     at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1977)
34     at org.apache.hadoop.hdfs.DistributedFileSystem$18.doCall(DistributedFileSystem.java:1118)
35     at org.apache.hadoop.hdfs.DistributedFileSystem$18.doCall(DistributedFileSystem.java:1114)
36     at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
37     at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1114)
38     at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1400)
39     at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:596)
40     at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:554)
41     at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:508)
42     ... 8 more
43 Caused by: java.net.ConnectException: Connection refused
44     at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
45     at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
46     at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
47     at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:530)
48     at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:494)
49     at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:608)
50     at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:706)
51     at org.apache.hadoop.ipc.Client$Connection.access$2800(Client.java:369)
52     at org.apache.hadoop.ipc.Client.getConnection(Client.java:1522)
53     at org.apache.hadoop.ipc.Client.call(Client.java:1439)
54     ... 28 more
55 [[email protected] bin]# 

2:启动你的集群,然后再启动你的hive再次尝试:

 1 [[email protected] bin]# start-dfs.sh
 2 Starting namenodes on [master]
 3 master: starting namenode, logging to /home/hadoop/soft/hadoop-2.6.4/logs/hadoop-root-namenode-master.out
 4 master: starting datanode, logging to /home/hadoop/soft/hadoop-2.6.4/logs/hadoop-root-datanode-master.out
 5 slaver2: starting datanode, logging to /home/hadoop/soft/hadoop-2.6.4/logs/hadoop-root-datanode-slaver2.out
 6 slaver1: starting datanode, logging to /home/hadoop/soft/hadoop-2.6.4/logs/hadoop-root-datanode-slaver1.out
 7 Starting secondary namenodes [master]
 8 master: starting secondarynamenode, logging to /home/hadoop/soft/hadoop-2.6.4/logs/hadoop-root-secondarynamenode-master.out
 9 [[email protected] bin]# start-yarn.sh
10 starting yarn daemons
11 starting resourcemanager, logging to /home/hadoop/soft/hadoop-2.6.4/logs/yarn-hadoop-resourcemanager-master.out
12 slaver1: starting nodemanager, logging to /home/hadoop/soft/hadoop-2.6.4/logs/yarn-root-nodemanager-slaver1.out
13 slaver2: starting nodemanager, logging to /home/hadoop/soft/hadoop-2.6.4/logs/yarn-root-nodemanager-slaver2.out
14 master: starting nodemanager, logging to /home/hadoop/soft/hadoop-2.6.4/logs/yarn-root-nodemanager-master.out
15 [[email protected] bin]# jps
16 23933 ResourceManager
17 24081 NodeManager
18 23391 SecondaryNameNode
19 22992 NameNode
20 24147 Jps

3:启动完集群以后再次启动hive的时候依旧还报错,不过是新的错误,如下所示,解决方法见下篇:

 1 [[email protected]ster bin]# ls
 2 beeline  ext  hive  hive-config.sh  hiveserver2  metatool  schematool
 3 [[email protected] bin]# clear
 4 ls
 5 [[email protected] bin]# ls
 6 beeline  ext  hive  hive-config.sh  hiveserver2  metatool  schematool
 7 [[email protected] bin]# ./hive
 8
 9 Logging initialized using configuration in jar:file:/home/hadoop/soft/apache-hive-1.2.1-bin/lib/hive-common-1.2.1.jar!/hive-log4j.properties
10 [ERROR] Terminal initialization failed; falling back to unsupported
11 java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
12     at jline.TerminalFactory.create(TerminalFactory.java:101)
13     at jline.TerminalFactory.get(TerminalFactory.java:158)
14     at jline.console.ConsoleReader.<init>(ConsoleReader.java:229)
15     at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)
16     at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)
17     at org.apache.hadoop.hive.cli.CliDriver.setupConsoleReader(CliDriver.java:787)
18     at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:721)
19     at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
20     at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
21     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
22     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
23     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
24     at java.lang.reflect.Method.invoke(Method.java:606)
25     at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
26     at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
27
28 Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
29     at jline.console.ConsoleReader.<init>(ConsoleReader.java:230)
30     at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)
31     at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)
32     at org.apache.hadoop.hive.cli.CliDriver.setupConsoleReader(CliDriver.java:787)
33     at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:721)
34     at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
35     at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
36     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
37     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
38     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
39     at java.lang.reflect.Method.invoke(Method.java:606)
40     at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
41     at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
42 [[email protected] bin]# 

停更......

2017-12-10 10:59:53

时间: 2024-12-18 13:19:29

Caused by: java.net.ConnectException: Call From master/192.168.199.130 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.的相关文章

Call From master/192.168.128.135 to master:8485 failed on connection exception: java.net.ConnectException: Connection refused

hadoop集群搭建了ha,初次启动正常,最近几天启动时偶尔发现,namenode1节点启动后一段时间(大约10几秒-半分钟左右),namenode1上namenode进程停掉,查看日志: 1 2017-08-28 21:54:37,617 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: slave1/192.168.128.136:8485. Already tried 9 time(s); retry policy

Hadoop Eclipse远程连接出现:Error:Call to /10.10.10.10:9000 failed on local exception: java.io.EOFException

异常截图: 原因很简单,Hadoop对应的eclipse插件jar包版本不对,更换至响应版本即可. Hadoop Eclipse远程连接出现:Error:Call to /10.10.10.10:9000 failed on local exception: java.io.EOFException,布布扣,bubuko.com

ls: Call From hdoop2/192.168.18.87 to hdoop2:8020 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see

场景:  预发环境中,同事已经搭建了一套hadoop集群,由于版本与所需不符,所以需要替换版本 问题描述: 在配置文件都准确的情况下,启动hadoop,出现以下报错: 启动之前初始化:   初始化目录跟配置文件目录不一致 hdfs  namenode -format [[email protected] hadoop-2.8.5]# hadoop dfs -ls /DEPRECATED: Use of this script to execute hdfs command is deprecat

Call to localhost/127.0.0.1:9000 failed on connection exception:java.net.ConnectException的解决方案

Call to localhost/127.0.0.1:9000 failed on connection exception:java.net.ConnectException的解决方案 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 在启动hadoop时,出现了如下错误: Call From java.net.UnknownHostException: ubuntu-larntin: ubuntu-larntin to localhost:90

格式化namenode时 报错 No Route to Host from node1/192.168.1.111 to node3:8485 failed on socket timeout exception: java.net.NoRouteToHostException: No route to host

17/08/03 16:06:05 FATAL namenode.NameNode: Failed to start namenode. org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 successful responses: 192.168.1.114:8485: false 1 exceptions thrown: 192.1

CRITICAL: VIP 192.168.1.100 not found on Master!

1.环境描述MHA MariaDB 10.1 2.报错信息MHA管理报错信息如下:tail -f /var/log/masterha/manager.logCRITICAL: VIP 192.168.1.100 not found on Master!Mon Sep 10 10:08:01 2018 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln226] Failed to get master_ip_failover_scri

Caused by: java.sql.SQLException: Access denied for user &#39;root&#39;@&#39;192.168.6.131&#39; (using password: YES),远程连接数据库,连接不上解决方案

进入 mysql   ; use mysql; 然后 执行 GRANT ALL PRIVILEGES ON *.* TO [email protected]"你.的.端.口" IDENTIFIED BY "你的密码" WITH GRANT OPTION; FLUSH PRIVILEGES; 然后成功 Caused by: java.sql.SQLException: Access denied for user 'root'@'192.168.6.131' (usi

HBASE启动失败,Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster

Master日志错误:2015-12-02 06:34:32,394 ERROR [main] master.HMasterCommandLine: Master exitingjava.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMasterat org.apache.hadoop.hbase.master.HMaster.constructMaster(

Could not resolve placeholder &#39;master.jdbc.url&#39; in string value &quot;${master.jdbc.url}&quot;

org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'masterDataSource' defined in file [C:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\xinghe-mycenter-web\WEB-INF\classes\spri