Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A60110756 for ; Sun, 25 Aug 2013 12:00:17 +0000 (UTC) Received: (qmail 10515 invoked by uid 500); 25 Aug 2013 12:00:13 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 10412 invoked by uid 500); 25 Aug 2013 12:00:12 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 10404 invoked by uid 99); 25 Aug 2013 12:00:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Aug 2013 12:00:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kelvin.msj@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-wg0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Aug 2013 12:00:04 +0000 Received: by mail-wg0-f41.google.com with SMTP id c11so2965852wgh.2 for ; Sun, 25 Aug 2013 04:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=bLSaMuBCBlt7Zc2b9zAeLkw9YZtUtPJZDBepGMfssMM=; b=CiJbAIFsFpeLilEjeiM6Xwf3e0++lugMkTEjJy7+cPXFNZMGGihCmhpoDjgX3iizi3 xgWeFHlFq01wqfjqCNCPQKdlA2YJXeAZyYLNy2sYBTlecSXMhOAMEodESTvCu5vHU4Ho xSBVS3ySzRDfjd6Tx0DvMIjzsoTUhyZGQ7sdxj8cfsrcr+sF709QZWHdPKiQhJmuteXr CDWgFidN6s0h3gnSiq4RqwptCNoUHaPxk47bj5SAfd/wJNYYG5tY6BhkDmanp5DaxHLB StyHKC89L4eAumkSPHBZYQCNn4k81yIPvwonzffxv7GG05xY/QDUeN5ibFdcgt6nu2Wk T5Lw== MIME-Version: 1.0 X-Received: by 10.180.80.71 with SMTP id p7mr4054514wix.48.1377431983822; Sun, 25 Aug 2013 04:59:43 -0700 (PDT) Sender: kelvin.msj@gmail.com Received: by 10.216.219.132 with HTTP; Sun, 25 Aug 2013 04:59:43 -0700 (PDT) Date: Sun, 25 Aug 2013 19:59:43 +0800 X-Google-Sender-Auth: 6uVyc3-UUA5Abwxg9x_bfEMxc5M Message-ID: Subject: HBase Java client - unknown host: localhost.localdomain From: Shengjie Min To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=f46d0442887c191cd804e4c46099 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0442887c191cd804e4c46099 Content-Type: text/plain; charset=ISO-8859-1 Hi guys, I am running cloudera quick start vm: Versions: Hadoop: 2.0.0-cdh4.3.1 HBase: 0.94.6-cdh4.3.1 Here is my little remote HBase Java client(HbaseClient.java), all it does is: public static void main(String[] args) throws IOException { Configuration config = HBaseConfiguration.create(); HTable table = new HTable(config, "s1"); System.out.println(table.getTableName()); } hbase-site.xml: hbase.rootdir hdfs://172.16.144.150:8020/hbase zookeeper.znode.parent /hbase ....... zookeeper.znode.rootserver root-region-server hbase.zookeeper.quorum 172.16.144.150 When I run my java client, I get the error unknown host: localhost.localdomain: Initiating client connection, connectString=172.16.144.150:2181 sessionTimeout=60000 watcher=hconnection zookeeper.disableAutoWatchReset is false The identifier of this process is 41939@smin-MacBook-Pro.local Opening socket connection to server cloudera/172.16.144.150:2181. Will not attempt to authenticate using SASL (unknown error) Socket connection established to cloudera/172.16.144.150:2181, initiating session Session establishment request sent on cloudera/172.16.144.150:2181 Session establishment complete on server cloudera/172.16.144.150:2181, sessionid = 0x14076b058850045, negotiated timeout = 60000 hconnection Received ZooKeeper Event, type=None, state=SyncConnected, path=null hconnection-0x14076b058850045 connected locateRegionInMeta parentTable=-ROOT-, metaLocation={region=-ROOT-,,0.70236052, hostname=localhost.localdomain, port=60020}, attempt=0 of 10 failed; retrying after sleep of 1000 because: unknown host: localhost.localdomain Reading reply sessionid:0x14076b058850045, packet:: clientPath:null serverPath:null finished:false header:: 17,3 replyHeader:: 17,460,0 request:: '/hbase,F response:: s{20,20,1376375496826,1376375496826,0,32,0,0,0,12,430} Reading reply sessionid:0x14076b058850045, packet:: clientPath:null serverPath:null finished:false header:: 18,4 replyHeader:: 18,460,0 request:: '/hbase/root-region-server,T response:: #ffffffff0001b3635323630406c6f63616c686f73742e6c6f63616c646f6d61696e6c6f63616c686f73742e6c6f63616c646f6d61696e2c36303032302c31333737333538373930303037,s{430,430,1377358805621,1377358805621,0,0,0,0,73,0,430} hconnection-0x14076b058850045 Retrieved 41 byte(s) of data from znode /hbase/root-region-server and set watcher; localhost.localdomain,60020,1... Looked up root region location, connection=org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@68a7a3a7; serverName=localhost.localdomain,60020,1377358790007 locateRegionInMeta parentTable=.META., metaLocation=null, attempt=2 of 10 failed; retrying after sle Any ideas? Thanks, SHengjie --f46d0442887c191cd804e4c46099--