<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for ole-martin.net</title>
	<atom:link href="http://ole-martin.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://ole-martin.net</link>
	<description>because a tweet may be too short</description>
	<lastBuildDate>Mon, 16 Apr 2012 05:49:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on HBase tutorial for beginners by kiran</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-805</link>
		<dc:creator>kiran</dc:creator>
		<pubDate>Mon, 16 Apr 2012 05:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-805</guid>
		<description>Its very Good Tutorial, it would be great help if i get more good explanations as you mentioned</description>
		<content:encoded><![CDATA[<p>Its very Good Tutorial, it would be great help if i get more good explanations as you mentioned</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by timekiller</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-804</link>
		<dc:creator>timekiller</dc:creator>
		<pubDate>Thu, 12 Apr 2012 22:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-804</guid>
		<description>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&#039;s clearly in poor form now in a number of ways, but I figured I&#039;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(), &quot;blogposts&quot;);
Map post = new HashMap();

Result result = table.get(new Get(Bytes.toBytes(postId)));

for (KeyValue column : result.list()) {

post.put(new String(column.getFamily()) + &quot;:&quot; + new String(column.getQualifier()), new String(column.getValue()));
}
return post;
}

public static void main(String[] args) throws IOException {
Map blogpost = HBaseConnector.retreivePost(&quot;post1&quot;);
System.out.println(blogpost.get(&quot;post:title&quot;));
System.out.println(blogpost.get(&quot;post:author&quot;));
}
}</description>
		<content:encoded><![CDATA[<p>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&#8217;s clearly in poor form now in a number of ways, but I figured I&#8217;d post it anyway, you can clean it up from here&#8230; </p>
<p>import org.apache.hadoop.hbase.client.HTable;<br />
import org.apache.hadoop.hbase.HBaseConfiguration;<br />
import org.apache.hadoop.hbase.client.Result;<br />
import org.apache.hadoop.hbase.KeyValue;<br />
import org.apache.hadoop.hbase.client.Get;<br />
import org.apache.hadoop.hbase.util.Bytes;</p>
<p>import java.util.HashMap;<br />
import java.util.Map;<br />
import java.io.IOException;</p>
<p>public class HBaseConnector {</p>
<p>public static Map retreivePost(String postId) throws IOException {<br />
HTable table = new HTable(new HBaseConfiguration(), &#8220;blogposts&#8221;);<br />
Map post = new HashMap();</p>
<p>Result result = table.get(new Get(Bytes.toBytes(postId)));</p>
<p>for (KeyValue column : result.list()) {</p>
<p>post.put(new String(column.getFamily()) + &#8220;:&#8221; + new String(column.getQualifier()), new String(column.getValue()));<br />
}<br />
return post;<br />
}</p>
<p>public static void main(String[] args) throws IOException {<br />
Map blogpost = HBaseConnector.retreivePost(&#8220;post1&#8243;);<br />
System.out.println(blogpost.get(&#8220;post:title&#8221;));<br />
System.out.println(blogpost.get(&#8220;post:author&#8221;));<br />
}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by amsal</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-284</link>
		<dc:creator>amsal</dc:creator>
		<pubDate>Thu, 08 Mar 2012 09:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-284</guid>
		<description>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..

train[0][i] = Double.parseDouble(Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)),Bytes.toBytes(&quot;1&quot;))));

train[1][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&quot;2&quot;))));

train[2][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&quot;3&quot;))));

train[3][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&quot;4&quot;))));

train[4][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&quot;5&quot;))));

train[5][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&quot;6&quot;))));

train[6][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&quot;7&quot;))));

train[7][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&quot;8&quot;))));</description>
		<content:encoded><![CDATA[<p>hi<br />
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<br />
it reads all the columns correctly from 2 to 12&#8230;.<br />
plz help how to solve this problem<br />
i m using this code for reading&#8230;.it is inside for loop thar runs from 1 to 10..</p>
<p>train[0][i] = Double.parseDouble(Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)),Bytes.toBytes(&#8220;1&#8243;))));</p>
<p>train[1][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&#8220;2&#8243;))));</p>
<p>train[2][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&#8220;3&#8243;))));</p>
<p>train[3][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&#8220;4&#8243;))));</p>
<p>train[4][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&#8220;5&#8243;))));</p>
<p>train[5][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&#8220;6&#8243;))));</p>
<p>train[6][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&#8220;7&#8243;))));</p>
<p>train[7][i] = Double.parseDouble (Bytes.toString (r.getValue (Bytes.toBytes(Integer.toString(i)), Bytes.toBytes(&#8220;8&#8243;))));</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by tahreem</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-282</link>
		<dc:creator>tahreem</dc:creator>
		<pubDate>Tue, 21 Feb 2012 06:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-282</guid>
		<description>hey ive been trying dis code but its not executing the compiler says 
package org.apache.hadoop.hbase.client does not exist.
import org.apache.hadoop.hbase.client.HTable .

package org.apache.hadoop.hbase does not exist.
import org.apache.hadoop.hbase.HBaseConfiguration.

package org.apache.hadoop.hbase.io does not exist.
import org.apache.hadoop.hbase.io.RowResult.

plz help asap.</description>
		<content:encoded><![CDATA[<p>hey ive been trying dis code but its not executing the compiler says<br />
package org.apache.hadoop.hbase.client does not exist.<br />
import org.apache.hadoop.hbase.client.HTable .</p>
<p>package org.apache.hadoop.hbase does not exist.<br />
import org.apache.hadoop.hbase.HBaseConfiguration.</p>
<p>package org.apache.hadoop.hbase.io does not exist.<br />
import org.apache.hadoop.hbase.io.RowResult.</p>
<p>plz help asap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by ole-martin</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-280</link>
		<dc:creator>ole-martin</dc:creator>
		<pubDate>Wed, 21 Dec 2011 12:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-280</guid>
		<description>This post is old Rahul. There might have been some changes to the hbase api since then.
What does your compiler say?</description>
		<content:encoded><![CDATA[<p>This post is old Rahul. There might have been some changes to the hbase api since then.<br />
What does your compiler say?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by Rahul</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-279</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Wed, 21 Dec 2011 12:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-279</guid>
		<description>Hi 
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</description>
		<content:encoded><![CDATA[<p>Hi<br />
Can anybody tell me how to compile and run the HBaseConnecto program which is given in above tutorial .<br />
I tried a lot but not successful if anybody knows any link please share.<br />
Kindly Help.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by hbase &#124; riding in tech world.</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-271</link>
		<dc:creator>hbase &#124; riding in tech world.</dc:creator>
		<pubDate>Fri, 02 Dec 2011 05:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-271</guid>
		<description>[...] good tutorial for beginners: http://ole-martin.net/hbase-tutorial-for-beginners/ [...]</description>
		<content:encoded><![CDATA[<p>[...] good tutorial for beginners: <a href="http://ole-martin.net/hbase-tutorial-for-beginners/" rel="nofollow">http://ole-martin.net/hbase-tutorial-for-beginners/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by HBase tutorial for beginners &#171; meisterxu</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-258</link>
		<dc:creator>HBase tutorial for beginners &#171; meisterxu</dc:creator>
		<pubDate>Thu, 18 Aug 2011 08:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-258</guid>
		<description>[...] HBase tutorial for&#160;beginners    From ole-martin.net » HBase tutorial for beginners &#8211; a blog by Ole-Martin Mørk. [...]</description>
		<content:encoded><![CDATA[<p>[...] HBase tutorial for&nbsp;beginners    From ole-martin.net » HBase tutorial for beginners &#8211; a blog by Ole-Martin Mørk. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by Ramesh Babu</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-254</link>
		<dc:creator>Ramesh Babu</dc:creator>
		<pubDate>Mon, 06 Jun 2011 20:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-254</guid>
		<description>Check your IP address in the Host File and it should match the local machine IP</description>
		<content:encoded><![CDATA[<p>Check your IP address in the Host File and it should match the local machine IP</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HBase tutorial for beginners by Misty</title>
		<link>http://ole-martin.net/hbase-tutorial-for-beginners/comment-page-1/#comment-249</link>
		<dc:creator>Misty</dc:creator>
		<pubDate>Mon, 02 May 2011 12:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://ole-martin.net/?p=49#comment-249</guid>
		<description>Can you please guide me how to use HBase in Java programs, I tried running your example but it gives this error

11/05/02 17:44:40 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 0 time(s).
11/05/02 17:44:42 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 1 time(s).
11/05/02 17:44:44 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 2 time(s).
11/05/02 17:44:46 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 3 time(s).
11/05/02 17:44:48 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 4 time(s).
11/05/02 17:44:50 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 5 time(s).
11/05/02 17:44:52 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 6 time(s).
11/05/02 17:44:54 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 7 time(s).
11/05/02 17:44:56 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 8 time(s).
11/05/02 17:44:58 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 9 time(s).
11/05/02 17:44:59 INFO client.HConnectionManager$TableServers: Attempt 0 of 10 failed with . Retrying after sleep of 2000

please let me know where am i going  wrong. please suggest a simple way to use HBase</description>
		<content:encoded><![CDATA[<p>Can you please guide me how to use HBase in Java programs, I tried running your example but it gives this error</p>
<p>11/05/02 17:44:40 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 0 time(s).<br />
11/05/02 17:44:42 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 1 time(s).<br />
11/05/02 17:44:44 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 2 time(s).<br />
11/05/02 17:44:46 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 3 time(s).<br />
11/05/02 17:44:48 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 4 time(s).<br />
11/05/02 17:44:50 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 5 time(s).<br />
11/05/02 17:44:52 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 6 time(s).<br />
11/05/02 17:44:54 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 7 time(s).<br />
11/05/02 17:44:56 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 8 time(s).<br />
11/05/02 17:44:58 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 9 time(s).<br />
11/05/02 17:44:59 INFO client.HConnectionManager$TableServers: Attempt 0 of 10 failed with . Retrying after sleep of 2000</p>
<p>please let me know where am i going  wrong. please suggest a simple way to use HBase</p>
]]></content:encoded>
	</item>
</channel>
</rss>

