`
ouyida3
  • 浏览: 48273 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

org.apache.hadoop.ipc.Client: Retrying connect to server

阅读更多
2011-08-10 09:57:16,000 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: meimer/130.51.38.219:9001. Already tried 0 time(s).

master启动没报错,但是在slave里报错。

解决方法:
1、把slave机器的namenode得format一下。
2、把master里的配置文件也改为meimer,而不要用localhost

hbase也有同样错误

Wed Aug 10 10:15:20     2011 Starting master on meimer
ulimit -n 256
2011-08-10 10:15:22,656 INFO org.apache.hadoop.hbase.ipc.HBaseRpcMetrics: Initializing RPC Metrics with hostName=HMaster, port=60000
2011-08-10 10:15:22,828 INFO org.apache.hadoop.hbase.security.User: Skipping login, not running on secure Hadoop
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server listener on 60000: starting
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 1 on 60000: starting
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 3 on 60000: starting
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 5 on 60000: starting
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 9 on 60000: starting
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 7 on 60000: starting
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server Responder: starting
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 0 on 60000: starting
2011-08-10 10:15:22,843 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 4 on 60000: starting
2011-08-10 10:15:22,906 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 2 on 60000: starting
2011-08-10 10:15:22,906 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 8 on 60000: starting
2011-08-10 10:15:22,906 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 6 on 60000: starting
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32 GMT
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:host.name=meimer
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.version=1.6.0_26
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems Inc.
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.home=D:\Java\jdk1.6.0_26\jre
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.class.path=D:\cygwin\home\Administrator\hbase-0.90.3\conf;D:\Java\jdk1.6.0_26\lib\tools.jar;D:\cygwin\home\Administrator\hbase-0.90.3\;D:\cygwin\home\Administrator\hbase-0.90.3\hbase-0.90.3-tests.jar;D:\cygwin\home\Administrator\hbase-0.90.3\hbase-0.90.3.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\activation-1.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\asm-3.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\avro-1.3.3.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\commons-cli-1.2.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\commons-codec-1.4.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\commons-el-1.0.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\commons-httpclient-3.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\commons-lang-2.5.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\commons-logging-1.1.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\commons-net-1.4.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\core-3.1.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\guava-r06.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\hadoop-0.20.2-core.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jackson-core-asl-1.5.5.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jackson-jaxrs-1.5.5.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jackson-mapper-asl-1.4.2.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jackson-xc-1.5.5.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jasper-compiler-5.5.23.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jasper-runtime-5.5.23.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jaxb-api-2.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jaxb-impl-2.1.12.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jersey-core-1.4.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jersey-json-1.4.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jersey-server-1.4.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jettison-1.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jetty-6.1.26.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jetty-util-6.1.26.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jruby-complete-1.6.0.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jsp-2.1-6.1.14.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jsp-api-2.1-6.1.14.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\jsr311-api-1.1.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\log4j-1.2.16.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\protobuf-java-2.3.0.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\servlet-api-2.5-6.1.14.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\slf4j-api-1.5.8.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\slf4j-log4j12-1.5.8.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\stax-api-1.0.1.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\thrift-0.2.0.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\xmlenc-0.52.jar;D:\cygwin\home\Administrator\hbase-0.90.3\lib\zookeeper-3.3.2.jar
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.library.path=D:\Java\jdk1.6.0_26\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\cygwin\usr\local\bin;D:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;D:\oracle\ora92\bin;D:\cygwin\bin;D:\Program Files\SSH Communications Security\SSH Secure Shell;D:\ssh;D:\Program Files\SciTools\bin\pc-win32;.
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.io.tmpdir=D:\cygwin\tmp\
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:os.name=Windows XP
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:os.arch=x86
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:os.version=5.1
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:user.name=Administrator
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:user.home=C:\Documents and Settings\Administrator
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Client environment:user.dir=D:\cygwin\home\Administrator\hbase-0.90.3
2011-08-10 10:15:22,984 INFO org.apache.zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=master:60000
2011-08-10 10:15:23,015 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181
2011-08-10 10:15:23,015 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
2011-08-10 10:15:23,218 INFO org.apache.zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x131b177afd80000, negotiated timeout = 40000
2011-08-10 10:15:23,453 INFO org.apache.hadoop.metrics.jvm.JvmMetrics: Initializing JVM Metrics with processName=Master, sessionId=meimer:60000
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: revision
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsUser
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsDate
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsUrl
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: date
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsRevision
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: user
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsVersion
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: url
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: MetricsString added: version
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: new MBeanInfo
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.metrics: new MBeanInfo
2011-08-10 10:15:23,500 INFO org.apache.hadoop.hbase.master.metrics.MasterMetrics: Initialized
2011-08-10 10:15:23,656 INFO org.apache.hadoop.hbase.master.ActiveMasterManager: Master=meimer:60000
2011-08-10 10:15:26,656 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s).
2011-08-10 10:15:28,578 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 1 time(s).
2011-08-10 10:15:30,578 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 2 time(s).
2011-08-10 10:15:32,390 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 3 time(s).
2011-08-10 10:15:34,296 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 4 time(s).
2011-08-10 10:15:36,218 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 5 time(s).
2011-08-10 10:15:38,125 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 6 time(s).
2011-08-10 10:15:40,031 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 7 time(s).
2011-08-10 10:15:41,937 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 8 time(s).
2011-08-10 10:15:43,859 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 9 time(s).
2011-08-10 10:15:44,875 FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Starting shutdown.
java.net.ConnectException: Call to localhost/127.0.0.1:9000 failed on connection exception: java.net.ConnectException: Connection refused: no further information
at org.apache.hadoop.ipc.Client.wrapException(Client.java:767)
at org.apache.hadoop.ipc.Client.call(Client.java:743)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
at $Proxy5.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:359)
at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:106)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:207)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:170)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:82)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1378)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1390)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:196)
at org.apache.hadoop.fs.Path.getFileSystem(Path.java:175)
at org.apache.hadoop.hbase.util.FSUtils.getRootDir(FSUtils.java:344)
at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:81)
at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:347)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:283)
Caused by: java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:404)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:304)
at org.apache.hadoop.ipc.Client$Connection.access$1700(Client.java:176)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:860)
at org.apache.hadoop.ipc.Client.call(Client.java:720)
... 16 more
2011-08-10 10:15:44,890 INFO org.apache.hadoop.hbase.master.HMaster: Aborting
2011-08-10 10:15:44,890 DEBUG org.apache.hadoop.hbase.master.HMaster: Stopping service threads
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: Stopping server on 60000
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 4 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 9 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 0 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 2 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 1 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC Server listener on 60000
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 6 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 8 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 3 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 5 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 7 on 60000: exiting
2011-08-10 10:15:44,890 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC Server Responder
2011-08-10 10:15:45,000 INFO org.apache.zookeeper.ZooKeeper: Session: 0x131b177afd80000 closed
2011-08-10 10:15:45,000 INFO org.apache.hadoop.hbase.master.HMaster: HMaster main thread exiting
2011-08-10 10:15:45,000 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down


同样,把localhost改为机器名ok。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics