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 454B07793 for ; Sun, 2 Oct 2011 18:29:36 +0000 (UTC) Received: (qmail 71357 invoked by uid 500); 2 Oct 2011 18:29:34 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 71327 invoked by uid 500); 2 Oct 2011 18:29:34 -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 71319 invoked by uid 99); 2 Oct 2011 18:29:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 18:29:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zijadpurkovic@gmail.com designates 209.85.210.169 as permitted sender) Received: from [209.85.210.169] (HELO mail-iy0-f169.google.com) (209.85.210.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 18:29:29 +0000 Received: by iaen33 with SMTP id n33so6326644iae.14 for ; Sun, 02 Oct 2011 11:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Ypm6MhBfgNtCFS5jzM+EWEOo7H5SU3+7YfL8fXni21M=; b=weXbMPoq30r6Kvv3nIMdZQNcASGUlqGAiQijpJvctjTeslh3V/If+1+yGrTgihgrla 68h/sH5hAybbOhZtC6HR0qXYy5plYDF+Gu0mZa6gFZwDKrRTDFsMJ0miqL3Q8mYbzkzO fl6hWFo9bNcEnZRQa/hJdspmif/uymtGyO+bI= MIME-Version: 1.0 Received: by 10.231.21.212 with SMTP id k20mr2962424ibb.50.1317580149145; Sun, 02 Oct 2011 11:29:09 -0700 (PDT) Received: by 10.231.33.198 with HTTP; Sun, 2 Oct 2011 11:29:09 -0700 (PDT) In-Reply-To: References: <4E889D1B.1000806@gmail.com> <4E88AAB4.1040504@gmail.com> Date: Sun, 2 Oct 2011 20:29:09 +0200 Message-ID: Subject: Re: HBase Hush Application From: Zijad Purkovic To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Or comment out one of the IPv6, leave one IPv4 (default localhost) and one IPv6 (::1 localhost). On Sun, Oct 2, 2011 at 8:25 PM, Zijad Purkovic wr= ote: > Try removing or commenting out the IPv6 addresses from your hosts file > and restart hadoop/hbase. As i understand hadoop/hbase doesn't like > when hosts file contains multiple IPs assigned to one hostname (in > your case localhost). > > On Sun, Oct 2, 2011 at 8:17 PM, Mark wrote: >> Just the good ol default hosts file >> >> ## >> # Host Database >> # >> # localhost is used to configure the loopback interface >> # when the system is booting. =A0Do not change this entry. >> ## >> >> 127.0.0.1 =A0 =A0 =A0 localhost >> 255.255.255.255 broadcasthost >> ::1 =A0 =A0 =A0 =A0 =A0 =A0 localhost >> fe80::1%lo0 =A0 =A0 localhost >> >> >> >> On 10/2/11 11:04 AM, Zijad Purkovic wrote: >>> >>> Can you show your hosts file, particularly info on localhost. Of >>> course omit any sensitive info like public IP's or hostnames? >>> >>> On Sun, Oct 2, 2011 at 7:19 PM, Mark =A0wrot= e: >>>> >>>> I am trying to run the HBase URL application: >>>> https://github.com/larsgeorge/hbase-book on my local machine in >>>> psuedo-distributed mode using the Cloudera =A0CDH3 but I keep receivin= g the >>>> following error: >>>> >>>> ... >>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection, >>>> connectString=3Dlocalhost:2181 sessionTimeout=3D180000 watcher=3Dhconn= ection >>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket >>>> connection >>>> to server localhost/0:0:0:0:0:0:0:1:2181 >>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket >>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating >>>> session >>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session >>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, >>>> sessionid =3D >>>> 0x132c59cf1100004, negotiated timeout =3D 40000 >>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: >>>> String >>>> index out of range: -1 >>>> =A0 =A0at java.lang.String.substring(String.java:1937) >>>> =A0 =A0at >>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81) >>>> =A0 =A0at org.apache.hadoop.hbase.ServerName.(ServerName.java:63= ) >>>> =A0 =A0at >>>> >>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAd= dressTracker.java:62) >>>> =A0 =A0at >>>> >>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplement= ation.getMaster(HConnectionManager.java:568) >>>> =A0 =A0at >>>> org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:94) >>>> =A0 =A0at >>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126= ) >>>> =A0 =A0at com.hbasebook.hush.HushMain.main(HushMain.java:57) >>>> >>>> >>>> >>>> When I type JPS I see /HMaster/ however I do not see any mention of >>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving >>>> due >>>> to a misconfiguration of zookeeper or is it something completely >>>> unrelated? >>>> Is there something wrong with my hostname? Any ideas why I am receivin= g >>>> this >>>> error >>>> >>>> Any help would be greatly appreciated. Thanks >>>> >>>> >>>> >>> >>> >> > > > > -- > Zijad Purkovi=E6 > Dobrovoljnih davalaca krvi 3/19, Zavidovi=E6i > 061/ 690 - 241 > --=20 Zijad Purkovi=E6 Dobrovoljnih davalaca krvi 3/19, Zavidovi=E6i 061/ 690 - 241