Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BCAB0200C70 for ; Thu, 4 May 2017 10:30:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BB436160BB0; Thu, 4 May 2017 08:30:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0D982160B9F for ; Thu, 4 May 2017 10:30:07 +0200 (CEST) Received: (qmail 96205 invoked by uid 500); 4 May 2017 08:30:07 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 96180 invoked by uid 99); 4 May 2017 08:30:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2017 08:30:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B39F9C25F1 for ; Thu, 4 May 2017 08:30:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id G43kgQSjcKg6 for ; Thu, 4 May 2017 08:30:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id AA23F5F4AA for ; Thu, 4 May 2017 08:30:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2AC09E008E for ; Thu, 4 May 2017 08:30:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id DCA8021DE0 for ; Thu, 4 May 2017 08:30:04 +0000 (UTC) Date: Thu, 4 May 2017 08:30:04 +0000 (UTC) From: "Doris Gu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11751) DFSZKFailoverController daemon exits with wrong status code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 04 May 2017 08:30:08 -0000 [ https://issues.apache.org/jira/browse/HDFS-11751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15996343#comment-15996343 ] Doris Gu commented on HDFS-11751: --------------------------------- Modify the retCode of zkfc, please check, thanks in advance! > DFSZKFailoverController daemon exits with wrong status code > ----------------------------------------------------------- > > Key: HDFS-11751 > URL: https://issues.apache.org/jira/browse/HDFS-11751 > Project: Hadoop HDFS > Issue Type: Bug > Components: auto-failover > Affects Versions: 3.0.0-alpha2 > Reporter: Doris Gu > Attachments: HDFS-11751.001.patch > > > 1.use *hdfs zkfc* to start a zkfc daemon; > 2.zkfc failed to start for some reason, but we got the successful code: > {quote}2017-05-04 16:06:24,720 FATAL org.apache.hadoop.hdfs.tools.DFSZKFailoverController: Got a fatal error, exiting now > java.net.BindException: Problem binding to [localhost:8019] java.net.BindException: address already in use; For more details see: http://wiki.apache.org/hadoop/BindException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:792) > at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:721) > at org.apache.hadoop.ipc.Server.bind(Server.java:431) > at org.apache.hadoop.ipc.Server$Listener.(Server.java:580) > at org.apache.hadoop.ipc.Server.(Server.java:2221) > at org.apache.hadoop.ipc.RPC$Server.(RPC.java:951) > at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.(ProtobufRpcEngine.java:534) > at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:509) > at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:796) > at org.apache.hadoop.ha.ZKFCRpcServer.(ZKFCRpcServer.java:58) > at org.apache.hadoop.ha.ZKFailoverController.initRPC(ZKFailoverController.java:341) > at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.initRPC(DFSZKFailoverController.java:152) > at org.apache.hadoop.ha.ZKFailoverController.doRun(ZKFailoverController.java:249) > at org.apache.hadoop.ha.ZKFailoverController.access$000(ZKFailoverController.java:72) > at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:187) > at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:183) > at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:415) > at org.apache.hadoop.ha.ZKFailoverController.run(ZKFailoverController.java:183) > at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:181) > Caused by: java.net.BindException: address already in use > at sun.nio.ch.Net.bind0(Native Method) > at sun.nio.ch.Net.bind(Net.java:444) > at sun.nio.ch.Net.bind(Net.java:436) > at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) > at org.apache.hadoop.ipc.Server.bind(Server.java:414) > ... 16 more > [hdfs@localhost ~]$ echo $? > 0{quote} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org