<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using Facebook&#8217;s Thrift with Python and HBase</title>
	<atom:link href="http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/feed/" rel="self" type="application/rss+xml" />
	<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/</link>
	<description></description>
	<lastBuildDate>Thu, 17 May 2012 01:31:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Oscar</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-2106</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Tue, 15 Mar 2011 22:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-2106</guid>
		<description>@Varadharajan I also got that error “TypeError: write() argument 1 must be string or read-only character buffer, not dict” for createTable method

I solved it with 

desc = ColumnDescriptor( *{&#039;name&#039;:&#039;foo:&#039;})
the star translates it into kwargs</description>
		<content:encoded><![CDATA[<p>@Varadharajan I also got that error “TypeError: write() argument 1 must be string or read-only character buffer, not dict” for createTable method</p>
<p>I solved it with </p>
<p>desc = ColumnDescriptor( *{&#8216;name&#8217;:'foo:&#8217;})<br />
the star translates it into kwargs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varadharajan</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-2100</link>
		<dc:creator>Varadharajan</dc:creator>
		<pubDate>Sat, 26 Feb 2011 10:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-2100</guid>
		<description>When i configured thrift 0.5.0 and build a client as given here, i got a type error as 

&quot;TypeError: write() argument 1 must be string or read-only character buffer, not dict&quot; for createTable method

I solved this by using using client.createTable(&quot;table_name&quot;, [ColumnDescriptor(name=&quot;foo:&quot;)])

Thought this might be useful for some newbie like me :)

Cheers,
Varadharajan</description>
		<content:encoded><![CDATA[<p>When i configured thrift 0.5.0 and build a client as given here, i got a type error as </p>
<p>&#8220;TypeError: write() argument 1 must be string or read-only character buffer, not dict&#8221; for createTable method</p>
<p>I solved this by using using client.createTable(&#8220;table_name&#8221;, [ColumnDescriptor(name="foo:")])</p>
<p>Thought this might be useful for some newbie like me <img src='http://yannramin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers,<br />
Varadharajan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sami</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-2096</link>
		<dc:creator>Sami</dc:creator>
		<pubDate>Sun, 13 Feb 2011 10:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-2096</guid>
		<description>I figured out the anwer to my last post. Under the lib/perl directory after extracting Thrift and running make. You need to run make in the lib/perl directory to install these .pm packages.

Thanks,
Sami</description>
		<content:encoded><![CDATA[<p>I figured out the anwer to my last post. Under the lib/perl directory after extracting Thrift and running make. You need to run make in the lib/perl directory to install these .pm packages.</p>
<p>Thanks,<br />
Sami</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sami</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-2095</link>
		<dc:creator>Sami</dc:creator>
		<pubDate>Sun, 13 Feb 2011 10:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-2095</guid>
		<description>Hi,

I am trying to use a perl script to connect to my Hbase setup just to perform reads from tables. I have the thrift server running and all. Also compiled thrift successfully and generated the Hbase.pm, Constants.pm and Types.pm files for a perl client. What i cant seem to figure out is where to get the following CPAN packages:

use Thrift::BinaryProtocol;
use Thrift::BufferedTransport;
use Thrift::Socket;

Any help will be appreciated.

Thanks,
Sami</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am trying to use a perl script to connect to my Hbase setup just to perform reads from tables. I have the thrift server running and all. Also compiled thrift successfully and generated the Hbase.pm, Constants.pm and Types.pm files for a perl client. What i cant seem to figure out is where to get the following CPAN packages:</p>
<p>use Thrift::BinaryProtocol;<br />
use Thrift::BufferedTransport;<br />
use Thrift::Socket;</p>
<p>Any help will be appreciated.</p>
<p>Thanks,<br />
Sami</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adebug</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-1546</link>
		<dc:creator>adebug</dc:creator>
		<pubDate>Fri, 26 Nov 2010 13:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-1546</guid>
		<description>When I write a client to insert data into table, I found the CPU is just totally 30% on 8 core system.
The bottleneck seems that the client read data from local disk file and insert data into htable are serial, so when read , inserting is suspended, and when insert read is suspended.

After I use multi-thread, the thread is hang on thrift&#039;s hbase.py: recv_mutateRows.

Does thrift doesn&#039;t support multi-thread?</description>
		<content:encoded><![CDATA[<p>When I write a client to insert data into table, I found the CPU is just totally 30% on 8 core system.<br />
The bottleneck seems that the client read data from local disk file and insert data into htable are serial, so when read , inserting is suspended, and when insert read is suspended.</p>
<p>After I use multi-thread, the thread is hang on thrift&#8217;s hbase.py: recv_mutateRows.</p>
<p>Does thrift doesn&#8217;t support multi-thread?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leeward Bound</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-1544</link>
		<dc:creator>Leeward Bound</dc:creator>
		<pubDate>Mon, 15 Nov 2010 04:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-1544</guid>
		<description>Just wanted to update my previous post --
I&#039;ve noticed that my server&#039;s not bottlenecked on either processor or memory while running the create and delete operations in the above script. I can only assume the socket connections to thrift are the bottleneck; I was primarily interested in the random seek times, so I didn&#039;t bother modifying the script to multithread.</description>
		<content:encoded><![CDATA[<p>Just wanted to update my previous post &#8211;<br />
I&#8217;ve noticed that my server&#8217;s not bottlenecked on either processor or memory while running the create and delete operations in the above script. I can only assume the socket connections to thrift are the bottleneck; I was primarily interested in the random seek times, so I didn&#8217;t bother modifying the script to multithread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leeward Bound</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-1543</link>
		<dc:creator>Leeward Bound</dc:creator>
		<pubDate>Sun, 14 Nov 2010 18:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-1543</guid>
		<description>Awesome writeup, thanks so much!

I&#039;ve been playing around with HBase to see if it&#039;s feasible to replace MySQL in our current project; This blog post stopped just a little short of what I needed to know, and I had to figure out how to mutate and delete rows by hand.

Here&#039;s my benchmark code, I hope it might serve someone else!
http://pastebin.com/AuuDCKTi</description>
		<content:encoded><![CDATA[<p>Awesome writeup, thanks so much!</p>
<p>I&#8217;ve been playing around with HBase to see if it&#8217;s feasible to replace MySQL in our current project; This blog post stopped just a little short of what I needed to know, and I had to figure out how to mutate and delete rows by hand.</p>
<p>Here&#8217;s my benchmark code, I hope it might serve someone else!<br />
<a href="http://pastebin.com/AuuDCKTi" rel="nofollow">http://pastebin.com/AuuDCKTi</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guru Prasad</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-1523</link>
		<dc:creator>Guru Prasad</dc:creator>
		<pubDate>Tue, 10 Aug 2010 09:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-1523</guid>
		<description>One suggestion: If your client.py (as described in this blog) is throwing error saying &quot;...... thrift.transport.TTransport.TTransportException: Could not connect to localhost:9090&quot; . This could be due to using &#039;localhost&#039;...Fix: replace localhost with your IP. 
Note: you may required to make some changes in you /etc/hosts file</description>
		<content:encoded><![CDATA[<p>One suggestion: If your client.py (as described in this blog) is throwing error saying &#8220;&#8230;&#8230; thrift.transport.TTransport.TTransportException: Could not connect to localhost:9090&#8243; . This could be due to using &#8216;localhost&#8217;&#8230;Fix: replace localhost with your IP.<br />
Note: you may required to make some changes in you /etc/hosts file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-1428</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Fri, 25 Dec 2009 19:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-1428</guid>
		<description>Hey, Great tutorial - Thanks!.

It didnt work out of the box for me however with latest HBase (0.20.2) and thrift (0.2.0-incubator).
It seems that either the thrift auto-generated code or Hbase thrift API changed somewhat. 

in particular, one should use kwargs parameter style when creating ColumnDescriptor:

Instead of this:
desc = ColumnDescriptor( { &#039;name&#039; : &#039;foo:&#039; } )
Use this:
desc = ColumnDescriptor(name=&#039;foo&#039;)

Adam</description>
		<content:encoded><![CDATA[<p>Hey, Great tutorial &#8211; Thanks!.</p>
<p>It didnt work out of the box for me however with latest HBase (0.20.2) and thrift (0.2.0-incubator).<br />
It seems that either the thrift auto-generated code or Hbase thrift API changed somewhat. </p>
<p>in particular, one should use kwargs parameter style when creating ColumnDescriptor:</p>
<p>Instead of this:<br />
desc = ColumnDescriptor( { &#8216;name&#8217; : &#8216;foo:&#8217; } )<br />
Use this:<br />
desc = ColumnDescriptor(name=&#8217;foo&#8217;)</p>
<p>Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/comment-page-1/#comment-1154</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 13 Mar 2009 10:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://yannramin.com/?p=58#comment-1154</guid>
		<description>@Goran: There&#039;s also Dumbo which lets you do map/reduce on hadoop in python. Though it uses hadoop streaming, not thrift.

http://wiki.github.com/klbostee/dumbo</description>
		<content:encoded><![CDATA[<p>@Goran: There&#8217;s also Dumbo which lets you do map/reduce on hadoop in python. Though it uses hadoop streaming, not thrift.</p>
<p><a href="http://wiki.github.com/klbostee/dumbo" rel="nofollow">http://wiki.github.com/klbostee/dumbo</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

