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

Switch to Plain View
HBase, mail # user - connecting Hbase using java


Copy link to this message
-
connecting Hbase using java
Alok Singh Mahor 2013-03-30, 14:02
Hi all,
I have set up Hbase in pseudo distributed mode.
I am using hadoop-1.1.2  hbase-0.94.6 and setup files are in Home
directory.

content of ~/hbase-0.94.6/conf/hbase-site.xml is

<configuration>
<property>
        <name>hbase.cluster.distributed</name>
        <value>true</value>
</property>
<property>
    <name>hbase.rootdir</name>
    <value>hdfs://localhost:9000/hbase</value>
  </property>
<property>
        <name>dfs.replication</name>
        <value>1</value>
        <description>The replication count for HLog and HFile storage.
Should not be greater than HDFS datanode count.
        </description>
    </property>
</configuration>

and I am able to create tables using hbase shell from its prompt.
but I want to create table and load data programatically using java.

I tried to follow
http://autofei.wordpress.com/2012/04/02/java-example-code-using-hbase-data-model-operations/

without eclipse but I am getting error that packages does not exist.

could any one give me clean and simple steps to load data in Hbase
programatically using java.

thanks in advance
+
Ted Yu 2013-03-30, 14:49
+
Mohammad Tariq 2013-03-30, 15:25
+
Stephen Boesch 2013-03-30, 15:29
+
Alok Singh Mahor 2013-03-31, 03:00
+
Ted Yu 2013-03-31, 03:39
+
Alok Singh Mahor 2013-03-31, 10:48
+
Ted Yu 2013-03-31, 14:37
+
Alok Singh Mahor 2013-03-31, 16:46
+
Ted Yu 2013-03-31, 19:04
+
Alok Singh Mahor 2013-03-31, 20:51
+
Alok Singh Mahor 2013-04-03, 16:37
+
Andrea Gazzarini 2013-04-03, 16:59
+
Harsha 2013-04-03, 21:20
+
Alok Singh Mahor 2013-04-03, 23:03
+
Jean-Marc Spaggiari 2013-04-04, 00:24
+
Alok Singh Mahor 2013-04-04, 09:04
+
Jean-Marc Spaggiari 2013-04-04, 12:06
+
Alok Singh Mahor 2013-04-04, 13:13
+
Jean-Marc Spaggiari 2013-04-04, 13:38
+
Alok Singh Mahor 2013-04-04, 14:37
+
Jean-Marc Spaggiari 2013-04-04, 14:41
+
Alok Singh Mahor 2013-04-04, 14:50
+
Jean-Marc Spaggiari 2013-04-04, 15:13
+
Alok Singh Mahor 2013-04-05, 03:38
+
Jean-Marc Spaggiari 2013-04-05, 11:47