<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-34655</id>
	<title>Nabble - HBase User</title>
	<updated>2009-12-16T17:19:58Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/HBase-User-f34655.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HBase-User-f34655.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26821583</id>
	<title>Re: Insert, update performance</title>
	<published>2009-12-16T17:19:58Z</published>
	<updated>2009-12-16T17:19:58Z</updated>
	<author>
		<name>stack-3</name>
	</author>
	<content type="html">On Wed, Dec 16, 2009 at 7:52 AM, Adam Silberstein &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821583&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;silberst@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I was expecting performance to be similar, but I¹m having problems with
&lt;br&gt;&amp;gt; Case
&lt;br&gt;&amp;gt; B. &amp;nbsp;In particular, after running continuously for 5-10, the latencies go
&lt;br&gt;&amp;gt; way
&lt;br&gt;&amp;gt; up and my throughput goes way down to a couple of operations a second. &amp;nbsp;I
&lt;br&gt;&amp;gt; left it like this for a while in case there were compactions going on, but
&lt;br&gt;&amp;gt; it never returned to its original throughput. &amp;nbsp;I have no problems with Case
&lt;br&gt;&amp;gt; A.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;So, if you look in the logs on the regionservers, do you see anything? &amp;nbsp;In
&lt;br&gt;particular, there is a writes barrier that we'll bring down if we are not
&lt;br&gt;flushing fast enough. &amp;nbsp;The default is pretty conservative so the barrier
&lt;br&gt;comes down pretty quick. &amp;nbsp;The read load might be slowing the flushing?
&lt;br&gt;&lt;br&gt;Or are splits happening at this time? &amp;nbsp;Are number of regions climbing during
&lt;br&gt;test B?
&lt;br&gt;&lt;br&gt;If you want, post a few regionserver logs somewhere we can pull it and we'll
&lt;br&gt;take a look at it for you.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Any ideas on what¹s going on here? &amp;nbsp;It may be related to the concurrent
&lt;br&gt;&amp;gt; read
&lt;br&gt;&amp;gt; workload, since I successfully loaded 120 million records originally, and
&lt;br&gt;&amp;gt; that took several hours.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;quot;serveral hours&amp;quot; is good or bad by your estimation? &amp;nbsp;Should it be faster?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;St.Ack
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Insert%2C-update-performance-tp26813423p26821583.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26821426</id>
	<title>Re: Hbase store format</title>
	<published>2009-12-16T17:02:23Z</published>
	<updated>2009-12-16T17:02:23Z</updated>
	<author>
		<name>Jeff Zhang-4</name>
	</author>
	<content type="html">Oh, this is what I am looking for. The wiki of hbase seems a bit out of
&lt;br&gt;date. Maybe some updates need to do to let new comers like me to know more
&lt;br&gt;about hbase.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Jeff Zhang
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 2:21 PM, Ryan Rawson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821426&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryanobjc@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I concur, the article is really core documentation right now - as in
&lt;br&gt;&amp;gt; it accurately describes the architecture and bits and bytes of the
&lt;br&gt;&amp;gt; system.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It's always gratifying to see your code being diagrammed as your
&lt;br&gt;&amp;gt; originally intended/wrote it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Dec 16, 2009 at 2:00 PM, Wim Van Leuven
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821426&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wim.vanleuven@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Or just add the full article to the wiki? Isn't this terrific article
&lt;br&gt;&amp;gt; just
&lt;br&gt;&amp;gt; &amp;gt; core architecture stuff for HBase?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Stack [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821426&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saint.ack@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: woensdag 16 december 2009 22:46
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821426&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: Re: Hbase store format
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;+1
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Dec 16, 2009, at 1:39 PM, Lars George &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821426&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lars.george@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Maybe we should add this to the article page up on wiki? ;)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; On Wed, Dec 16, 2009 at 10:12 PM, Andrew Purtell
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821426&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apurtell@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; ----- Original Message ----
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; From: kishore g &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821426&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.kishore@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821426&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Sent: Wed, December 16, 2009 1:03:05 PM
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Subject: Hbase store format
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Whats the current implementation in hbase 0.20.2 for storing data.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; MapFile,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; HFile, TFile.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Also any pointers to links explaining the format will be helpful
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Kishore G
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26821426.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819540</id>
	<title>Re: Hbase store format</title>
	<published>2009-12-16T14:21:45Z</published>
	<updated>2009-12-16T14:21:45Z</updated>
	<author>
		<name>Ryan Rawson</name>
	</author>
	<content type="html">I concur, the article is really core documentation right now - as in
&lt;br&gt;it accurately describes the architecture and bits and bytes of the
&lt;br&gt;system.
&lt;br&gt;&lt;br&gt;It's always gratifying to see your code being diagrammed as your
&lt;br&gt;originally intended/wrote it.
&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 2:00 PM, Wim Van Leuven
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819540&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wim.vanleuven@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Or just add the full article to the wiki? Isn't this terrific article just
&lt;br&gt;&amp;gt; core architecture stuff for HBase?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Stack [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819540&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saint.ack@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: woensdag 16 december 2009 22:46
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819540&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: Hbase store format
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  +1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 16, 2009, at 1:39 PM, Lars George &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819540&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lars.george@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Maybe we should add this to the article page up on wiki? ;)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Dec 16, 2009 at 10:12 PM, Andrew Purtell
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819540&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apurtell@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ----- Original Message ----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From: kishore g &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819540&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.kishore@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819540&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sent: Wed, December 16, 2009 1:03:05 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Subject: Hbase store format
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Whats the current implementation in hbase 0.20.2 for storing data.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; MapFile,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; HFile, TFile.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Also any pointers to links explaining the format will be helpful
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Kishore G
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26819540.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819240</id>
	<title>RE: Hbase store format</title>
	<published>2009-12-16T14:00:55Z</published>
	<updated>2009-12-16T14:00:55Z</updated>
	<author>
		<name>Wim Van Leuven (highestpoint)</name>
	</author>
	<content type="html">Or just add the full article to the wiki? Isn't this terrific article just
&lt;br&gt;core architecture stuff for HBase?
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Stack [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819240&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saint.ack@...&lt;/a&gt;] 
&lt;br&gt;Sent: woensdag 16 december 2009 22:46
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819240&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;Subject: Re: Hbase store format
&lt;br&gt;&lt;br&gt;&amp;nbsp; +1
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 16, 2009, at 1:39 PM, Lars George &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819240&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lars.george@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Maybe we should add this to the article page up on wiki? ;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Dec 16, 2009 at 10:12 PM, Andrew Purtell &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819240&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apurtell@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ----- Original Message ----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: kishore g &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819240&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.kishore@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819240&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Wed, December 16, 2009 1:03:05 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Hbase store format
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Whats the current implementation in hbase 0.20.2 for storing data.
&lt;br&gt;&amp;gt;&amp;gt; MapFile,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; HFile, TFile.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Also any pointers to links explaining the format will be helpful
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Kishore G
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26819240.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819194</id>
	<title>Re: Hbase store format</title>
	<published>2009-12-16T13:58:16Z</published>
	<updated>2009-12-16T13:58:16Z</updated>
	<author>
		<name>kishore g-2</name>
	</author>
	<content type="html">Yes, its very useful. Also the twiki
&lt;br&gt;&lt;a href=&quot;http://wiki.apache.org/hadoop/Hbase/HbaseArchitecture&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.apache.org/hadoop/Hbase/HbaseArchitecture&lt;/a&gt;&amp;nbsp;should have a diagram.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 1:45 PM, Stack &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819194&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saint.ack@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;+1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 16, 2009, at 1:39 PM, Lars George &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819194&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lars.george@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Maybe we should add this to the article page up on wiki? ;)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Dec 16, 2009 at 10:12 PM, Andrew Purtell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819194&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apurtell@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ----- Original Message ----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From: kishore g &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819194&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.kishore@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819194&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sent: Wed, December 16, 2009 1:03:05 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Subject: Hbase store format
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Whats the current implementation in hbase 0.20.2 for storing data.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; MapFile,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; HFile, TFile.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Also any pointers to links explaining the format will be helpful
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Kishore G
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26819194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819022</id>
	<title>Re: Hbase store format</title>
	<published>2009-12-16T13:45:32Z</published>
	<updated>2009-12-16T13:45:32Z</updated>
	<author>
		<name>stack-5</name>
	</author>
	<content type="html">&amp;nbsp; +1
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 16, 2009, at 1:39 PM, Lars George &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819022&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lars.george@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Maybe we should add this to the article page up on wiki? ;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Dec 16, 2009 at 10:12 PM, Andrew Purtell &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819022&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apurtell@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ----- Original Message ----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: kishore g &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819022&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.kishore@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819022&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Wed, December 16, 2009 1:03:05 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Hbase store format
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Whats the current implementation in hbase 0.20.2 for storing data.
&lt;br&gt;&amp;gt;&amp;gt; MapFile,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; HFile, TFile.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Also any pointers to links explaining the format will be helpful
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Kishore G
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26819022.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818934</id>
	<title>Re: Hbase store format</title>
	<published>2009-12-16T13:39:22Z</published>
	<updated>2009-12-16T13:39:22Z</updated>
	<author>
		<name>Lars George</name>
	</author>
	<content type="html">Maybe we should add this to the article page up on wiki? ;)
&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 10:12 PM, Andrew Purtell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818934&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apurtell@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message ----
&lt;br&gt;&amp;gt; &amp;gt; From: kishore g &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818934&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.kishore@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818934&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Sent: Wed, December 16, 2009 1:03:05 PM
&lt;br&gt;&amp;gt; &amp;gt; Subject: Hbase store format
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Whats the current implementation in hbase 0.20.2 for storing data.
&lt;br&gt;&amp;gt; MapFile,
&lt;br&gt;&amp;gt; &amp;gt; HFile, TFile.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Also any pointers to links explaining the format will be helpful
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; thanks,
&lt;br&gt;&amp;gt; &amp;gt; Kishore G
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26818934.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818626</id>
	<title>Re: Hbase store format</title>
	<published>2009-12-16T13:16:45Z</published>
	<updated>2009-12-16T13:16:45Z</updated>
	<author>
		<name>Ryan Rawson</name>
	</author>
	<content type="html">StoreFile.java:269 is the line where the tie in between HFile and the
&lt;br&gt;rest of HBase happens.
&lt;br&gt;&lt;br&gt;-ryan
&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 1:03 PM, kishore g &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818626&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.kishore@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Whats the current implementation in hbase 0.20.2 for storing data. MapFile,
&lt;br&gt;&amp;gt; HFile, TFile.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also any pointers to links explaining the format will be helpful
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt; Kishore G
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26818626.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818573</id>
	<title>Re: Hbase store format</title>
	<published>2009-12-16T13:12:42Z</published>
	<updated>2009-12-16T13:12:42Z</updated>
	<author>
		<name>Andrew Purtell-2</name>
	</author>
	<content type="html">&lt;a href=&quot;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.larsgeorge.com/2009/10/hbase-architecture-101-storage.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: kishore g &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818573&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.kishore@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818573&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Sent: Wed, December 16, 2009 1:03:05 PM
&lt;br&gt;&amp;gt; Subject: Hbase store format
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Whats the current implementation in hbase 0.20.2 for storing data. MapFile,
&lt;br&gt;&amp;gt; HFile, TFile.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Also any pointers to links explaining the format will be helpful
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt; Kishore G
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26818573.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818422</id>
	<title>Hbase store format</title>
	<published>2009-12-16T13:03:05Z</published>
	<updated>2009-12-16T13:03:05Z</updated>
	<author>
		<name>kishore g-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Whats the current implementation in hbase 0.20.2 for storing data. MapFile,
&lt;br&gt;HFile, TFile.
&lt;br&gt;&lt;br&gt;Also any pointers to links explaining the format will be helpful
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;Kishore G
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hbase-store-format-tp26818422p26818422.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26813826</id>
	<title>Re: read Filtered Rows From Secondary Index</title>
	<published>2009-12-16T08:16:52Z</published>
	<updated>2009-12-16T08:16:52Z</updated>
	<author>
		<name>Keith Thomas</name>
	</author>
	<content type="html">Apologies if this reply us not relevant, I'm posting just in case my approach to this problem is useful.
&lt;br&gt;&lt;br&gt;I'm using 20.1 and I'm looking to solve this sane problem by applying the filter to a scan on the root table &amp;nbsp;and using the results to create RowFilter instances which I use in a second scan. The second scan is against the indexed table.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;y_823910 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi there,
&lt;br&gt;&lt;br&gt;I don't know how to use ColumnValueFilter in hbase-0.20.2
&lt;br&gt;to read some rows through my built Secondary Index.
&lt;br&gt;Any suggestions or samples?
&lt;br&gt;&lt;br&gt;&lt;br&gt;public static void readFilteredRowsFromSecondaryIndex() throws IOException
&lt;br&gt;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndexedTable table = new IndexedTable(config,
&lt;br&gt;Bytes.toBytes(&amp;quot;test_table&amp;quot;));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Filter filter = &amp;nbsp;new
&lt;br&gt;ColumnValueFilter(Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CompareOp.EQUAL,
&lt;br&gt;Bytes.toBytes(&amp;quot;ray1-40&amp;quot;));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ResultScanner scanner = table.getIndexedScanner(&amp;quot;column1&amp;quot;,
&lt;br&gt;&lt;br&gt;HConstants.EMPTY_START_ROW,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new byte[][] {
&lt;br&gt;Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;),
&lt;br&gt;&lt;br&gt;Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;)},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;filter,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new byte[][] {
&lt;br&gt;Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;),
&lt;br&gt;&lt;br&gt;Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;)});
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (Result rowResult : scanner) {
&lt;br&gt;&lt;br&gt;System.out.println(Bytes.toString(rowResult.getValue(Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;))));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.close();
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------------------------------------------------------------------------------------
&lt;br&gt;public static void createTableWithSecondaryIndexes() throws IOException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //HBaseConfiguration conf = new HBaseConfiguration();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HTableDescriptor desc = new HTableDescriptor(&amp;quot;test_table&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; desc.addFamily(new HColumnDescriptor(&amp;quot;columnfamily1&amp;quot;));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndexedTableDescriptor idx_desc = new IndexedTableDescriptor(desc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; idx_desc.addIndex(new IndexSpecification(&amp;quot;column1&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;)));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndexedTableAdmin admin = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin = new IndexedTableAdmin(config);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (admin.tableExists(Bytes.toBytes(&amp;quot;test_table&amp;quot;))) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (admin.isTableEnabled(&amp;quot;test_table&amp;quot;)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.disableTable(Bytes.toBytes(&amp;quot;test_table&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.deleteTable(Bytes.toBytes(&amp;quot;test_table&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (admin.tableExists(Bytes.toBytes(&amp;quot;test_table-column1&amp;quot;))) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (admin.isTableEnabled(&amp;quot;test_table-column1&amp;quot;)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.disableTable(Bytes.toBytes(&amp;quot;test_table-column1&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.deleteTable(Bytes.toBytes(&amp;quot;test_table-column1&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.createIndexedTable(idx_desc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;public static void writeToTable() throws IOException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //HBaseConfiguration conf = new HBaseConfiguration();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndexedTable table = new IndexedTable(config,
&lt;br&gt;Bytes.toBytes(&amp;quot;test_table&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String row = &amp;quot;test_row&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Put row_update = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[] column = Bytes.toBytes(&amp;quot;columnfamily1&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[][] qualifier = new byte[][] {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bytes.toBytes(&amp;quot;column1&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bytes.toBytes(&amp;quot;column2&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bytes.toBytes(&amp;quot;column3&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 100; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row_update = new Put(Bytes.toBytes(row + i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row_update.add(column, qualifier[0], Bytes.toBytes(&amp;quot;ray1-&amp;quot; +
&lt;br&gt;(i/4)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row_update.add(column, qualifier[1], Bytes.toBytes(&amp;quot;ray2-&amp;quot; +
&lt;br&gt;i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row_update.add(column, qualifier[2], Bytes.toBytes(&amp;quot;ray3-&amp;quot; +
&lt;br&gt;i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.put(row_update);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.close();
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;Fleming Chiu(邱宏明)
&lt;br&gt;707-6128
&lt;br&gt;y_823910@tsmc.com
&lt;br&gt;週一無肉日吃素救地球(Meat Free Monday Taiwan)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;--------------------------------------------------------------------------- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TSMC PROPERTY &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;This email communication (and any attachments) is proprietary information &amp;nbsp; 
&lt;br&gt;&amp;nbsp;for the sole use of its &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;intended recipient. Any unauthorized review, use or distribution by anyone &amp;nbsp;
&lt;br&gt;&amp;nbsp;other than the intended &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;recipient is strictly prohibited. &amp;nbsp;If you are not the intended recipient, &amp;nbsp; 
&lt;br&gt;&amp;nbsp;please notify the sender by &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;replying to this email, and then delete this email and any copies of it &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;immediately. Thank you. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;--------------------------------------------------------------------------- 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/read-Filtered-Rows-From-Secondary-Index-tp26807781p26813826.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26813423</id>
	<title>Insert, update performance</title>
	<published>2009-12-16T07:52:11Z</published>
	<updated>2009-12-16T07:52:11Z</updated>
	<author>
		<name>Adam Silberstein</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;I¹m currently doing some tests comparing 2 use cases:
&lt;br&gt;6 servers
&lt;br&gt;2400 ops per second from 100 clients
&lt;br&gt;Enough ops total to take 30 minutes (2400 * 60 * 30)
&lt;br&gt;120 million 1KB records to start
&lt;br&gt;&lt;br&gt;Case A: Mix of 95% reads, 5% updates
&lt;br&gt;Case B: Mix of 95% reads, 5% inserts
&lt;br&gt;&lt;br&gt;From a client API standpoint, these cases are identical. The only difference
&lt;br&gt;is that in Case A I only do operations on the 120 million keys I already
&lt;br&gt;inserted. &amp;nbsp;In Case B, I do operations on new keys.
&lt;br&gt;&lt;br&gt;I was expecting performance to be similar, but I¹m having problems with Case
&lt;br&gt;B. &amp;nbsp;In particular, after running continuously for 5-10, the latencies go way
&lt;br&gt;up and my throughput goes way down to a couple of operations a second. &amp;nbsp;I
&lt;br&gt;left it like this for a while in case there were compactions going on, but
&lt;br&gt;it never returned to its original throughput. &amp;nbsp;I have no problems with Case
&lt;br&gt;A. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Any ideas on what¹s going on here? &amp;nbsp;It may be related to the concurrent read
&lt;br&gt;workload, since I successfully loaded 120 million records originally, and
&lt;br&gt;that took several hours.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Adam
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Insert%2C-update-performance-tp26813423p26813423.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807781</id>
	<title>read Filtered Rows From Secondary Index</title>
	<published>2009-12-16T00:27:00Z</published>
	<updated>2009-12-16T00:27:00Z</updated>
	<author>
		<name>y_823910</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;I don't know how to use ColumnValueFilter in hbase-0.20.2
&lt;br&gt;to read some rows through my built Secondary Index.
&lt;br&gt;Any suggestions or samples?
&lt;br&gt;&lt;br&gt;&lt;br&gt;public static void readFilteredRowsFromSecondaryIndex() throws IOException
&lt;br&gt;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndexedTable table = new IndexedTable(config,
&lt;br&gt;Bytes.toBytes(&amp;quot;test_table&amp;quot;));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Filter filter = &amp;nbsp;new
&lt;br&gt;ColumnValueFilter(Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CompareOp.EQUAL,
&lt;br&gt;Bytes.toBytes(&amp;quot;ray1-40&amp;quot;));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ResultScanner scanner = table.getIndexedScanner(&amp;quot;column1&amp;quot;,
&lt;br&gt;&lt;br&gt;HConstants.EMPTY_START_ROW,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new byte[][] {
&lt;br&gt;Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;),
&lt;br&gt;&lt;br&gt;Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;)},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;filter,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new byte[][] {
&lt;br&gt;Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;),
&lt;br&gt;&lt;br&gt;Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;)});
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (Result rowResult : scanner) {
&lt;br&gt;&lt;br&gt;System.out.println(Bytes.toString(rowResult.getValue(Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;))));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.close();
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------------------------------------------------------------------------------------
&lt;br&gt;public static void createTableWithSecondaryIndexes() throws IOException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //HBaseConfiguration conf = new HBaseConfiguration();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HTableDescriptor desc = new HTableDescriptor(&amp;quot;test_table&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; desc.addFamily(new HColumnDescriptor(&amp;quot;columnfamily1&amp;quot;));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndexedTableDescriptor idx_desc = new IndexedTableDescriptor(desc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; idx_desc.addIndex(new IndexSpecification(&amp;quot;column1&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bytes.toBytes(&amp;quot;columnfamily1:column1&amp;quot;)));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndexedTableAdmin admin = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin = new IndexedTableAdmin(config);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (admin.tableExists(Bytes.toBytes(&amp;quot;test_table&amp;quot;))) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (admin.isTableEnabled(&amp;quot;test_table&amp;quot;)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.disableTable(Bytes.toBytes(&amp;quot;test_table&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.deleteTable(Bytes.toBytes(&amp;quot;test_table&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (admin.tableExists(Bytes.toBytes(&amp;quot;test_table-column1&amp;quot;))) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (admin.isTableEnabled(&amp;quot;test_table-column1&amp;quot;)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.disableTable(Bytes.toBytes(&amp;quot;test_table-column1&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.deleteTable(Bytes.toBytes(&amp;quot;test_table-column1&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin.createIndexedTable(idx_desc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;public static void writeToTable() throws IOException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //HBaseConfiguration conf = new HBaseConfiguration();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IndexedTable table = new IndexedTable(config,
&lt;br&gt;Bytes.toBytes(&amp;quot;test_table&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String row = &amp;quot;test_row&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Put row_update = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[] column = Bytes.toBytes(&amp;quot;columnfamily1&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[][] qualifier = new byte[][] {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bytes.toBytes(&amp;quot;column1&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bytes.toBytes(&amp;quot;column2&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bytes.toBytes(&amp;quot;column3&amp;quot;),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 100; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row_update = new Put(Bytes.toBytes(row + i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row_update.add(column, qualifier[0], Bytes.toBytes(&amp;quot;ray1-&amp;quot; +
&lt;br&gt;(i/4)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row_update.add(column, qualifier[1], Bytes.toBytes(&amp;quot;ray2-&amp;quot; +
&lt;br&gt;i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row_update.add(column, qualifier[2], Bytes.toBytes(&amp;quot;ray3-&amp;quot; +
&lt;br&gt;i));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.put(row_update);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.close();
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;Fleming Chiu(邱宏明)
&lt;br&gt;707-6128
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807781&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;y_823910@...&lt;/a&gt;
&lt;br&gt;週一無肉日吃素救地球(Meat Free Monday Taiwan)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;--------------------------------------------------------------------------- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TSMC PROPERTY &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;This email communication (and any attachments) is proprietary information &amp;nbsp; 
&lt;br&gt;&amp;nbsp;for the sole use of its &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;intended recipient. Any unauthorized review, use or distribution by anyone &amp;nbsp;
&lt;br&gt;&amp;nbsp;other than the intended &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;recipient is strictly prohibited. &amp;nbsp;If you are not the intended recipient, &amp;nbsp; 
&lt;br&gt;&amp;nbsp;please notify the sender by &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;replying to this email, and then delete this email and any copies of it &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;immediately. Thank you. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;--------------------------------------------------------------------------- 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/read-Filtered-Rows-From-Secondary-Index-tp26807781p26807781.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806880</id>
	<title>Re: FilterList and SingleColumnValueFilter</title>
	<published>2009-12-15T22:42:49Z</published>
	<updated>2009-12-15T22:42:49Z</updated>
	<author>
		<name>Paul Ambrose</name>
	</author>
	<content type="html">Hey Michael,
&lt;br&gt;&lt;br&gt;If hbase-2037 will make it into 0.20.3, I am fine.
&lt;br&gt;If not, I would greatly appreciate you breaking it out for 0.20.3.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 15, 2009, at 10:28 PM, stack wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Paul:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I can apply the fix from hbase-2037... I can break it out of the posted
&lt;br&gt;&amp;gt; patch thats up there. &amp;nbsp;Just say the word.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; St.Ack
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 4:17 PM, Ram Kulbak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806880&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ram.kulbak@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Hi Paul,
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I've encountered the same problem. I think its fixed as part of
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/HBASE-2037&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HBASE-2037&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt; Yoram
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Dec 16, 2009 at 10:45 AM, Paul Ambrose &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806880&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pambrose@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I ran into some problems with FilterList and SingleColumnValueFilter.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I created a FilterList with MUST_PASS_ONE and two
&lt;br&gt;&amp;gt;&amp;gt; SingleColumnValueFilters
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (each testing equality on a different columns) and query some trivial
&lt;br&gt;&amp;gt;&amp;gt; data:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://pastie.org/744890&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pastie.org/744890&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The problem that I encountered were two-fold:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; SingleColumnValueFilter.filterKeyValues() returns ReturnCode.INCLUDE
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if the column names do not match. If FilterList is employed, then when
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; first Filter returns INCLUDE (because the column names do not match), no
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; more filters for that KeyValue are evaluated. &amp;nbsp;That is problematic
&lt;br&gt;&amp;gt;&amp;gt; because
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; when filterRow() is finally called for those filters, matchedColumn is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; never
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; found to be true because they were not invoked (due to FilterList exiting
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; from
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the filterList iteration when the name mismatched INCLUDE was returned).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The fix (at least for this scenario) is for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; SingleColumnValueFilter.filterKeyValues() to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; return ReturnCode.NEXT_ROW (rather than INCLUDE).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The second problem is at the bottom of FilterList.filterKeyValue()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; where ReturnCode.SKIP is returned if MUST_PASS_ONE is the operator,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; rather than always returning ReturnCode.INCLUDE and then leaving the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; final filter decision to be made by the call to filterRow(). &amp;nbsp; I am sure
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; there is a good
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; reason for returning SKIP in other scenarios, but it is problematic in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; mine.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Feedback would be much appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Paul
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FilterList-and-SingleColumnValueFilter-tp26803986p26806880.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806794</id>
	<title>Re: FilterList and SingleColumnValueFilter</title>
	<published>2009-12-15T22:28:09Z</published>
	<updated>2009-12-15T22:28:09Z</updated>
	<author>
		<name>stack-3</name>
	</author>
	<content type="html">Paul:
&lt;br&gt;&lt;br&gt;I can apply the fix from hbase-2037... I can break it out of the posted
&lt;br&gt;patch thats up there. &amp;nbsp;Just say the word.
&lt;br&gt;&lt;br&gt;St.Ack
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 4:17 PM, Ram Kulbak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806794&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ram.kulbak@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Paul,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've encountered the same problem. I think its fixed as part of
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/HBASE-2037&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HBASE-2037&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Yoram
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Dec 16, 2009 at 10:45 AM, Paul Ambrose &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806794&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pambrose@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I ran into some problems with FilterList and SingleColumnValueFilter.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I created a FilterList with MUST_PASS_ONE and two
&lt;br&gt;&amp;gt; SingleColumnValueFilters
&lt;br&gt;&amp;gt; &amp;gt; (each testing equality on a different columns) and query some trivial
&lt;br&gt;&amp;gt; data:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://pastie.org/744890&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pastie.org/744890&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The problem that I encountered were two-fold:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; SingleColumnValueFilter.filterKeyValues() returns ReturnCode.INCLUDE
&lt;br&gt;&amp;gt; &amp;gt; if the column names do not match. If FilterList is employed, then when
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; first Filter returns INCLUDE (because the column names do not match), no
&lt;br&gt;&amp;gt; &amp;gt; more filters for that KeyValue are evaluated. &amp;nbsp;That is problematic
&lt;br&gt;&amp;gt; because
&lt;br&gt;&amp;gt; &amp;gt; when filterRow() is finally called for those filters, matchedColumn is
&lt;br&gt;&amp;gt; &amp;gt; never
&lt;br&gt;&amp;gt; &amp;gt; found to be true because they were not invoked (due to FilterList exiting
&lt;br&gt;&amp;gt; &amp;gt; from
&lt;br&gt;&amp;gt; &amp;gt; the filterList iteration when the name mismatched INCLUDE was returned).
&lt;br&gt;&amp;gt; &amp;gt; The fix (at least for this scenario) is for
&lt;br&gt;&amp;gt; &amp;gt; SingleColumnValueFilter.filterKeyValues() to
&lt;br&gt;&amp;gt; &amp;gt; return ReturnCode.NEXT_ROW (rather than INCLUDE).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The second problem is at the bottom of FilterList.filterKeyValue()
&lt;br&gt;&amp;gt; &amp;gt; where ReturnCode.SKIP is returned if MUST_PASS_ONE is the operator,
&lt;br&gt;&amp;gt; &amp;gt; rather than always returning ReturnCode.INCLUDE and then leaving the
&lt;br&gt;&amp;gt; &amp;gt; final filter decision to be made by the call to filterRow(). &amp;nbsp; I am sure
&lt;br&gt;&amp;gt; &amp;gt; there is a good
&lt;br&gt;&amp;gt; &amp;gt; reason for returning SKIP in other scenarios, but it is problematic in
&lt;br&gt;&amp;gt; &amp;gt; mine.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Feedback would be much appreciated.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Paul
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FilterList-and-SingleColumnValueFilter-tp26803986p26806794.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26804343</id>
	<title>Re: HBase Utility functions (for Java 5+)</title>
	<published>2009-12-15T16:28:31Z</published>
	<updated>2009-12-15T16:28:31Z</updated>
	<author>
		<name>Andrew Purtell-2</name>
	</author>
	<content type="html">Thanks for the feedback Paul.
&lt;br&gt;&lt;br&gt;I agree the Builder pattern is an interesting option. Please see
&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/HBASE-2051&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HBASE-2051&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; - Andy
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;________________________________
&lt;br&gt;From: Paul Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26804343&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;psmith@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26804343&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;Sent: Tue, December 15, 2009 3:21:44 PM
&lt;br&gt;Subject: Re: HBase Utility functions (for Java 5+)
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 16/12/2009, at 7:04 AM, stack wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 9:56 AM, Kevin Peterson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26804343&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kevinpet@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; These kinds of cleaner APIs would be a good way to prevent the standard
&lt;br&gt;&amp;gt;&amp;gt; situation of one engineer on the team figuring out HBase, then others say
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;why is this so complicated&amp;quot; so they write an internal set of wrappers and
&lt;br&gt;&amp;gt;&amp;gt; utility methods.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This wouldn't solve the problems for people who want a full ORM, but I think
&lt;br&gt;&amp;gt;&amp;gt; there's an in-between sweet spot that abstracts away byte[] but still
&lt;br&gt;&amp;gt;&amp;gt; exposes column families and such.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What do fellas think of Lars' George's genercizing (sp? word?) of the client
&lt;br&gt;&amp;gt; API? &amp;nbsp;See his patch up in &lt;a href=&quot;https://issues.apache.org/jira/browse/HBASE-1990&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HBASE-1990&lt;/a&gt;.
&lt;br&gt;&amp;gt; Would this be enough?
&lt;br&gt;&amp;gt; St.Ack
&lt;/div&gt;&lt;br&gt;That's a pretty good start, but I think a good collection of useful builders and utilities that handle the 80% case will help HBase gain much more traction. &amp;nbsp;As an person starting with HBase, there are a lot of concepts to get, Bytes definitely get in the way of seeing the real underlying patterns. &amp;nbsp;I'm a total believer in understanding the internals to get the best out of a product, but that often comes after experimentation, and these high-level libraries grease the wheels for faster 'grok'ing the concepts.
&lt;br&gt;&lt;br&gt;Thinking out loud here, but something like this may be useful (more useful?, I dunno, I'm still used to this):
&lt;br&gt;&lt;br&gt;PutBuilder builder = new PutBuilder(hTable);
&lt;br&gt;// first Row
&lt;br&gt;builder.withRowKey(1stRowKey).withColumnFamily(&amp;quot;foo&amp;quot;).put(&amp;quot;columnA&amp;quot;, valueA).put(&amp;quot;columnB&amp;quot;,valueB);
&lt;br&gt;// secondRow
&lt;br&gt;builder.withRowKey(2ndRowKey).withColumnFamily(&amp;quot;eek&amp;quot;).put(&amp;quot;columnC&amp;quot;, valueC).put(&amp;quot;columnD&amp;quot;,valueD);
&lt;br&gt;...
&lt;br&gt;builder.putAll();
&lt;br&gt;&lt;br&gt;I also feel a little silly, because I've only JUST discovered the Writables class, my initial example of packing 4 ints is silly, a simple Class that implements Writeable is a much more elegant solution (I wasn't sure why Bytes.add(..) only took 2 or 3 args).
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HBase-Utility-functions-%28for-Java-5%2B%29-tp26789004p26804343.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26804269</id>
	<title>Re: FilterList and SingleColumnValueFilter</title>
	<published>2009-12-15T16:17:20Z</published>
	<updated>2009-12-15T16:17:20Z</updated>
	<author>
		<name>Ram Kulbak</name>
	</author>
	<content type="html">Hi Paul,
&lt;br&gt;&lt;br&gt;I've encountered the same problem. I think its fixed as part of
&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/HBASE-2037&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HBASE-2037&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Yoram
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 10:45 AM, Paul Ambrose &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26804269&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pambrose@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I ran into some problems with FilterList and SingleColumnValueFilter.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I created a FilterList with MUST_PASS_ONE and two SingleColumnValueFilters
&lt;br&gt;&amp;gt; (each testing equality on a different columns) and query some trivial data:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://pastie.org/744890&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pastie.org/744890&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The problem that I encountered were two-fold:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SingleColumnValueFilter.filterKeyValues() returns ReturnCode.INCLUDE
&lt;br&gt;&amp;gt; if the column names do not match. If FilterList is employed, then when the
&lt;br&gt;&amp;gt; first Filter returns INCLUDE (because the column names do not match), no
&lt;br&gt;&amp;gt; more filters for that KeyValue are evaluated. &amp;nbsp;That is problematic because
&lt;br&gt;&amp;gt; when filterRow() is finally called for those filters, matchedColumn is
&lt;br&gt;&amp;gt; never
&lt;br&gt;&amp;gt; found to be true because they were not invoked (due to FilterList exiting
&lt;br&gt;&amp;gt; from
&lt;br&gt;&amp;gt; the filterList iteration when the name mismatched INCLUDE was returned).
&lt;br&gt;&amp;gt; The fix (at least for this scenario) is for
&lt;br&gt;&amp;gt; SingleColumnValueFilter.filterKeyValues() to
&lt;br&gt;&amp;gt; return ReturnCode.NEXT_ROW (rather than INCLUDE).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The second problem is at the bottom of FilterList.filterKeyValue()
&lt;br&gt;&amp;gt; where ReturnCode.SKIP is returned if MUST_PASS_ONE is the operator,
&lt;br&gt;&amp;gt; rather than always returning ReturnCode.INCLUDE and then leaving the
&lt;br&gt;&amp;gt; final filter decision to be made by the call to filterRow(). &amp;nbsp; I am sure
&lt;br&gt;&amp;gt; there is a good
&lt;br&gt;&amp;gt; reason for returning SKIP in other scenarios, but it is problematic in
&lt;br&gt;&amp;gt; mine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Feedback would be much appreciated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Paul
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FilterList-and-SingleColumnValueFilter-tp26803986p26804269.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803986</id>
	<title>FilterList and SingleColumnValueFilter</title>
	<published>2009-12-15T15:45:37Z</published>
	<updated>2009-12-15T15:45:37Z</updated>
	<author>
		<name>Paul Ambrose</name>
	</author>
	<content type="html">I ran into some problems with FilterList and SingleColumnValueFilter.
&lt;br&gt;&lt;br&gt;I created a FilterList with MUST_PASS_ONE and two SingleColumnValueFilters
&lt;br&gt;(each testing equality on a different columns) and query some trivial data:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://pastie.org/744890&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pastie.org/744890&lt;/a&gt;&lt;br&gt;&lt;br&gt;The problem that I encountered were two-fold:
&lt;br&gt;&lt;br&gt;SingleColumnValueFilter.filterKeyValues() returns ReturnCode.INCLUDE
&lt;br&gt;if the column names do not match. If FilterList is employed, then when the
&lt;br&gt;first Filter returns INCLUDE (because the column names do not match), no 
&lt;br&gt;more filters for that KeyValue are evaluated. &amp;nbsp;That is problematic because
&lt;br&gt;when filterRow() is finally called for those filters, matchedColumn is never
&lt;br&gt;found to be true because they were not invoked (due to FilterList exiting from 
&lt;br&gt;the filterList iteration when the name mismatched INCLUDE was returned). &amp;nbsp;
&lt;br&gt;The fix (at least for this scenario) is for SingleColumnValueFilter.filterKeyValues() to 
&lt;br&gt;return ReturnCode.NEXT_ROW (rather than INCLUDE).
&lt;br&gt;&lt;br&gt;The second problem is at the bottom of FilterList.filterKeyValue()
&lt;br&gt;where ReturnCode.SKIP is returned if MUST_PASS_ONE is the operator,
&lt;br&gt;rather than always returning ReturnCode.INCLUDE and then leaving the
&lt;br&gt;final filter decision to be made by the call to filterRow(). &amp;nbsp; I am sure there is a good 
&lt;br&gt;reason for returning SKIP in other scenarios, but it is problematic in mine.
&lt;br&gt;&lt;br&gt;Feedback would be much appreciated.
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FilterList-and-SingleColumnValueFilter-tp26803986p26803986.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803698</id>
	<title>Re: HBase Utility functions (for Java 5+)</title>
	<published>2009-12-15T15:21:44Z</published>
	<updated>2009-12-15T15:21:44Z</updated>
	<author>
		<name>Paul Smith-2</name>
	</author>
	<content type="html">&lt;br&gt;On 16/12/2009, at 7:04 AM, stack wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 9:56 AM, Kevin Peterson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26803698&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kevinpet@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; These kinds of cleaner APIs would be a good way to prevent the standard
&lt;br&gt;&amp;gt;&amp;gt; situation of one engineer on the team figuring out HBase, then others say
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;why is this so complicated&amp;quot; so they write an internal set of wrappers and
&lt;br&gt;&amp;gt;&amp;gt; utility methods.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This wouldn't solve the problems for people who want a full ORM, but I think
&lt;br&gt;&amp;gt;&amp;gt; there's an in-between sweet spot that abstracts away byte[] but still
&lt;br&gt;&amp;gt;&amp;gt; exposes column families and such.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What do fellas think of Lars' George's genercizing (sp? word?) of the client
&lt;br&gt;&amp;gt; API? &amp;nbsp;See his patch up in &lt;a href=&quot;https://issues.apache.org/jira/browse/HBASE-1990&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HBASE-1990&lt;/a&gt;.
&lt;br&gt;&amp;gt; Would this be enough?
&lt;br&gt;&amp;gt; St.Ack
&lt;/div&gt;&lt;br&gt;That's a pretty good start, but I think a good collection of useful builders and utilities that handle the 80% case will help HBase gain much more traction. &amp;nbsp;As an person starting with HBase, there are a lot of concepts to get, Bytes definitely get in the way of seeing the real underlying patterns. &amp;nbsp;I'm a total believer in understanding the internals to get the best out of a product, but that often comes after experimentation, and these high-level libraries grease the wheels for faster 'grok'ing the concepts.
&lt;br&gt;&lt;br&gt;Thinking out loud here, but something like this may be useful (more useful?, I dunno, I'm still used to this):
&lt;br&gt;&lt;br&gt;PutBuilder builder = new PutBuilder(hTable);
&lt;br&gt;// first Row
&lt;br&gt;builder.withRowKey(1stRowKey).withColumnFamily(&amp;quot;foo&amp;quot;).put(&amp;quot;columnA&amp;quot;, valueA).put(&amp;quot;columnB&amp;quot;,valueB);
&lt;br&gt;// secondRow
&lt;br&gt;builder.withRowKey(2ndRowKey).withColumnFamily(&amp;quot;eek&amp;quot;).put(&amp;quot;columnC&amp;quot;, valueC).put(&amp;quot;columnD&amp;quot;,valueD);
&lt;br&gt;..
&lt;br&gt;builder.putAll();
&lt;br&gt;&lt;br&gt;I also feel a little silly, because I've only JUST discovered the Writables class, my initial example of packing 4 ints is silly, a simple Class that implements Writeable is a much more elegant solution (I wasn't sure why Bytes.add(..) only took 2 or 3 args).
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HBase-Utility-functions-%28for-Java-5%2B%29-tp26789004p26803698.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803627</id>
	<title>Re: hlogs do not get cleared</title>
	<published>2009-12-15T15:17:07Z</published>
	<updated>2009-12-15T15:17:07Z</updated>
	<author>
		<name>Kevin Peterson</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 10:43 AM, Jean-Daniel Cryans &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26803627&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jdcryans@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Too many hlogs means that the inserts are hitting a lot of regions,
&lt;br&gt;&amp;gt; that those regions aren't filled enough to flush so that we have to
&lt;br&gt;&amp;gt; force flush them to give some room. When you added region servers, it
&lt;br&gt;&amp;gt; spread the regions load so that hlogs were getting filled at a slower
&lt;br&gt;&amp;gt; rate.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Could you tell us more about the rate of insertion, size of data, and
&lt;br&gt;&amp;gt; number of regions per region server?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;This makes some sense now. I currently have 2200 regions across 3 tables. My
&lt;br&gt;largest table accounts for about 1600 of those regions and is mostly active
&lt;br&gt;at one end of the keyspace -- our key is based on date, but data only
&lt;br&gt;roughly arrives in order. I also write to two secondary indexes, which have
&lt;br&gt;no pattern to the key at all. One of these secondary tables has 488 regions
&lt;br&gt;and the other has 96 regions.
&lt;br&gt;&lt;br&gt;We write about 10M items per day to the main table (articles). All of these
&lt;br&gt;get written to one of the secondary indexes (article-ids). About a third get
&lt;br&gt;written to the other secondary index. Total volume of data is about 10GB /
&lt;br&gt;day written.
&lt;br&gt;&lt;br&gt;I think the key is as you say that the regions aren't filled enough to
&lt;br&gt;flush. The articles table gets mostly written to near one end and I see
&lt;br&gt;splits happening regularly. The index tables have no pattern so the 10
&lt;br&gt;millions writes get scattered across the different regions. I've looked more
&lt;br&gt;closely at a log file (linked below), and if I forget about my main table
&lt;br&gt;(which would tend to get flushed), and look only at the indexes, this seems
&lt;br&gt;to be what's happening:
&lt;br&gt;&lt;br&gt;1. Up to maxLogs HLogs, it doesn't do any flushes.
&lt;br&gt;2. Once it gets above maxLogs, it will start flushing one region each time
&lt;br&gt;it creates a new HLog.
&lt;br&gt;3. If the first HLog had edits for say 50 regions, it will need to flush the
&lt;br&gt;region with oldest edits 50 times before the HLog can be removed.
&lt;br&gt;&lt;br&gt;If N is the number of regions getting written to, but not getting enough
&lt;br&gt;writes to flush on their own, then I think this converges to maxLogs + N
&lt;br&gt;logs on average. If I think of maxLogs as &amp;quot;number of logs to start flushing
&lt;br&gt;regions at&amp;quot; this makes sense.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://kdpeterson.net/paste/hbase-hadoop-regionserver-mi-prod-app35.ec2.biz360.com.log.2009-12-14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kdpeterson.net/paste/hbase-hadoop-regionserver-mi-prod-app35.ec2.biz360.com.log.2009-12-14&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/hlogs-do-not-get-cleared-tp26799518p26803627.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26801681</id>
	<title>Re: Help on HBase shell alter command usage</title>
	<published>2009-12-15T12:59:29Z</published>
	<updated>2009-12-15T12:59:29Z</updated>
	<author>
		<name>Ted Yu-3</name>
	</author>
	<content type="html">That works.
&lt;br&gt;&lt;br&gt;scan command gives values for columns.
&lt;br&gt;Is there a shell command which lists unique row values, such as
&lt;br&gt;'com.onsoft.www:http/' ?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 12:09 PM, stack &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801681&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stack@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Try:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; hbase(main):005:0&amp;gt; get 'crawltable', 'com.onsoft.www:http/', { COLUMNS =&amp;gt;
&lt;br&gt;&amp;gt; 'stt:'}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i.e. '=&amp;gt;' rather than '='. &amp;nbsp;Also, its COLUMNS (uppercase I believe) rather
&lt;br&gt;&amp;gt; than column.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Run 'help' in the shell for help and examples.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; St.Ack
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 11:53 AM, Ted Yu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801681&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;yuzhihong@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; I saw the following from scan 'crawltable' command in hbase shell:
&lt;br&gt;&amp;gt; &amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;com.onsoft.www:http/ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=stt:, timestamp=1260405530801,
&lt;br&gt;&amp;gt; &amp;gt; value=\003
&lt;br&gt;&amp;gt; &amp;gt; 3 row(s) in 0.2490 seconds
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; How do I query the value for stt column ?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; hbase(main):005:0&amp;gt; get 'crawltable', 'com.onsoft.www:http/', {
&lt;br&gt;&amp;gt; &amp;gt; column='stt:'
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt; SyntaxError: (hbase):6: odd number list for Hash.
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from (hbase):6
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Can someone explain this 'odd number' error ?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Mon, Dec 14, 2009 at 10:16 PM, stack &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801681&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stack@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Are you using hbase 0.20? &amp;nbsp;If so, there is no 'compress'. &amp;nbsp;Its NONE,
&lt;br&gt;&amp;gt; LZO,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; or
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; GZIP (You'll have to build lzo yourself. &amp;nbsp;See hbase wiki for how).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; See the shell help. &amp;nbsp;It has examples of how to change parameters on
&lt;br&gt;&amp;gt; &amp;gt; column
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; families.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; St.Ack
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 2009/12/14 Xin Jing &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801681&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xinjing@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I want to change the column family property for a existing hbase
&lt;br&gt;&amp;gt; table.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Setting one comlumn family COMPRESSION from 'none' to comress, and
&lt;br&gt;&amp;gt; &amp;gt; chagne
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; one column family IN_MEMORY from 'false' to 'true'.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I want to use hbase shell to achieve that, but I cannot find the
&lt;br&gt;&amp;gt; &amp;gt; detailed
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; description on 'alter' command. Could anyone point me to a reference
&lt;br&gt;&amp;gt; on
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; that?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thanks
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; - Xin
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-on-HBase-shell-alter-command-usage-tp26789868p26801681.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26801028</id>
	<title>Re: HBase Utility functions (for Java 5+)</title>
	<published>2009-12-15T12:14:21Z</published>
	<updated>2009-12-15T12:14:21Z</updated>
	<author>
		<name>TimRobertson100</name>
	</author>
	<content type="html">Seems like an intuitive option to me.
&lt;br&gt;&lt;br&gt;Tim
&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 9:04 PM, stack &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801028&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stack@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 9:56 AM, Kevin Peterson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801028&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kevinpet@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; These kinds of cleaner APIs would be a good way to prevent the standard
&lt;br&gt;&amp;gt;&amp;gt; situation of one engineer on the team figuring out HBase, then others say
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;why is this so complicated&amp;quot; so they write an internal set of wrappers and
&lt;br&gt;&amp;gt;&amp;gt; utility methods.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This wouldn't solve the problems for people who want a full ORM, but I think
&lt;br&gt;&amp;gt;&amp;gt; there's an in-between sweet spot that abstracts away byte[] but still
&lt;br&gt;&amp;gt;&amp;gt; exposes column families and such.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What do fellas think of Lars' George's genercizing (sp? word?) of the client
&lt;br&gt;&amp;gt; API?  See his patch up in &lt;a href=&quot;https://issues.apache.org/jira/browse/HBASE-1990&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HBASE-1990&lt;/a&gt;.
&lt;br&gt;&amp;gt; Would this be enough?
&lt;br&gt;&amp;gt; St.Ack
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HBase-Utility-functions-%28for-Java-5%2B%29-tp26789004p26801028.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800966</id>
	<title>Re: Help on HBase shell alter command usage</title>
	<published>2009-12-15T12:09:18Z</published>
	<updated>2009-12-15T12:09:18Z</updated>
	<author>
		<name>stack-3</name>
	</author>
	<content type="html">Try:
&lt;br&gt;&lt;br&gt;hbase(main):005:0&amp;gt; get 'crawltable', 'com.onsoft.www:http/', { COLUMNS =&amp;gt;
&lt;br&gt;'stt:'}
&lt;br&gt;&lt;br&gt;i.e. '=&amp;gt;' rather than '='. &amp;nbsp;Also, its COLUMNS (uppercase I believe) rather
&lt;br&gt;than column.
&lt;br&gt;&lt;br&gt;Run 'help' in the shell for help and examples.
&lt;br&gt;&lt;br&gt;St.Ack
&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 11:53 AM, Ted Yu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800966&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;yuzhihong@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I saw the following from scan 'crawltable' command in hbase shell:
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; &amp;nbsp;com.onsoft.www:http/ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=stt:, timestamp=1260405530801,
&lt;br&gt;&amp;gt; value=\003
&lt;br&gt;&amp;gt; 3 row(s) in 0.2490 seconds
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How do I query the value for stt column ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; hbase(main):005:0&amp;gt; get 'crawltable', 'com.onsoft.www:http/', {
&lt;br&gt;&amp;gt; column='stt:'
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; SyntaxError: (hbase):6: odd number list for Hash.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from (hbase):6
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can someone explain this 'odd number' error ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Dec 14, 2009 at 10:16 PM, stack &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800966&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stack@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Are you using hbase 0.20? &amp;nbsp;If so, there is no 'compress'. &amp;nbsp;Its NONE, LZO,
&lt;br&gt;&amp;gt; &amp;gt; or
&lt;br&gt;&amp;gt; &amp;gt; GZIP (You'll have to build lzo yourself. &amp;nbsp;See hbase wiki for how).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; See the shell help. &amp;nbsp;It has examples of how to change parameters on
&lt;br&gt;&amp;gt; column
&lt;br&gt;&amp;gt; &amp;gt; families.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; St.Ack
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 2009/12/14 Xin Jing &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800966&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xinjing@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I want to change the column family property for a existing hbase table.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Setting one comlumn family COMPRESSION from 'none' to comress, and
&lt;br&gt;&amp;gt; chagne
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; one column family IN_MEMORY from 'false' to 'true'.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I want to use hbase shell to achieve that, but I cannot find the
&lt;br&gt;&amp;gt; detailed
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; description on 'alter' command. Could anyone point me to a reference on
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; that?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; - Xin
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-on-HBase-shell-alter-command-usage-tp26789868p26800966.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800890</id>
	<title>Re: HBase Utility functions (for Java 5+)</title>
	<published>2009-12-15T12:04:23Z</published>
	<updated>2009-12-15T12:04:23Z</updated>
	<author>
		<name>stack-3</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 9:56 AM, Kevin Peterson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800890&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kevinpet@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; These kinds of cleaner APIs would be a good way to prevent the standard
&lt;br&gt;&amp;gt; situation of one engineer on the team figuring out HBase, then others say
&lt;br&gt;&amp;gt; &amp;quot;why is this so complicated&amp;quot; so they write an internal set of wrappers and
&lt;br&gt;&amp;gt; utility methods.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;This wouldn't solve the problems for people who want a full ORM, but I think
&lt;br&gt;&amp;gt; there's an in-between sweet spot that abstracts away byte[] but still
&lt;br&gt;&amp;gt; exposes column families and such.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;What do fellas think of Lars' George's genercizing (sp? word?) of the client
&lt;br&gt;API? &amp;nbsp;See his patch up in &lt;a href=&quot;https://issues.apache.org/jira/browse/HBASE-1990&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HBASE-1990&lt;/a&gt;.
&lt;br&gt;Would this be enough?
&lt;br&gt;St.Ack
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HBase-Utility-functions-%28for-Java-5%2B%29-tp26789004p26800890.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800741</id>
	<title>Re: Help on HBase shell alter command usage</title>
	<published>2009-12-15T11:53:18Z</published>
	<updated>2009-12-15T11:53:18Z</updated>
	<author>
		<name>Ted Yu-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I saw the following from scan 'crawltable' command in hbase shell:
&lt;br&gt;...
&lt;br&gt;&amp;nbsp;com.onsoft.www:http/ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=stt:, timestamp=1260405530801,
&lt;br&gt;value=\003
&lt;br&gt;3 row(s) in 0.2490 seconds
&lt;br&gt;&lt;br&gt;How do I query the value for stt column ?
&lt;br&gt;&lt;br&gt;hbase(main):005:0&amp;gt; get 'crawltable', 'com.onsoft.www:http/', { column='stt:'
&lt;br&gt;}
&lt;br&gt;SyntaxError: (hbase):6: odd number list for Hash.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from (hbase):6
&lt;br&gt;&lt;br&gt;Can someone explain this 'odd number' error ?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;On Mon, Dec 14, 2009 at 10:16 PM, stack &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800741&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stack@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Are you using hbase 0.20? &amp;nbsp;If so, there is no 'compress'. &amp;nbsp;Its NONE, LZO,
&lt;br&gt;&amp;gt; or
&lt;br&gt;&amp;gt; GZIP (You'll have to build lzo yourself. &amp;nbsp;See hbase wiki for how).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; See the shell help. &amp;nbsp;It has examples of how to change parameters on column
&lt;br&gt;&amp;gt; families.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; St.Ack
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/12/14 Xin Jing &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800741&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xinjing@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I want to change the column family property for a existing hbase table.
&lt;br&gt;&amp;gt; &amp;gt; Setting one comlumn family COMPRESSION from 'none' to comress, and chagne
&lt;br&gt;&amp;gt; &amp;gt; one column family IN_MEMORY from 'false' to 'true'.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I want to use hbase shell to achieve that, but I cannot find the detailed
&lt;br&gt;&amp;gt; &amp;gt; description on 'alter' command. Could anyone point me to a reference on
&lt;br&gt;&amp;gt; &amp;gt; that?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks
&lt;br&gt;&amp;gt; &amp;gt; - Xin
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-on-HBase-shell-alter-command-usage-tp26789868p26800741.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800687</id>
	<title>Re: hlogs do not get cleared</title>
	<published>2009-12-15T11:49:46Z</published>
	<updated>2009-12-15T11:49:46Z</updated>
	<author>
		<name>stack-3</name>
	</author>
	<content type="html">I'd advise setting the upper limit for WALs back down to 32 rather than the
&lt;br&gt;96 you have. &amp;nbsp;Lets figure why old logs are not being cleared up even if only
&lt;br&gt;32. &amp;nbsp;When 96, it means that on crash, the log splitting process has more
&lt;br&gt;logs to process (~96 rather than ~32). &amp;nbsp;It'll take longer for the split
&lt;br&gt;process to run and therefore longer for the regions to come back on line.
&lt;br&gt;&lt;br&gt;Is this the state of things across all regionservers or just one or two? &amp;nbsp;As
&lt;br&gt;J-D asks, your loading profile, how many regions per regionserver would be
&lt;br&gt;of interest. &amp;nbsp;Next up would be your putting up a regionserver log that we
&lt;br&gt;could pull and look at. &amp;nbsp;We'd check the edit sequence numbers to figure why
&lt;br&gt;we're not letting logs go.
&lt;br&gt;&lt;br&gt;Thanks Kevin,
&lt;br&gt;St.Ack
&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 10:34 AM, Kevin Peterson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800687&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kevinpet@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; We're running a 13 node HBase cluster. We had some problems a week ago with
&lt;br&gt;&amp;gt; it being overloaded and errors related to not being able to find a block on
&lt;br&gt;&amp;gt; HDFS, but adding four more nodes and increasing max heap from 3GB to 4.5GB
&lt;br&gt;&amp;gt; on all nodes fixed any problems.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Looking at the logs now, though, we see that HLogs are not getting removed:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009-12-15 01:45:48,426 INFO org.apache.hadoop.hbase.regionserver.HLog:
&lt;br&gt;&amp;gt; Roll
&lt;br&gt;&amp;gt; /hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260867136036,
&lt;br&gt;&amp;gt; entries=210524, calcsize=63757422, filesize=41073798. New hlog
&lt;br&gt;&amp;gt; /hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260870348421
&lt;br&gt;&amp;gt; 2009-12-15 01:45:48,427 INFO org.apache.hadoop.hbase.regionserver.HLog: Too
&lt;br&gt;&amp;gt; many hlogs: logs=130, maxlogs=96; forcing flush of region with oldest
&lt;br&gt;&amp;gt; edits:
&lt;br&gt;&amp;gt; articles-article-id,f15489ea-38a4-4127-9179-1b2dc5f3b5d4,1260083783909
&lt;br&gt;&amp;gt; 2009-12-15 01:57:14,188 INFO org.apache.hadoop.hbase.regionserver.HRegion:
&lt;br&gt;&amp;gt; Starting compaction on region
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; articles,\x00\x00\x01\x25\x8C\x0F\xCB\x18\xB5U\xF7\xC6\x5DoH\xB8\x98\xEBH,E\x7C\x07\x14,1260830133341
&lt;br&gt;&amp;gt; 2009-12-15 01:57:17,519 INFO org.apache.hadoop.hbase.regionserver.HLog:
&lt;br&gt;&amp;gt; Roll
&lt;br&gt;&amp;gt; /hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260870348421,
&lt;br&gt;&amp;gt; entries=92795, calcsize=63908073, filesize=54042783. New hlog
&lt;br&gt;&amp;gt; /hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260871037510
&lt;br&gt;&amp;gt; 2009-12-15 01:57:17,519 INFO org.apache.hadoop.hbase.regionserver.HLog: Too
&lt;br&gt;&amp;gt; many hlogs: logs=131, maxlogs=96; forcing flush of region with oldest
&lt;br&gt;&amp;gt; edits:
&lt;br&gt;&amp;gt; articles-article-id,f1cd1b02-3d1b-453c-b44f-94ec5a1e3a46,1260007536878
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From reading the log message, I interpret this as saying that every time it
&lt;br&gt;&amp;gt; rolls an hlog, if there are more than maxlogs logs, it will flush one
&lt;br&gt;&amp;gt; region. I'm assuming that a log could have edits for multiple regions, so
&lt;br&gt;&amp;gt; this seems to mean that if we have 100 regions and maxlogs set to 96, if it
&lt;br&gt;&amp;gt; flushes one region each time it rolls a log, it will create 100 logs before
&lt;br&gt;&amp;gt; it flushes all regions and is able to delete the log, so it will reach
&lt;br&gt;&amp;gt; steady state at 196 hlogs. Is this correct?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We're concerned because when we had problems last week, we saw lots of log
&lt;br&gt;&amp;gt; messages related to &amp;quot;Too many hlogs&amp;quot; and had assumed they were related to
&lt;br&gt;&amp;gt; the problems. Is this anything to worry about?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/hlogs-do-not-get-cleared-tp26799518p26800687.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800592</id>
	<title>Re: running unit test based on HBaseClusterTestCase</title>
	<published>2009-12-15T11:44:25Z</published>
	<updated>2009-12-15T11:44:25Z</updated>
	<author>
		<name>stack-3</name>
	</author>
	<content type="html">Order can be important. &amp;nbsp;Don't forget to include conf directories. &amp;nbsp;Below is
&lt;br&gt;from an eclipse .classpath that seems to work for me:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;conf&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;src&amp;quot; path=&amp;quot;src/test&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;src&amp;quot; path=&amp;quot;src/java&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jackson-core-asl-1.0.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;build/lib/jetty-6.1.14.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/commons-cli-2.0-SNAPSHOT.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;lib/commons-el-from-jetty-5.1.4.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/commons-httpclient-3.0.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/commons-logging-1.0.4.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;lib/commons-logging-api-1.0.4.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/commons-math-1.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jasper-compiler-5.5.12.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jasper-runtime-5.5.12.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jetty-6.1.14.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jetty-util-6.1.14.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jruby-complete-1.3.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/json.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jsp-2.1/jsp-2.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jsp-2.1/jsp-api-2.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/junit-4.7.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/libthrift-r771587.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/log4j-1.2.15.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/lucene-core-2.2.0.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/zookeeper-3.2.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;src/contrib/stargate/lib/asm-3.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;src/contrib/stargate/lib/commons-codec-1.3.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;src/contrib/stargate/lib/jaxb-impl-2.1.10.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;src/contrib/stargate/lib/jersey-core-1.1.0-ea.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;src/contrib/stargate/lib/jersey-json-1.1.0-ea.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;src/contrib/stargate/lib/jersey-server-1.1.0-ea.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;con&amp;quot;
&lt;br&gt;path=&amp;quot;org.eclipse.jdt.launching.JRE_CONTAINER&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/servlet-api-2.5-6.1.14.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;build/hbase-0.21.0-dev.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/avro-1.2.0.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot; path=&amp;quot;lib/jackson-mapper-asl-1.0.1.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;lib/hadoop-core-0.21.0-SNAPSHOT-r832250.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;lib/hadoop-core-test-0.21.0-SNAPSHOT-r832250.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;lib/hadoop-mapred-0.21.0-dev-r833993.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;lib/hadoop-mapred-test-0.21.0-dev-r833993.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;lib/hadoop-hdfs-0.21.0-dev-r836012.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;lib&amp;quot;
&lt;br&gt;path=&amp;quot;lib/hadoop-hdfs-test-0.21.0-dev-r836012.jar&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpathentry kind=&amp;quot;output&amp;quot; path=&amp;quot;eclipse&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;St.Ack
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 11:21 AM, Guohua Hao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800592&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;haoguohua@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Yes, I included all the necessary jar files I think. &amp;nbsp;I guess my problem is
&lt;br&gt;&amp;gt; probably related to my eclipse setup.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can create a MiniDFSCluster object by running my application in command
&lt;br&gt;&amp;gt; line (e.g., bin/hadoop myApplicationClass) , and a MiniDFSCluster object is
&lt;br&gt;&amp;gt; created inside the main function of myApplicationClass. But I can NOT run
&lt;br&gt;&amp;gt; this program within eclipse, probably I did not do it in the right way. I
&lt;br&gt;&amp;gt; got the similar error message saying
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; java.lang.NoSuchMethodError:
&lt;br&gt;&amp;gt; org.apache.hadoop.security.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; UserGroupInformation.setCurrentUser(Lorg/apache/hadoop/security/UserGroupInformation;)V
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt;(MiniDFSCluster.java:236)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt;(MiniDFSCluster.java:119)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Could you guys please give me more hint?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; Guohua
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 11:59 AM, Stack &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800592&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saint.ack@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Do you have hadoop jars in your eclipse classpath?
&lt;br&gt;&amp;gt; &amp;gt; Stack
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Dec 14, 2009, at 10:58 PM, Guohua Hao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800592&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;haoguohua@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Hello All,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; In my own application, I have a unit test case which extends
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; HBaseClusterTestCase in order to test some of my operation over HBase
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; cluster. I override the setup function in my own test case, and this
&lt;br&gt;&amp;gt; setup
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; function begins with super.setup() function call.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; When I try to run my unit test from within Eclipse, I got the following
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; error:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; java.lang.NoSuchMethodError:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.apache.hadoop.security.UserGroupInformation.setCurrentUser(Lorg/apache/hadoop/security/UserGroupInformation;)V
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt;(MiniDFSCluster.java:236)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt;(MiniDFSCluster.java:119)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; org.apache.hadoop.hbase.HBaseClusterTestCase.setUp(HBaseClusterTestCase.java:123)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I included the hadoop-0.20.1-core.jar in my classpath, since this jar
&lt;br&gt;&amp;gt; file
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; contains the org.apache.hadoop.security.UserGroupInformation class.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Could anybody give me some hint on how to solve this problem?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thank you very much,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Guohua
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/running-unit-test-based-on-HBaseClusterTestCase-tp26790432p26800592.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800226</id>
	<title>Re: Performance related question</title>
	<published>2009-12-15T11:21:31Z</published>
	<updated>2009-12-15T11:21:31Z</updated>
	<author>
		<name>Patrick Hunt-3</name>
	</author>
	<content type="html">Btw, nothing says that ZK users (incl hbase) _must_ run a multi-node ZK 
&lt;br&gt;ensemble. For coordination tasks a single ZK server (standalone mode) is 
&lt;br&gt;often sufficient, you just need to realize you are sacrificing 
&lt;br&gt;reliability/availability.
&lt;br&gt;&lt;br&gt;Going from 1 -&amp;gt; 3 -&amp;gt; 5 -&amp;gt; 7 ZK servers in an ensemble should primarily 
&lt;br&gt;be driven by reliability requirements. See this page for details on 
&lt;br&gt;performance studies I've made for standalone and 3 server ZK ensembles: 
&lt;br&gt;&lt;a href=&quot;http://bit.ly/4ekN8G&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bit.ly/4ekN8G&lt;/a&gt;&lt;br&gt;&lt;br&gt;Patrick
&lt;br&gt;&lt;br&gt;Jean-Daniel Cryans wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Given that m1.small has 1 CPU, 1.7GB of RAM and 1/8 (or less) the IO
&lt;br&gt;&amp;gt; of the host machine and counting in the fact that those machines are
&lt;br&gt;&amp;gt; networked as a whole I expect it to much much slower that your local
&lt;br&gt;&amp;gt; machine. Those machines are so under-powered that the overhead of
&lt;br&gt;&amp;gt; hadoop/hbase probably overwhelms any gain from the total number of
&lt;br&gt;&amp;gt; nodes. Instead do this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - Replace all your m1.small with m1.large in a factor of 4:1.
&lt;br&gt;&amp;gt; - Don't give ZK their own machine, in such a small environment it
&lt;br&gt;&amp;gt; doesn't make much sense. (give them their own EBS maybe)
&lt;br&gt;&amp;gt; - Use an ensemble of only 3 peers.
&lt;br&gt;&amp;gt; - Give HBase plenty of RAM like 4GB.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; WRT your mappers, make sure you use scanner pre-fetching. In your job
&lt;br&gt;&amp;gt; setup set hbase.client.scanner.caching to something like 30.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; J-D
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 9:14 AM, Something Something
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800226&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailinglists19@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Thanks J-D &amp; Mtohiko for the tips. &amp;nbsp;Significant improvement in performance,
&lt;br&gt;&amp;gt;&amp;gt; but there's still room for improvement. &amp;nbsp;In my local pseudo distributed mode
&lt;br&gt;&amp;gt;&amp;gt; the 2 map reduce jobs now run in less than 4 minutes (from 32 mins) and in
&lt;br&gt;&amp;gt;&amp;gt; cluster of 10 nodes + 5 zk nodes they run in 11 minutes (down from 1 hour &amp;
&lt;br&gt;&amp;gt;&amp;gt; 30 mins). &amp;nbsp;But still I would like to come to a point where they run faster
&lt;br&gt;&amp;gt;&amp;gt; on a cluster than on my local machine.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Here's what I did:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1) &amp;nbsp;Fixed a bug in my code that was causing unnecessary writes to HBase.
&lt;br&gt;&amp;gt;&amp;gt; 2) &amp;nbsp;Added these two lines after creating 'new HTable':
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table.setAutoFlush(false);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table.setWriteBufferSize(1024*1024*12);
&lt;br&gt;&amp;gt;&amp;gt; 3) &amp;nbsp;Added this line after Put:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;put.setWriteToWAL(false);
&lt;br&gt;&amp;gt;&amp;gt; 4) &amp;nbsp;Added this line (only when running on cluster):
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;job.setNumReduceTasks(20);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There are other 64-bit related improvements which I cannot try; mainly
&lt;br&gt;&amp;gt;&amp;gt; because Amazon charges (way) too much for 64-bit machines. &amp;nbsp;It costs me over
&lt;br&gt;&amp;gt;&amp;gt; $25 for 15 machines for less than 3 hours, so I switched to 'm1.small'
&lt;br&gt;&amp;gt;&amp;gt; 32-bit machines. &amp;nbsp;Of course, one of the promises of the distributed
&lt;br&gt;&amp;gt;&amp;gt; computing is that we will be able to use &amp;quot;cheap commodity hardware&amp;quot;, right
&lt;br&gt;&amp;gt;&amp;gt; :) &amp;nbsp;So I would like to stick with 'm1.small' for now. &amp;nbsp;(But I am willing to
&lt;br&gt;&amp;gt;&amp;gt; use about 30 machines if that's going to help.)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Anyway, I have noticed that one of my Mappers is taking too long. &amp;nbsp;If anyone
&lt;br&gt;&amp;gt;&amp;gt; would share ideas of how to improve Mapper speed, that would be greatly
&lt;br&gt;&amp;gt;&amp;gt; appreciated. &amp;nbsp;Basically, in this Mapper I read about 50,000 rows from a
&lt;br&gt;&amp;gt;&amp;gt; HBase table using TableMapReduceUtil.initTableMapperJob() and do some
&lt;br&gt;&amp;gt;&amp;gt; complex processing for &amp;quot;values&amp;quot; of each row. &amp;nbsp;I don't write anything back in
&lt;br&gt;&amp;gt;&amp;gt; HBase, but I do write quite a few lines (context.write()) to HDFS. &amp;nbsp;Any
&lt;br&gt;&amp;gt;&amp;gt; suggestions?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks once again for the help.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/12/13 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800226&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;motohiko.mouri@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Something Something &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800226&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailinglists19@...&lt;/a&gt;&amp;gt; wrote：
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; PS: &amp;nbsp;One thing I have noticed is that it goes to 66% very fast and then
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; slows down from there..
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It seems that only one reducer works. You should increase reduce tasks.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The default reduce task's number is written on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; hadoop/docs/mapred-default.html.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The default parameter of mapred.reduce.tasks is 1. So only one reduce task
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; runs.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There are two ways to increase reduce tasks:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1. Use Job.setNumReduceTasks(int tasks) on your MapReduce job file.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2. Denote more mapred.reduce.tasks on hadoop/conf/mapred-site.xml.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You can get the best perfomance if you run 20 reduce tasks. The detail of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the number
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; of reduce tasks is written on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://hadoop.apache.org/common/docs/r0.20.0/mapred_tutorial.html#Reducer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hadoop.apache.org/common/docs/r0.20.0/mapred_tutorial.html#Reducer&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; at &amp;quot;How many Reduces?&amp;quot; as J-D wrote. Notice that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; JobConf.setNumReduceTasks(int) is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; already deprecated, so you should use Job.setNumReduceTasks(int tasks)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; rather than
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; JobConf.setNumReduceTasks(int).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Motohiko Mouri
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Performance-related-question-tp26768307p26800226.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800216</id>
	<title>Re: running unit test based on HBaseClusterTestCase</title>
	<published>2009-12-15T11:21:16Z</published>
	<updated>2009-12-15T11:21:16Z</updated>
	<author>
		<name>Guohua Hao</name>
	</author>
	<content type="html">Yes, I included all the necessary jar files I think. &amp;nbsp;I guess my problem is
&lt;br&gt;probably related to my eclipse setup.
&lt;br&gt;&lt;br&gt;I can create a MiniDFSCluster object by running my application in command
&lt;br&gt;line (e.g., bin/hadoop myApplicationClass) , and a MiniDFSCluster object is
&lt;br&gt;created inside the main function of myApplicationClass. But I can NOT run
&lt;br&gt;this program within eclipse, probably I did not do it in the right way. I
&lt;br&gt;got the similar error message saying
&lt;br&gt;&lt;br&gt;java.lang.NoSuchMethodError:
&lt;br&gt;org.apache.hadoop.security.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; UserGroupInformation.setCurrentUser(Lorg/apache/hadoop/security/UserGroupInformation;)V
&lt;br&gt;&amp;gt; &amp;nbsp; at org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt;(MiniDFSCluster.java:236)
&lt;br&gt;&amp;gt; &amp;nbsp; at org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt;(MiniDFSCluster.java:119)
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;Could you guys please give me more hint?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Guohua
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 11:59 AM, Stack &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800216&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saint.ack@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Do you have hadoop jars in your eclipse classpath?
&lt;br&gt;&amp;gt; Stack
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 14, 2009, at 10:58 PM, Guohua Hao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800216&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;haoguohua@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Hello All,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In my own application, I have a unit test case which extends
&lt;br&gt;&amp;gt;&amp;gt; HBaseClusterTestCase in order to test some of my operation over HBase
&lt;br&gt;&amp;gt;&amp;gt; cluster. I override the setup function in my own test case, and this setup
&lt;br&gt;&amp;gt;&amp;gt; function begins with super.setup() function call.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When I try to run my unit test from within Eclipse, I got the following
&lt;br&gt;&amp;gt;&amp;gt; error:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; java.lang.NoSuchMethodError:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; org.apache.hadoop.security.UserGroupInformation.setCurrentUser(Lorg/apache/hadoop/security/UserGroupInformation;)V
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; at org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt;(MiniDFSCluster.java:236)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; at org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt;(MiniDFSCluster.java:119)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; at
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; org.apache.hadoop.hbase.HBaseClusterTestCase.setUp(HBaseClusterTestCase.java:123)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I included the hadoop-0.20.1-core.jar in my classpath, since this jar file
&lt;br&gt;&amp;gt;&amp;gt; contains the org.apache.hadoop.security.UserGroupInformation class.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Could anybody give me some hint on how to solve this problem?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thank you very much,
&lt;br&gt;&amp;gt;&amp;gt; Guohua
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/running-unit-test-based-on-HBaseClusterTestCase-tp26790432p26800216.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800114</id>
	<title>Re: Performance related question</title>
	<published>2009-12-15T11:13:54Z</published>
	<updated>2009-12-15T11:13:54Z</updated>
	<author>
		<name>Jean-Daniel Cryans-2</name>
	</author>
	<content type="html">Given that m1.small has 1 CPU, 1.7GB of RAM and 1/8 (or less) the IO
&lt;br&gt;of the host machine and counting in the fact that those machines are
&lt;br&gt;networked as a whole I expect it to much much slower that your local
&lt;br&gt;machine. Those machines are so under-powered that the overhead of
&lt;br&gt;hadoop/hbase probably overwhelms any gain from the total number of
&lt;br&gt;nodes. Instead do this:
&lt;br&gt;&lt;br&gt;- Replace all your m1.small with m1.large in a factor of 4:1.
&lt;br&gt;- Don't give ZK their own machine, in such a small environment it
&lt;br&gt;doesn't make much sense. (give them their own EBS maybe)
&lt;br&gt;- Use an ensemble of only 3 peers.
&lt;br&gt;- Give HBase plenty of RAM like 4GB.
&lt;br&gt;&lt;br&gt;WRT your mappers, make sure you use scanner pre-fetching. In your job
&lt;br&gt;setup set hbase.client.scanner.caching to something like 30.
&lt;br&gt;&lt;br&gt;J-D
&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 9:14 AM, Something Something
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800114&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailinglists19@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks J-D &amp; Mtohiko for the tips.  Significant improvement in performance,
&lt;br&gt;&amp;gt; but there's still room for improvement.  In my local pseudo distributed mode
&lt;br&gt;&amp;gt; the 2 map reduce jobs now run in less than 4 minutes (from 32 mins) and in
&lt;br&gt;&amp;gt; cluster of 10 nodes + 5 zk nodes they run in 11 minutes (down from 1 hour &amp;
&lt;br&gt;&amp;gt; 30 mins).  But still I would like to come to a point where they run faster
&lt;br&gt;&amp;gt; on a cluster than on my local machine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's what I did:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1)  Fixed a bug in my code that was causing unnecessary writes to HBase.
&lt;br&gt;&amp;gt; 2)  Added these two lines after creating 'new HTable':
&lt;br&gt;&amp;gt;        table.setAutoFlush(false);
&lt;br&gt;&amp;gt;        table.setWriteBufferSize(1024*1024*12);
&lt;br&gt;&amp;gt; 3)  Added this line after Put:
&lt;br&gt;&amp;gt;        put.setWriteToWAL(false);
&lt;br&gt;&amp;gt; 4)  Added this line (only when running on cluster):
&lt;br&gt;&amp;gt;    job.setNumReduceTasks(20);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There are other 64-bit related improvements which I cannot try; mainly
&lt;br&gt;&amp;gt; because Amazon charges (way) too much for 64-bit machines.  It costs me over
&lt;br&gt;&amp;gt; $25 for 15 machines for less than 3 hours, so I switched to 'm1.small'
&lt;br&gt;&amp;gt; 32-bit machines.  Of course, one of the promises of the distributed
&lt;br&gt;&amp;gt; computing is that we will be able to use &amp;quot;cheap commodity hardware&amp;quot;, right
&lt;br&gt;&amp;gt; :)  So I would like to stick with 'm1.small' for now.  (But I am willing to
&lt;br&gt;&amp;gt; use about 30 machines if that's going to help.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyway, I have noticed that one of my Mappers is taking too long.  If anyone
&lt;br&gt;&amp;gt; would share ideas of how to improve Mapper speed, that would be greatly
&lt;br&gt;&amp;gt; appreciated.  Basically, in this Mapper I read about 50,000 rows from a
&lt;br&gt;&amp;gt; HBase table using TableMapReduceUtil.initTableMapperJob() and do some
&lt;br&gt;&amp;gt; complex processing for &amp;quot;values&amp;quot; of each row.  I don't write anything back in
&lt;br&gt;&amp;gt; HBase, but I do write quite a few lines (context.write()) to HDFS.  Any
&lt;br&gt;&amp;gt; suggestions?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks once again for the help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/12/13 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800114&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;motohiko.mouri@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Something Something &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800114&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailinglists19@...&lt;/a&gt;&amp;gt; wrote：
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; PS:  One thing I have noticed is that it goes to 66% very fast and then
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; slows down from there..
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It seems that only one reducer works. You should increase reduce tasks.
&lt;br&gt;&amp;gt;&amp;gt; The default reduce task's number is written on
&lt;br&gt;&amp;gt;&amp;gt; hadoop/docs/mapred-default.html.
&lt;br&gt;&amp;gt;&amp;gt; The default parameter of mapred.reduce.tasks is 1. So only one reduce task
&lt;br&gt;&amp;gt;&amp;gt; runs.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There are two ways to increase reduce tasks:
&lt;br&gt;&amp;gt;&amp;gt; 1. Use Job.setNumReduceTasks(int tasks) on your MapReduce job file.
&lt;br&gt;&amp;gt;&amp;gt; 2. Denote more mapred.reduce.tasks on hadoop/conf/mapred-site.xml.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You can get the best perfomance if you run 20 reduce tasks. The detail of
&lt;br&gt;&amp;gt;&amp;gt; the number
&lt;br&gt;&amp;gt;&amp;gt; of reduce tasks is written on
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://hadoop.apache.org/common/docs/r0.20.0/mapred_tutorial.html#Reducer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hadoop.apache.org/common/docs/r0.20.0/mapred_tutorial.html#Reducer&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; at &amp;quot;How many Reduces?&amp;quot; as J-D wrote. Notice that
&lt;br&gt;&amp;gt;&amp;gt; JobConf.setNumReduceTasks(int) is
&lt;br&gt;&amp;gt;&amp;gt; already deprecated, so you should use Job.setNumReduceTasks(int tasks)
&lt;br&gt;&amp;gt;&amp;gt; rather than
&lt;br&gt;&amp;gt;&amp;gt; JobConf.setNumReduceTasks(int).
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Motohiko Mouri
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Performance-related-question-tp26768307p26800114.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26799641</id>
	<title>Re: hlogs do not get cleared</title>
	<published>2009-12-15T10:43:29Z</published>
	<updated>2009-12-15T10:43:29Z</updated>
	<author>
		<name>Jean-Daniel Cryans-2</name>
	</author>
	<content type="html">Kevin,
&lt;br&gt;&lt;br&gt;Too many hlogs means that the inserts are hitting a lot of regions,
&lt;br&gt;that those regions aren't filled enough to flush so that we have to
&lt;br&gt;force flush them to give some room. When you added region servers, it
&lt;br&gt;spread the regions load so that hlogs were getting filled at a slower
&lt;br&gt;rate.
&lt;br&gt;&lt;br&gt;Could you tell us more about the rate of insertion, size of data, and
&lt;br&gt;number of regions per region server?
&lt;br&gt;&lt;br&gt;Thx,
&lt;br&gt;&lt;br&gt;J-D
&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 10:34 AM, Kevin Peterson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26799641&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kevinpet@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; We're running a 13 node HBase cluster. We had some problems a week ago with
&lt;br&gt;&amp;gt; it being overloaded and errors related to not being able to find a block on
&lt;br&gt;&amp;gt; HDFS, but adding four more nodes and increasing max heap from 3GB to 4.5GB
&lt;br&gt;&amp;gt; on all nodes fixed any problems.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Looking at the logs now, though, we see that HLogs are not getting removed:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009-12-15 01:45:48,426 INFO org.apache.hadoop.hbase.regionserver.HLog: Roll
&lt;br&gt;&amp;gt; /hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260867136036,
&lt;br&gt;&amp;gt; entries=210524, calcsize=63757422, filesize=41073798. New hlog
&lt;br&gt;&amp;gt; /hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260870348421
&lt;br&gt;&amp;gt; 2009-12-15 01:45:48,427 INFO org.apache.hadoop.hbase.regionserver.HLog: Too
&lt;br&gt;&amp;gt; many hlogs: logs=130, maxlogs=96; forcing flush of region with oldest edits:
&lt;br&gt;&amp;gt; articles-article-id,f15489ea-38a4-4127-9179-1b2dc5f3b5d4,1260083783909
&lt;br&gt;&amp;gt; 2009-12-15 01:57:14,188 INFO org.apache.hadoop.hbase.regionserver.HRegion:
&lt;br&gt;&amp;gt; Starting compaction on region
&lt;br&gt;&amp;gt; articles,\x00\x00\x01\x25\x8C\x0F\xCB\x18\xB5U\xF7\xC6\x5DoH\xB8\x98\xEBH,E\x7C\x07\x14,1260830133341
&lt;br&gt;&amp;gt; 2009-12-15 01:57:17,519 INFO org.apache.hadoop.hbase.regionserver.HLog: Roll
&lt;br&gt;&amp;gt; /hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260870348421,
&lt;br&gt;&amp;gt; entries=92795, calcsize=63908073, filesize=54042783. New hlog
&lt;br&gt;&amp;gt; /hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260871037510
&lt;br&gt;&amp;gt; 2009-12-15 01:57:17,519 INFO org.apache.hadoop.hbase.regionserver.HLog: Too
&lt;br&gt;&amp;gt; many hlogs: logs=131, maxlogs=96; forcing flush of region with oldest edits:
&lt;br&gt;&amp;gt; articles-article-id,f1cd1b02-3d1b-453c-b44f-94ec5a1e3a46,1260007536878
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From reading the log message, I interpret this as saying that every time it
&lt;br&gt;&amp;gt; rolls an hlog, if there are more than maxlogs logs, it will flush one
&lt;br&gt;&amp;gt; region. I'm assuming that a log could have edits for multiple regions, so
&lt;br&gt;&amp;gt; this seems to mean that if we have 100 regions and maxlogs set to 96, if it
&lt;br&gt;&amp;gt; flushes one region each time it rolls a log, it will create 100 logs before
&lt;br&gt;&amp;gt; it flushes all regions and is able to delete the log, so it will reach
&lt;br&gt;&amp;gt; steady state at 196 hlogs. Is this correct?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We're concerned because when we had problems last week, we saw lots of log
&lt;br&gt;&amp;gt; messages related to &amp;quot;Too many hlogs&amp;quot; and had assumed they were related to
&lt;br&gt;&amp;gt; the problems. Is this anything to worry about?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/hlogs-do-not-get-cleared-tp26799518p26799641.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26799518</id>
	<title>hlogs do not get cleared</title>
	<published>2009-12-15T10:34:51Z</published>
	<updated>2009-12-15T10:34:51Z</updated>
	<author>
		<name>Kevin Peterson</name>
	</author>
	<content type="html">We're running a 13 node HBase cluster. We had some problems a week ago with
&lt;br&gt;it being overloaded and errors related to not being able to find a block on
&lt;br&gt;HDFS, but adding four more nodes and increasing max heap from 3GB to 4.5GB
&lt;br&gt;on all nodes fixed any problems.
&lt;br&gt;&lt;br&gt;Looking at the logs now, though, we see that HLogs are not getting removed:
&lt;br&gt;&lt;br&gt;2009-12-15 01:45:48,426 INFO org.apache.hadoop.hbase.regionserver.HLog: Roll
&lt;br&gt;/hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260867136036,
&lt;br&gt;entries=210524, calcsize=63757422, filesize=41073798. New hlog
&lt;br&gt;/hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260870348421
&lt;br&gt;2009-12-15 01:45:48,427 INFO org.apache.hadoop.hbase.regionserver.HLog: Too
&lt;br&gt;many hlogs: logs=130, maxlogs=96; forcing flush of region with oldest edits:
&lt;br&gt;articles-article-id,f15489ea-38a4-4127-9179-1b2dc5f3b5d4,1260083783909
&lt;br&gt;2009-12-15 01:57:14,188 INFO org.apache.hadoop.hbase.regionserver.HRegion:
&lt;br&gt;Starting compaction on region
&lt;br&gt;articles,\x00\x00\x01\x25\x8C\x0F\xCB\x18\xB5U\xF7\xC6\x5DoH\xB8\x98\xEBH,E\x7C\x07\x14,1260830133341
&lt;br&gt;2009-12-15 01:57:17,519 INFO org.apache.hadoop.hbase.regionserver.HLog: Roll
&lt;br&gt;/hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260870348421,
&lt;br&gt;entries=92795, calcsize=63908073, filesize=54042783. New hlog
&lt;br&gt;/hbase/.logs/mi-prod-app33,60020,1260495617070/hlog.dat.1260871037510
&lt;br&gt;2009-12-15 01:57:17,519 INFO org.apache.hadoop.hbase.regionserver.HLog: Too
&lt;br&gt;many hlogs: logs=131, maxlogs=96; forcing flush of region with oldest edits:
&lt;br&gt;articles-article-id,f1cd1b02-3d1b-453c-b44f-94ec5a1e3a46,1260007536878
&lt;br&gt;&lt;br&gt;From reading the log message, I interpret this as saying that every time it
&lt;br&gt;rolls an hlog, if there are more than maxlogs logs, it will flush one
&lt;br&gt;region. I'm assuming that a log could have edits for multiple regions, so
&lt;br&gt;this seems to mean that if we have 100 regions and maxlogs set to 96, if it
&lt;br&gt;flushes one region each time it rolls a log, it will create 100 logs before
&lt;br&gt;it flushes all regions and is able to delete the log, so it will reach
&lt;br&gt;steady state at 196 hlogs. Is this correct?
&lt;br&gt;&lt;br&gt;We're concerned because when we had problems last week, we saw lots of log
&lt;br&gt;messages related to &amp;quot;Too many hlogs&amp;quot; and had assumed they were related to
&lt;br&gt;the problems. Is this anything to worry about?
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/hlogs-do-not-get-cleared-tp26799518p26799518.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26799066</id>
	<title>Re: Fwd: What should we expect from Hama Examples Rand?</title>
	<published>2009-12-15T10:04:17Z</published>
	<updated>2009-12-15T10:04:17Z</updated>
	<author>
		<name>Andrew Purtell-2</name>
	</author>
	<content type="html">You are missing some supporting jar.
&lt;br&gt;&lt;br&gt;&amp;gt; java.io.IOException: java.io.IOException: java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java.lang.Class.searchMethods(Unknown Source)
&lt;br&gt;&lt;br&gt;Note that the exception is in a JVM method (java.lang.Class.searchMethods).
&lt;br&gt;This is not really a HBase problem per se, but instead very likely a 
&lt;br&gt;classpath issue. It looks to me like the JVM cannot (transitively) load a
&lt;br&gt;class to handle the RPC.
&lt;br&gt;&lt;br&gt;Are all of the supporting jars for Hadoop and HBase on the classpath? It
&lt;br&gt;seems at least one is not. 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;- Andy
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;________________________________
&lt;br&gt;From: Edward J. Yoon &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26799066&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;edwardyoon@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26799066&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hbase-user@...&lt;/a&gt;
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26799066&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Ratner@...&lt;/a&gt;
&lt;br&gt;Sent: Tue, December 15, 2009 1:07:02 AM
&lt;br&gt;Subject: Fwd: What should we expect from Hama Examples Rand?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;'RAND' example of hama-examples.jar is basically a simple M/R job that
&lt;br&gt;creates a table filled with random numbers. So, before the run Hama,
&lt;br&gt;Pls check whether you able to create tables via hbase shell.
&lt;br&gt;&lt;br&gt;Can someone of Hbase the developers help this problem?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;---------- Forwarded message ----------
&lt;br&gt;From: Ratner, Alan S (IS) &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26799066&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Ratner@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Sat, Dec 12, 2009 at 1:32 AM
&lt;br&gt;Subject: What should we expect from Hama Examples Rand?
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26799066&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hama-user@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Having fixed the groomserver problem I did the following:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;1) clean out /tmp files
&lt;br&gt;&lt;br&gt;2) format Hadoop namenode
&lt;br&gt;&lt;br&gt;3) start Hadoop
&lt;br&gt;&lt;br&gt;4) start HBase/Zookeeper
&lt;br&gt;&lt;br&gt;5) start Hama
&lt;br&gt;&lt;br&gt;6) launch Hama examples rand -m 10 -r 10 2000 2000 30.5% matrixA
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;The outcome is puzzling. &amp;nbsp;A 3-second long diary shows up in the Hama
&lt;br&gt;log file reporting nothing unusual. &amp;nbsp;But the terminal reported
&lt;br&gt;problems with HBase. &amp;nbsp;When I Googled this problem all I saw was
&lt;br&gt;someone who had multiple versions of HBase on their system. &amp;nbsp;I am
&lt;br&gt;using a fresh VM with Ubuntu 8.04, Hadoop 0.20.1, Zookeeper 3.2.1,
&lt;br&gt;HBase 0.20.2, Hama 0.2.0 and JDK 1.6.0_17. &amp;nbsp;No older versions of
&lt;br&gt;anything was ever installed.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;BTW: I thought the problem might be related to my running HBase in
&lt;br&gt;standalone mode so I just switched to HBase pseudo-distributed mode
&lt;br&gt;but I see the same problems.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Any help appreciated. &amp;nbsp;-- Alan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Hama log
&lt;br&gt;&lt;br&gt;==================================================================================================================================
&lt;br&gt;&lt;br&gt;Fri Dec 11 09:23:03 EST 2009 Starting master on ngc
&lt;br&gt;&lt;br&gt;ulimit -n 1024
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:05,512 INFO org.apache.hama.HamaMaster: STARTUP_MSG:
&lt;br&gt;&lt;br&gt;/************************************************************
&lt;br&gt;&lt;br&gt;STARTUP_MSG: Starting HamaMaster
&lt;br&gt;&lt;br&gt;STARTUP_MSG: &amp;nbsp; host = ngc/127.0.1.1
&lt;br&gt;&lt;br&gt;STARTUP_MSG: &amp;nbsp; args = [start]
&lt;br&gt;&lt;br&gt;STARTUP_MSG: &amp;nbsp; version = 0.20.1
&lt;br&gt;&lt;br&gt;STARTUP_MSG: &amp;nbsp; build =
&lt;br&gt;&lt;a href=&quot;http://svn.apache.org/repos/asf/hadoop/common/tags/release-0.20.1-rc1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/repos/asf/hadoop/common/tags/release-0.20.1-rc1&lt;/a&gt;&lt;br&gt;-r 810220; compiled by 'oom' on Tue Sep &amp;nbsp;1 20:55:56 UTC 2009
&lt;br&gt;&lt;br&gt;************************************************************/
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:05,939 INFO org.apache.hadoop.ipc.metrics.RpcMetrics:
&lt;br&gt;Initializing RPC Metrics with hostName=HamaMaster, port=40000
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:06,634 INFO org.apache.hama.HamaMaster: Cleaning up
&lt;br&gt;the system directory
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:06,710 INFO org.apache.hadoop.ipc.Server: IPC Server
&lt;br&gt;Responder: starting
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:06,716 INFO org.apache.hadoop.ipc.Server: IPC Server
&lt;br&gt;listener on 40000: starting
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:06,721 INFO org.apache.hama.HamaMaster: Starting RUNNING
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:06,721 INFO org.apache.hadoop.ipc.Server: IPC Server
&lt;br&gt;handler 0 on 40000: starting
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Hama terminal
&lt;br&gt;&lt;br&gt;/hadoop-0.20.1-test.jar:/home/ngc/Desktop/hama/bin/../lib/hbase-0.20.0.jar:/home/ngc/Desktop/hama/bin/../lib/hbase-0.20.0-test.jar:/home/ngc/Desktop/hama/bin/../lib/jasper-
&lt;br&gt;&lt;br&gt;compiler-5.5.12.jar:/home/ngc/Desktop/hama/bin/../lib/jasper-runtime-5.5.12.jar:/home/ngc/Desktop/hama/bin/../lib/javacc.jar:/home/ngc/Desktop/hama/bin/../lib/jetty-6.1.14.jar:/home/ngc/Desktop/hama/bin/../lib/jetty-util-6.1.14.jar:/home/ngc/Desktop/hama/bin/../lib/jruby-complete-1.2.0.jar:/home/ngc/Desktop/hama/bin/../lib/json.jar:/home/ngc/Desktop/hama/bin/../lib/junit-3.8.1.jar:/home/ngc/Desktop/hama/bin/../lib/libthrift-r771587.jar:/home/ngc/Desktop/hama/bin/../lib/log4j-1.2.13.jar:/home/ngc/Desktop/hama/bin/../lib/log4j-1.2.15.jar:/home/ngc/Desktop/hama/bin/../lib/servlet-api-2.5-6.1.14.jar:/home/ngc/Desktop/hama/bin/../lib/xmlenc-0.52.jar:/home/ngc/Desktop/hama/bin/../lib/zookeeper-3.2.1.jar:/home/ngc/Desktop/hama/bin/../lib/jetty-ext/*.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/annotations.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/ant.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/asm-3.0.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/as
&lt;br&gt;m-analysis-3.0.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/asm-commons-3.0.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/asm-tree-3.0.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/asm-util-3.0.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/asm-xml-3.0.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/bcel.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/dom4j-full.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/findbugs-ant.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/findbugsGUI.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/findbugs.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/jsr305.jar:/home/ngc/Desktop/hama/bin/../lib/findbugs/plugin/coreplugin.jar:/home/ngc/Desktop/hadoop-0.20.1/conf:/home/ngc/Desktop/hbase-0.20.2/conf
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client
&lt;br&gt;environment:java.library.path=/home/ngc/Desktop/jre1.6.0_17/lib/i386/client:/home/ngc/Desktop/jre1.6.0_17/lib/i386:/home/ngc/Desktop/jre1.6.0_17/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client
&lt;br&gt;environment:java.io.tmpdir=/tmp
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client
&lt;br&gt;environment:java.compiler=&amp;lt;NA&amp;gt;
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client
&lt;br&gt;environment:os.version=2.6.24-23-generic
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client environment:user.name=ngc
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client
&lt;br&gt;environment:user.home=/home/ngc
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Client
&lt;br&gt;environment:user.dir=/home/ngc/Desktop/hama
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ZooKeeper: Initiating client
&lt;br&gt;connection, connectString=localhost:2181 sessionTimeout=60000
&lt;br&gt;watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@1d8957f
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ClientCnxn:
&lt;br&gt;zookeeper.disableAutoWatchReset is false
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ClientCnxn: Attempting connection to
&lt;br&gt;server localhost/127.0.0.1:2181
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ClientCnxn: Priming connection to
&lt;br&gt;java.nio.channels.SocketChannel[connected local=/127.0.0.1:37044
&lt;br&gt;remote=localhost/127.0.0.1:2181]
&lt;br&gt;&lt;br&gt;09/12/11 09:25:12 INFO zookeeper.ClientCnxn: Server connection successful
&lt;br&gt;&lt;br&gt;09/12/11 09:26:30 WARN client.HConnectionManager$TableServers: Testing
&lt;br&gt;for table existence threw exception
&lt;br&gt;&lt;br&gt;org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to
&lt;br&gt;contact region server null for region , row '', but failed after 10
&lt;br&gt;attempts.
&lt;br&gt;&lt;br&gt;Exceptions:
&lt;br&gt;&lt;br&gt;java.io.IOException: java.io.IOException: java.lang.NullPointerException
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.searchMethods(Unknown Source)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.getMethod0(Unknown Source)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.getMethod(Unknown Source)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:643)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
&lt;br&gt;&lt;br&gt;(repeated many times)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;HBase log
&lt;br&gt;&lt;br&gt;2009-12-11 09:22:56,110 DEBUG
&lt;br&gt;org.apache.hadoop.hbase.io.hfile.LruBlockCache: Cache Stats: Sizes:
&lt;br&gt;Total=0.9374695MB (983008), Free=198.75003MB (208404512),
&lt;br&gt;Max=199.6875MB (209387520), Counts: Blocks=1, Access=10, Hit=9,
&lt;br&gt;Miss=1, Evictions=0, Evicted=0, Ratios: Hit Ratio=89.99999761581421%,
&lt;br&gt;Miss Ratio=10.000000149011612%, Evicted/Run=NaN
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:35,186 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.ServerManager: 1 region servers, 0
&lt;br&gt;dead, average load 2.0
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:35,839 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: RegionManager.rootScanner
&lt;br&gt;scanning meta region {server: 127.0.1.1:37976, regionname: -ROOT-,,0,
&lt;br&gt;startKey: &amp;lt;&amp;gt;}
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:35,876 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: RegionManager.rootScanner
&lt;br&gt;scan of 1 row(s) of meta region {server: 127.0.1.1:37976, regionname:
&lt;br&gt;-ROOT-,,0, startKey: &amp;lt;&amp;gt;} complete
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:35,886 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: RegionManager.metaScanner
&lt;br&gt;scanning meta region {server: 127.0.1.1:37976, regionname: .META.,,1,
&lt;br&gt;startKey: &amp;lt;&amp;gt;}
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:35,893 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: RegionManager.metaScanner
&lt;br&gt;scan of 0 row(s) of meta region {server: 127.0.1.1:37976, regionname:
&lt;br&gt;..META.,,1, startKey: &amp;lt;&amp;gt;} complete
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:35,893 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: All 1 .META. region(s)
&lt;br&gt;scanned
&lt;br&gt;&lt;br&gt;2009-12-11 09:23:56,084 DEBUG
&lt;br&gt;org.apache.hadoop.hbase.io.hfile.LruBlockCache: Cache Stats: Sizes:
&lt;br&gt;Total=0.9374695MB (983008), Free=198.75003MB (208404512),
&lt;br&gt;Max=199.6875MB (209387520), Counts: Blocks=1, Access=12, Hit=11,
&lt;br&gt;Miss=1, Evictions=0, Evicted=0, Ratios: Hit Ratio=91.66666865348816%,
&lt;br&gt;Miss Ratio=8.33333358168602%, Evicted/Run=NaN
&lt;br&gt;&lt;br&gt;2009-12-11 09:24:35,188 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.ServerManager: 1 region servers, 0
&lt;br&gt;dead, average load 2.0
&lt;br&gt;&lt;br&gt;2009-12-11 09:24:35,840 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: RegionManager.rootScanner
&lt;br&gt;scanning meta region {server: 127.0.1.1:37976, regionname: -ROOT-,,0,
&lt;br&gt;startKey: &amp;lt;&amp;gt;}
&lt;br&gt;&lt;br&gt;2009-12-11 09:24:35,864 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: RegionManager.rootScanner
&lt;br&gt;scan of 1 row(s) of meta region {server: 127.0.1.1:37976, regionname:
&lt;br&gt;-ROOT-,,0, startKey: &amp;lt;&amp;gt;} complete
&lt;br&gt;&lt;br&gt;2009-12-11 09:24:35,889 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: RegionManager.metaScanner
&lt;br&gt;scanning meta region {server: 127.0.1.1:37976, regionname: .META.,,1,
&lt;br&gt;startKey: &amp;lt;&amp;gt;}
&lt;br&gt;&lt;br&gt;2009-12-11 09:24:35,904 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: RegionManager.metaScanner
&lt;br&gt;scan of 0 row(s) of meta region {server: 127.0.1.1:37976, regionname:
&lt;br&gt;..META.,,1, startKey: &amp;lt;&amp;gt;} complete
&lt;br&gt;&lt;br&gt;2009-12-11 09:24:35,904 INFO
&lt;br&gt;org.apache.hadoop.hbase.master.BaseScanner: All 1 .META. region(s)
&lt;br&gt;scanned
&lt;br&gt;&lt;br&gt;2009-12-11 09:24:56,066 DEBUG
&lt;br&gt;org.apache.hadoop.hbase.io.hfile.LruBlockCache: Cache Stats: Sizes:
&lt;br&gt;Total=0.9374695MB (983008), Free=198.75003MB (208404512),
&lt;br&gt;Max=199.6875MB (209387520), Counts: Blocks=1, Access=14, Hit=13,
&lt;br&gt;Miss=1, Evictions=0, Evicted=0, Ratios: Hit Ratio=92.85714030265808%,
&lt;br&gt;Miss Ratio=7.14285746216774%, Evicted/Run=NaN
&lt;br&gt;&lt;br&gt;2009-12-11 09:25:02,258 DEBUG
&lt;br&gt;org.apache.hadoop.hbase.regionserver.HRegionServer: setting compaction
&lt;br&gt;limit to 4
&lt;br&gt;&lt;br&gt;2009-12-11 09:25:12,715 INFO org.apache.hadoop.ipc.HBaseServer: IPC
&lt;br&gt;Server handler 6 on 37976, call null([B@1c01ba9) from 127.0.1.1:55801:
&lt;br&gt;error: java.io.IOException: java.lang.NullPointerException
&lt;br&gt;&lt;br&gt;java.io.IOException: java.lang.NullPointerException
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.searchMethods(Unknown Source)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.getMethod0(Unknown Source)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.getMethod(Unknown Source)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:643)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
&lt;br&gt;&lt;br&gt;(repeated many times)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Best Regards, Edward J. Yoon @ NHN, corp.
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26799066&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;edwardyoon@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://blog.udanax.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.udanax.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A-What-should-we-expect-from-Hama-Examples-Rand--tp26791710p26799066.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26798988</id>
	<title>Re: running unit test based on HBaseClusterTestCase</title>
	<published>2009-12-15T09:59:23Z</published>
	<updated>2009-12-15T09:59:23Z</updated>
	<author>
		<name>stack-5</name>
	</author>
	<content type="html">Do you have hadoop jars in your eclipse classpath?
&lt;br&gt;Stack
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 14, 2009, at 10:58 PM, Guohua Hao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26798988&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;haoguohua@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In my own application, I have a unit test case which extends
&lt;br&gt;&amp;gt; HBaseClusterTestCase in order to test some of my operation over HBase
&lt;br&gt;&amp;gt; cluster. I override the setup function in my own test case, and this &amp;nbsp;
&lt;br&gt;&amp;gt; setup
&lt;br&gt;&amp;gt; function begins with super.setup() function call.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I try to run my unit test from within Eclipse, I got the &amp;nbsp;
&lt;br&gt;&amp;gt; following
&lt;br&gt;&amp;gt; error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; java.lang.NoSuchMethodError:
&lt;br&gt;&amp;gt; org.apache.hadoop.security.UserGroupInformation.setCurrentUser(Lorg/ 
&lt;br&gt;&amp;gt; apache/hadoop/security/UserGroupInformation;)V
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt; 
&lt;br&gt;&amp;gt; (MiniDFSCluster.java:236)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at org.apache.hadoop.hdfs.MiniDFSCluster.&amp;lt;init&amp;gt; 
&lt;br&gt;&amp;gt; (MiniDFSCluster.java:119)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.hadoop.hbase.HBaseClusterTestCase.setUp 
&lt;br&gt;&amp;gt; (HBaseClusterTestCase.java:123)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I included the hadoop-0.20.1-core.jar in my classpath, since this &amp;nbsp;
&lt;br&gt;&amp;gt; jar file
&lt;br&gt;&amp;gt; contains the org.apache.hadoop.security.UserGroupInformation class.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Could anybody give me some hint on how to solve this problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you very much,
&lt;br&gt;&amp;gt; Guohua
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/running-unit-test-based-on-HBaseClusterTestCase-tp26790432p26798988.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26798935</id>
	<title>Re: HBase Utility functions (for Java 5+)</title>
	<published>2009-12-15T09:56:12Z</published>
	<updated>2009-12-15T09:56:12Z</updated>
	<author>
		<name>Kevin Peterson</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 9:21 AM, Gary Helmling &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26798935&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ghelmling@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I completely agree with the need to understand both the fundamental HBase
&lt;br&gt;&amp;gt; API, and how HBase stores data at a low level. &amp;nbsp;Both are very important in
&lt;br&gt;&amp;gt; knowing how to structure your data for best performance. &amp;nbsp;Which you should
&lt;br&gt;&amp;gt; figure out before moving on to other niceties. Code (ASL it). &amp;nbsp;I think
&lt;br&gt;&amp;gt; Hbase is
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On the other hand, forcing the user to understand the details of how data
&lt;br&gt;is stored instead of presenting them with a well abstracted api makes the
&lt;br&gt;learning curve steeper.
&lt;br&gt;&lt;br&gt;These kinds of cleaner APIs would be a good way to prevent the standard
&lt;br&gt;situation of one engineer on the team figuring out HBase, then others say
&lt;br&gt;&amp;quot;why is this so complicated&amp;quot; so they write an internal set of wrappers and
&lt;br&gt;utility methods.
&lt;br&gt;&lt;br&gt;This wouldn't solve the problems for people who want a full ORM, but I think
&lt;br&gt;there's an in-between sweet spot that abstracts away byte[] but still
&lt;br&gt;exposes column families and such.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HBase-Utility-functions-%28for-Java-5%2B%29-tp26789004p26798935.html" />
</entry>

</feed>
