Comments on: HBase tutorial for beginnershttp://ole-martin.net/hbase-tutorial-for-beginners/
because a tweet may be too shortTue, 13 Feb 2018 20:30:19 +0000http://wordpress.org/?v=2.9.1hourly1By: Ole-Martinhttp://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-812
Ole-MartinWed, 03 Apr 2013 08:53:05 +0000http://ole-martin.net/?p=49#comment-812As mentioned at the top of the post, this post is old and the code doesnt compile.As mentioned at the top of the post, this post is old and the code doesnt compile.
]]>By: manjulahttp://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-811
manjulaTue, 02 Apr 2013 04:41:47 +0000http://ole-martin.net/?p=49#comment-811I get the following exception when i run the above code in eclipse. I also added the jars mentioned. Please reply ASAP.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException
at HBaseConnector.retrievePost(HBaseConnector.java:21)
at HBaseConnector.main(HBaseConnector.java:36)
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 moreI get the following exception when i run the above code in eclipse. I also added the jars mentioned. Please reply ASAP.

]]>By: kiranhttp://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-805
kiranMon, 16 Apr 2012 05:49:28 +0000http://ole-martin.net/?p=49#comment-805Its very Good Tutorial, it would be great help if i get more good explanations as you mentionedIts very Good Tutorial, it would be great help if i get more good explanations as you mentioned
]]>By: timekillerhttp://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-804
timekillerThu, 12 Apr 2012 22:26:32 +0000http://ole-martin.net/?p=49#comment-804The code above is very out of date. I made the minimum number of necessary adjustments to just get it compiling and running with HBase 0.90.4. It's clearly in poor form now in a number of ways, but I figured I'd post it anyway, you can clean it up from here...
import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.client.Get;
import org.apache.hadoop.hbase.util.Bytes;
import java.util.HashMap;
import java.util.Map;
import java.io.IOException;
public class HBaseConnector {
public static Map retreivePost(String postId) throws IOException {
HTable table = new HTable(new HBaseConfiguration(), "blogposts");
Map post = new HashMap();
Result result = table.get(new Get(Bytes.toBytes(postId)));
for (KeyValue column : result.list()) {
post.put(new String(column.getFamily()) + ":" + new String(column.getQualifier()), new String(column.getValue()));
}
return post;
}
public static void main(String[] args) throws IOException {
Map blogpost = HBaseConnector.retreivePost("post1");
System.out.println(blogpost.get("post:title"));
System.out.println(blogpost.get("post:author"));
}
}The code above is very out of date. I made the minimum number of necessary adjustments to just get it compiling and running with HBase 0.90.4. It’s clearly in poor form now in a number of ways, but I figured I’d post it anyway, you can clean it up from here…

]]>By: amsalhttp://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-284
amsalThu, 08 Mar 2012 09:38:11 +0000http://ole-martin.net/?p=49#comment-284hi
i have created a table in hbase with 12 columns in each row and each column has 8 qualifiers.when i try to read complete row it returns correct value for 1:1 in row 1 but returns null for 1:2
it reads all the columns correctly from 2 to 12....
plz help how to solve this problem
i m using this code for reading....it is inside for loop thar runs from 1 to 10..
train[0][i] = Double.parseDouble(Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)),Bytes.toBytes("1"))));
train[1][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes("2"))));
train[2][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes("3"))));
train[3][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes("4"))));
train[4][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes("5"))));
train[5][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes("6"))));
train[6][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes("7"))));
train[7][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes("8"))));hi
i have created a table in hbase with 12 columns in each row and each column has 8 qualifiers.when i try to read complete row it returns correct value for 1:1 in row 1 but returns null for 1:2
it reads all the columns correctly from 2 to 12….
plz help how to solve this problem
i m using this code for reading….it is inside for loop thar runs from 1 to 10..

]]>By: ole-martinhttp://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-280
ole-martinWed, 21 Dec 2011 12:19:42 +0000http://ole-martin.net/?p=49#comment-280This post is old Rahul. There might have been some changes to the hbase api since then.
What does your compiler say?This post is old Rahul. There might have been some changes to the hbase api since then.
What does your compiler say?
]]>By: Rahulhttp://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-279
RahulWed, 21 Dec 2011 12:10:24 +0000http://ole-martin.net/?p=49#comment-279Hi
Can anybody tell me how to compile and run the HBaseConnecto program which is given in above tutorial .
I tried a lot but not successful if anybody knows any link please share.
Kindly Help.
ThanksHi
Can anybody tell me how to compile and run the HBaseConnecto program which is given in above tutorial .
I tried a lot but not successful if anybody knows any link please share.
Kindly Help.
Thanks
]]>By: hbase | riding in tech world.http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-271
hbase | riding in tech world.Fri, 02 Dec 2011 05:04:34 +0000http://ole-martin.net/?p=49#comment-271[...] good tutorial for beginners: http://ole-martin.net/hbase-tutorial-for-beginners/ [...][...] good tutorial for beginners: http://ole-martin.net/hbase-tutorial-for-beginners/ [...]
]]>By: HBase tutorial for beginners « meisterxuhttp://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-258
HBase tutorial for beginners « meisterxuThu, 18 Aug 2011 08:08:22 +0000http://ole-martin.net/?p=49#comment-258[...] HBase tutorial for beginners From ole-martin.net » HBase tutorial for beginners – a blog by Ole-Martin Mørk. [...][...] HBase tutorial for beginners From ole-martin.net » HBase tutorial for beginners – a blog by Ole-Martin Mørk. [...]
]]>