Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> Re: help needed towards connecting Hbase


Copy link to this message
-
Re: help needed towards connecting Hbase
Hi Jeevi,

I'm moving this discussion in user instead of dev.

You hosts file should not looks like what you have:

127.0.0.1              localhost.localdomain.com          localhost
127.0.0.1              database.companyname.com      database

You should but your IP address at the 2nd line instead of 127.0.0.1

Can you please with this modification?

Thanks,

JM
2014-01-31 jeevi tesh <[EMAIL PROTECTED]>:

> In "http://192.168.1.42:60010/master-status?filter=all"
> Under Tasks->Show all mointored tasks I find below task are waiting...
> *So all my requests are waiting but for which reason.. any comments*.
>
> Fri Jan 31 21:03:37 IST
> 2014Replication.RpcServer.handler=2,port=46854WAITING
> (since 35mins, 48sec ago)Waiting for a call (since 35mins, 48sec ago)Fri
> Jan 31 21:03:37 IST 2014Replication.RpcServer.handler=1,port=46854WAITING
> (since 35mins, 48sec ago)Waiting for a call (since 35mins, 48sec ago)
>
>
> On Fri, Jan 31, 2014 at 9:33 PM, jeevi tesh <[EMAIL PROTECTED]>
> wrote:
>
> > still not able to solve this issue please help thanks
> >
> >
> > On Fri, Jan 31, 2014 at 8:17 PM, jeevi tesh <[EMAIL PROTECTED]
> >wrote:
> >
> >> One interesting thing, is even if i shutdown the linux system or stop
> >> hbase same error I get. so it proves it is not even able to establishes
> >> connection to hadoop server so it is the problem in my client code
> >>
> >>
> >> On Fri, Jan 31, 2014 at 8:12 PM, jeevi tesh <[EMAIL PROTECTED]
> >wrote:
> >>
> >>> Thanks  for taking effort to help me
> >>> In "http://192.168.1.42:60010/master-status"
> >>> I found
> >>> " Zookeeper Quorum localhost:2181 Addresses of all registered ZK
> >>> servers. For more, see zk dump."
> >>> accordingly I updated my code with proper port number
> >>> still error persists...
> >>> please check my code and error also
> >>> It will be of great help if you can help me.
> >>> I'm trying to run the below code from windows machine and hadoop and
> >>> hbase are installed in oracle linux single node cluster
> >>> Now i removed Zookeeper
> >>> import java.io.IOException;
> >>>
> >>> import org.apache.hadoop.conf.Configuration;
> >>> import org.apache.hadoop.hbase.HBaseConfiguration;
> >>> import org.apache.hadoop.hbase.client.HTable;
> >>> import org.apache.hadoop.hbase.client.Put;
> >>> import org.apache.hadoop.hbase.util.Bytes;
> >>>
> >>> public class testDB {
> >>>
> >>> /**
> >>>  * @param args
> >>>  */
> >>> public static void main(String[] args) {
> >>>  try {
> >>> System.out.println("1 Before HBASE COnfiguration");
> >>> Configuration config = HBaseConfiguration.create();
> >>>  //config.clear();
> >>> System.out.println("2 Before HBASE COnfiguration");
> >>> config.set("hbase.master", "192.168.1.42:60010");
> >>>  config.set("hbase.zookeeper.quorum.", "192.168.1.42:2181");
> >>> System.out.println("HBase is running!");
> >>>             HTable table;
> >>>  table = new HTable(config, "mytable");
> >>>              System.out.println("Table mytable obtained ");
> >>>
> >>>             Put put = new Put(Bytes.toBytes("row1"));
> >>>
> >>>
> put.add(Bytes.toBytes("colfam1"),Bytes.toBytes("qual1"),Bytes.toBytes("val1"));
> >>>
> >>>
> put.add(Bytes.toBytes("colfam1"),Bytes.toBytes("qual2"),Bytes.toBytes("val2"));
> >>>             table.put(put);
> >>> } catch (IOException e) {
> >>>  e.printStackTrace();
> >>> }
> >>>
> >>>  }
> >>>
> >>> }
> >>> 1 Before HBASE COnfiguration
> >>> 2 Before HBASE COnfiguration
> >>> HBase is running!
> >>> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client
> >>> environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32
> GMT
> >>> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client environment:
> host.name
> >>> =DELL-75.unilog
> >>> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client
> >>> environment:java.version=1.6.0_16
> >>> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client
> >>> environment:java.vendor=Sun Microsystems Inc.
> >>> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client
> >>> environment:java.home=C:\Program Files\Java\jdk1.6.0_16\jre

 
+
Jean-Marc Spaggiari 2014-02-01, 10:14
+
Ted Yu 2014-02-01, 15:39