Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 75172 invoked from network); 5 Nov 2009 14:35:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Nov 2009 14:35:22 -0000 Received: (qmail 66546 invoked by uid 500); 5 Nov 2009 14:35:19 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 66498 invoked by uid 500); 5 Nov 2009 14:35:19 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 66440 invoked by uid 99); 5 Nov 2009 14:35:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 14:35:19 +0000 X-ASF-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of slawek.trybus@gmail.com designates 209.85.219.226 as permitted sender) Received: from [209.85.219.226] (HELO mail-ew0-f226.google.com) (209.85.219.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 14:35:16 +0000 Received: by ewy26 with SMTP id 26so34548ewy.29 for ; Thu, 05 Nov 2009 06:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=WVkSrnlxgyMAh6wUXz+9ZRDPvJO6IRn2lOXBxujTdOE=; b=ehSwo72B3tX3FJ1vltFOQMzg8UDXSFQTmvct9+aol9KiUp20o0ke9uLUbOlu3j9Mwk 9hsLRxA96pqqmhbnueyJ84YX6VUiH4nFeeSDfbC54ec90tvBto8nTsv2PniLQQB0gcsc ghzKUHfDUXMCvtjAQEE5cbTMQylqR+w7wRgCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jmuM8pOgOrWSCkvamIgJ62AKXT+cJB4NZ5qqpI9ifK9q1kC6vjgRdq45jiOLhZCHD1 M4Z2c4T94ytLsOGKqCCuP2USILIZ3EYQgtMY30h+Wf1mdr8BPBJvoRPCunMzMVAtXjby 5+aUICKXqGG30S5/o4SYJVYhoZaHswHxueMYQ= MIME-Version: 1.0 Received: by 10.216.86.135 with SMTP id w7mr1001504wee.176.1257431692647; Thu, 05 Nov 2009 06:34:52 -0800 (PST) In-Reply-To: References: <35a22e220911020344p6b26c07ai7add4760f9e2e455@mail.gmail.com> Date: Thu, 5 Nov 2009 15:34:52 +0100 Message-ID: Subject: Re: Java client connection to HBase 0.20.1 problem From: =?UTF-8?Q?S=C5=82awek_Trybus?= To: hbase-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016e6d649565e9da90477a0a16f --0016e6d649565e9da90477a0a16f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Tatsuya, Thank you and Amandeep for your suggestions. Finally it is working! Best regards, Slawek 2009/11/5 Tatsuya Kawano > Hi Saawek, > > Replace "127.0.1.1" with the real IP address "192.168.219.129", then > "sudo /etc/init.d/networking restart" as Amandeep suggested. > > Thanks, > > -- > Tatsuya Kawano (Mr.) > Tokyo, Japan > > > > On Thu, Nov 5, 2009 at 4:37 AM, S=C5=82awek Trybus > wrote: > > Hi Amandeep, > > > > Could you be a bit more specific what and ? > > Should it be something different than "127.0.1.1 ubuntu" ? > > > > I'm rather a weak linux administrator and not filling well this area. > > > > Saawek > > > > > > > > 2009/11/2 Amandeep Khurana > > > >> Add the following in your /etc/hosts > >> > >> > >> > >> That might be the problem > >> > >> On Mon, Nov 2, 2009 at 3:38 AM, S=C5=82awek Trybus >> >wrote: > >> > >> > Hi to everyone in the forum! > >> > > >> > I'm getting started with HBase 0.20.1 and I'm trying to prepare dev > >> > environment for web application development based on HBase as storag= e. > >> > > >> > In my test desktop java application I'm getting console output like > this: > >> > > >> > 09/11/02 01:59:57 INFO zookeeper.ZooKeeper: Client > >> > environment:user.dir=3DC:\Data\Users\slawek\workspace\HBaseTestClien= t > >> > 09/11/02 01:59:57 INFO zookeeper.ZooKeeper: Initiating client > connection, > >> > connectString=3D192.168.219.129:2181 sessionTimeout=3D60000 > >> > > >> > > >> > watcher=3Dorg.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatch= er@4741d6 > >> > 09/11/02 01:59:57 INFO zookeeper.ClientCnxn: > >> > zookeeper.disableAutoWatchReset > >> > is false > >> > 09/11/02 01:59:57 INFO zookeeper.ClientCnxn: Attempting connection t= o > >> > server > >> > /192.168.219.129:2181 > >> > 09/11/02 01:59:57 INFO zookeeper.ClientCnxn: Priming connection to > >> > java.nio.channels.SocketChannel[connected local=3D/192.168.219.1:540= 27 > >> > remote=3D/ > >> > 192.168.219.129:2181] > >> > 09/11/02 01:59:57 INFO zookeeper.ClientCnxn: Server connection > successful > >> > *09/11/02 01:59:59 INFO ipc.HbaseRPC: Server at /127.0.0.1:35565coul= d > >> not > >> > be reached after 1 tries, giving up.* > >> > *09/11/02 02:00:02 INFO ipc.HbaseRPC: Server at /127.0.0.1:35565coul= d > >> not > >> > be reached after 1 tries, giving up.* > >> > this info is appearing with no end -> *09/11/02 02:00:05 INFO > >> ipc.HbaseRPC: > >> > Server at /127.0.0.1:35565 could not be reached after 1 tries, givin= g > >> up.* > >> > ... > >> > > >> > > >> > I'm working on Windows Vista (running my java client application in > >> > eclipse) > >> > and HBase is installed on Ubuntu 9.04 installed on VMware. Ubuntu > virtual > >> > machine has IP 192.168.219.129. > >> > On Ubuntu I have installed Hadoop 0.20.1 and HBase 0.20.1 working in > >> > Pseudo-Distributed Mode. > >> > > >> > Hadoop conf files on Ubuntu: > >> > > >> > *conf/core-site.xml* > >> > > >> > > >> > > >> > > >> > *fs.default.name* > >> > *hdfs://localhost:9000* > >> > > >> > > >> > > >> > *conf/hdfs-site.xml* > >> > > >> > > >> > figuration> > >> > > >> > *dfs.replication* > >> > *1* > >> > > >> > > >> > > >> > > >> > *conf/hdfs-site.xml* > >> > > >> > > >> > > >> > > >> > *mapred.job.tracker* > >> > *localhost:9001* > >> > > >> > > >> > > >> > > >> > HBase conf file on Ubuntu > >> > > >> > *conf/hbase-site.xml* > >> > > >> > > >> > > >> > > >> > *h**base.rootdir* > >> > *hdfs://localhost:9000/hbase* > >> > > >> > > >> > > >> > > >> > > >> > > >> > In *classpath *of my java application there are all HBase jars and * > >> > hbase-site.xml* file with content: > >> > > >> > > >> > > >> > > >> > *hbase.rootdir* > >> > *hdfs://192.168.219.129:9000/hbase* > >> > > >> > > >> > > >> > *hbase.zookeeper.quorum* > >> > *192.168.219.129* > >> > > >> > > >> > > >> > > >> > When I'm connecting to HBase by shell it's working perfectly. > >> > I know that there might be a problem bas content of */etc/hosts* fil= e > in > >> > Ubuntu; mine is like this: > >> > > >> > *127.0.0.1 localhost ubuntu* > >> > # 127.0.1.1 ubuntu.localdomain ubuntu > >> > # The following lines are desirable for IPv6 capable hosts > >> > # ::1 ip6-localhost ip6-loopback > >> > fe00::0 ip6-localnet > >> > ff00::0 ip6-mcastprefix > >> > ff02::1 ip6-allnodes > >> > ff02::2 ip6-allrouters > >> > ff02::3 ip6-allhosts > >> > > >> > > >> > I don't know what's wrong in my configuration. > >> > If you could advice I'd be very appreciate because now I can't go > further > >> > with my HBase. > >> > Slawek > >> > > >> > > > --0016e6d649565e9da90477a0a16f--