Hi Amandeep, Could you be a bit more specific what <ip address> and <hostname>? 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 <[email protected]> > Add the following in your /etc/hosts > > <ip address> <hostname> > > That might be the problem > > On Mon, Nov 2, 2009 at 3:38 AM, Sławek Trybus <[email protected] > >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 storage. > > > > 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=C:\Data\Users\slawek\workspace\HBaseTestClient > > 09/11/02 01:59:57 INFO zookeeper.ZooKeeper: Initiating client connection, > > connectString=192.168.219.129:2181 sessionTimeout=60000 > > > > > watcher=org.apache.hadoop.hbase.client.hconnectionmanager$clientzkwatc...@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 to > > server > > /192.168.219.129:2181 > > 09/11/02 01:59:57 INFO zookeeper.ClientCnxn: Priming connection to > > java.nio.channels.SocketChannel[connected local=/192.168.219.1:54027 > > remote=/ > > 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:35565 could > not > > be reached after 1 tries, giving up.* > > *09/11/02 02:00:02 INFO ipc.HbaseRPC: Server at /127.0.0.1:35565 could > 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, giving > 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* > > <?xml version="1.0"?> > > <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> > > <configuration> > > <property> > > <name>*fs.default.name*</name> > > <value>*hdfs://localhost:9000*</value> > > </property> > > </configuration> > > > > *conf/hdfs-site.xml* > > <?xml version="1.0"?> > > <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> > > figuration> > > <property> > > <name>*dfs.replication*</name> > > <value>*1*</value> > > </property> > > </configuration> > > > > > > *conf/hdfs-site.xml* > > <?xml version="1.0"?> > > <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> > > <configuration> > > <property> > > <name>*mapred.job.tracker*</name> > > <value>*localhost:9001*</value> > > </property> > > </configuration> > > > > > > HBase conf file on Ubuntu > > > > *conf/hbase-site.xml* > > <?xml version="1.0"?> > > <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> > > <configuration> > > <property> > > <name>*h**base.rootdir*</name> > > <value>*hdfs://localhost:9000/hbase*</value> > > </description> > > </property> > > </configuration> > > > > > > > > In *classpath *of my java application there are all HBase jars and * > > hbase-site.xml* file with content: > > <?xml version="1.0"?> > > <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> > > <configuration> > > <property> > > <name>*hbase.rootdir*</name> > > <value>*hdfs://192.168.219.129:9000/hbase*</value> > > </description> > > </property> > > <property> > > <name>*hbase.zookeeper.quorum*</name> > > <value>*192.168.219.129*</value> > > </property> > > </configuration> > > > > > > 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* file 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 > > >
