Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 782F317A69 for ; Mon, 29 Sep 2014 23:04:39 +0000 (UTC) Received: (qmail 91451 invoked by uid 500); 29 Sep 2014 23:04:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 91405 invoked by uid 500); 29 Sep 2014 23:04:34 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 91393 invoked by uid 99); 29 Sep 2014 23:04:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2014 23:04:34 +0000 Date: Mon, 29 Sep 2014 23:04:34 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10200) Better error message when HttpServer fails to start due to java.net.BindException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-10200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152476#comment-14152476 ] Ted Yu commented on HBASE-10200: -------------------------------- Looks like QA bot consistently encounters the following: {code} Caused by: hudson.plugins.git.GitException: Failed to connect to https://git-wip-us.apache.org/repos/asf/hbase.git (exception: java.net.UnknownHostException: git-wip-us.apache.org: Name or service not known) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1960) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1137) {code} Running test suite now. > Better error message when HttpServer fails to start due to java.net.BindException > --------------------------------------------------------------------------------- > > Key: HBASE-10200 > URL: https://issues.apache.org/jira/browse/HBASE-10200 > Project: HBase > Issue Type: Task > Affects Versions: 2.0.0 > Reporter: Ted Yu > Priority: Minor > Labels: beginner > Attachments: HBASE-10020.patch > > > Starting HBase using Hoya, I saw the following in log: > {code} > 2013-12-17 21:49:06,758 INFO [master:hor12n19:42587] http.HttpServer: HttpServer.start() threw a non Bind IOException > java.net.BindException: Port in use: hor12n14.gq1.ygridcore.net:12432 > at org.apache.hadoop.http.HttpServer.openListener(HttpServer.java:742) > at org.apache.hadoop.http.HttpServer.start(HttpServer.java:686) > at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:586) > at java.lang.Thread.run(Thread.java:722) > Caused by: java.net.BindException: Cannot assign requested address > at sun.nio.ch.Net.bind0(Native Method) > at sun.nio.ch.Net.bind(Net.java:344) > at sun.nio.ch.Net.bind(Net.java:336) > at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) > at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216) > at org.apache.hadoop.http.HttpServer.openListener(HttpServer.java:738) > {code} > This was due to hbase.master.info.bindAddress giving static address but Hoya allocates master dynamically. > Better error message should be provided: when bindAddress points another host than local host, message should remind user to remove / adjust hbase.master.info.bindAddress config param from hbase-site.xml -- This message was sent by Atlassian JIRA (v6.3.4#6332)