<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Werx Limited &#187; servlet</title> <atom:link href="http://werxltd.com/wp/tag/servlet/feed/" rel="self" type="application/rss+xml" /><link>http://werxltd.com/wp</link> <description>We make IT work.</description> <lastBuildDate>Mon, 23 Jan 2012 23:03:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Simple HBase query bridge</title><link>http://werxltd.com/wp/2010/03/25/simple-hbase-query-bridge/</link> <comments>http://werxltd.com/wp/2010/03/25/simple-hbase-query-bridge/#comments</comments> <pubDate>Thu, 25 Mar 2010 12:00:43 +0000</pubDate> <dc:creator>wes</dc:creator> <category><![CDATA[java]]></category> <category><![CDATA[software development]]></category> <category><![CDATA[hadoop]]></category> <category><![CDATA[hbase]]></category> <category><![CDATA[interoperability]]></category> <category><![CDATA[json-rpc]]></category> <category><![CDATA[map reduce]]></category> <category><![CDATA[mapreduce]]></category> <category><![CDATA[servlet]]></category> <category><![CDATA[tomcat]]></category><guid
isPermaLink="false">http://werxltd.com/wp/?p=522</guid> <description><![CDATA[I&#8217;ve recently released a simple json-rpc query bridge (using our own simple json-rpc framework) for HBase at http://code.google.com/p/hbasebridge/ You can use this bridge to query HBase for either the current record or the last few versions of a record. To see the methods http://localhost:8080/hbasebridge/rpc?debug=true Which returns a list of usable RPC methods: { "jsonrpc": "2.0", "result": [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve recently released a simple json-rpc query bridge (using our own <a
href="http://werxltd.com/wp/portfolio/json-rpc/simple-java-json-rpc/">simple json-rpc framework</a>) for <a
href="http://hadoop.apache.org/hbase/">HBase </a>at <a
href="http://code.google.com/p/hbasebridge/">http://code.google.com/p/hbasebridge/</a></p><p>You can use this bridge to query HBase for either the current record or the last few versions of a record.</p><p>To see the methods</p><pre>http://localhost:8080/hbasebridge/rpc?debug=true</pre><p>Which returns a list of usable RPC methods:</p><pre class="brush:javascript">{
  "jsonrpc": "2.0",
  "result": {"method": [
    {
      "class": "com.werxltd.hbasebridge.HBaseInfo",
      "name": "listtables",
      "params": [],
      "returns": "org.json.JSONObject",
      "static": false
    },
    {
      "class": "com.werxltd.hbasebridge.HadoopInfo",
      "name": "clusterstatus",
      "params": [],
      "returns": "org.json.JSONObject",
      "static": false
    },
    {
      "class": "com.werxltd.hbasebridge.HadoopInfo",
      "name": "jobstatus",
      "params": [],
      "returns": "org.json.JSONObject",
      "static": false
    },
    {
      "class": "com.werxltd.jsonrpc.RPC",
      "name": "listrpcmethods",
      "params": [],
      "returns": "org.json.JSONObject",
      "static": false
    },
    {
      "class": "com.werxltd.hbasebridge.TableLookup",
      "name": "lookup",
      "params": ["org.json.JSONObject"],
      "returns": "org.json.JSONObject",
      "static": false
    }
  ]}
}</pre><p>To list tables:</p><pre>http://localhost:8080/hbasebridge/rpc?debug=true&#038;method=listtables</pre><p>Which returns:</p><pre class="brush:javascript">
{
  "jsonrpc": "2.0",
  "result": {"tables": [
    "mytable"
  ]}
}
</pre><p>To get the current status of the cluster:</p><pre>http://localhost:8080/hbasebridge/rpc?debug=true&#038;method=clusterstatus</pre><p>Which returns:</p><pre class="brush:javascript">{
  "jsonrpc": "2.0",
  "result": {
    "activetrackernames": [
      "trackernode1:localhost/127.0.0.1:33455",
      "trackernode2:localhost/127.0.0.1:54616",
    ],
    "blacklistedtrackernames": [],
    "blacklistedtrackers": 0,
    "jobqueues": {"queues": [{
      "jobs": [
        {
          "cleanuptasks": [{"state": ""}],
          "complete": false,
          "filename": "hdfs://hadoophdfsnode:9000/data/hadoop/mapred/system/job_201003191557_0442/job.xml",
          "jobpriority": "normal",
          "mapprogress": 1,
          "name": "My mapreduce job",
          "reduceprogress": 0.9819000363349915,
          "runstate": "running",
          "schedulinginfo": "NA",
          "setupprogress": 1,
          "starttime": 1269024863960,
          "username": "hadoop-admin"
        }
      ],
      "name": "default"
    }]},
    "jobtrackerstate": "running",
    "maptasks": 1,
    "maxmaptasks": 116,
    "maxmemory": 2079719424,
    "maxreducetasks": 58,
    "reducetasks": 16,
    "tasktrackers": 34,
    "ttyexpiryinterval": 600000,
    "usedmemory": 969170944
  }
}</pre><p>Key/Value Query:</p><pre>http://localhost:8080/hbase_tape/rpc?debug=true&#038;data={"method":"lookup","params":{"table":"tablename","keys":["mykey"]}}</pre><p>Results:</p><pre class="brush:javascript">
{
  "jsonrpc": "2.0",
  "result": {"rows": [{"mykey": {
    "family:col": "myvalue"
  }}]}
}
</pre><p>Key/Value query with versions:</p><pre>http://localhost:8080/hbase_tape/rpc?debug=true&#038;data={"method":"lookup","params":{"table":"tablename","keys":["mykey"],versions:2}}</pre><p>Results:</p><pre class="brush:javascript">
{
  "jsonrpc": "2.0",
  "result": {"rows": [{"mykey": {
    "family:col": [{
      "value": "myval",
      "version": 123456789
    }],
    "family:col": [{
      "value": "myoldval",
      "version": 123456788
    }]
  }}]}
}
</pre><p>The code should also provide a handy reference for anyone who wants to learn how to query HBase and scrape <a
href="http://hadoop.apache.org/hbase/docs/current/api/org/apache/hadoop/hbase/client/Result.html">Result</a> objects for values without knowing family or column names in advance.</p><div
class="betterrelated none"><p>No related content found.</p></div><p><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;counturl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;count=none&amp;text=Simple%20HBase%20query%20bridge" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;counturl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;count=none&amp;text=Simple%20HBase%20query%20bridge" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><a
class="a2a_button_linkedin" href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;linkname=Simple%20HBase%20query%20bridge" title="LinkedIn" rel="nofollow" target="_blank"><img
src="http://werxltd.com/wp/wp-content/plugins/add-to-any/icons/linkedin.png?9d7bd4" width="16" height="16" alt="LinkedIn"/></a><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F03%2F25%2Fsimple-hbase-query-bridge%2F&amp;title=Simple%20HBase%20query%20bridge" id="wpa2a_2">Share/Save</a></p>]]></content:encoded> <wfw:commentRss>http://werxltd.com/wp/2010/03/25/simple-hbase-query-bridge/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Simple JSON-RPC updated to 0.9.5</title><link>http://werxltd.com/wp/2010/01/12/simple-json-rpc-updated-to-0-9-5/</link> <comments>http://werxltd.com/wp/2010/01/12/simple-json-rpc-updated-to-0-9-5/#comments</comments> <pubDate>Tue, 12 Jan 2010 12:00:52 +0000</pubDate> <dc:creator>wes</dc:creator> <category><![CDATA[java]]></category> <category><![CDATA[software development]]></category> <category><![CDATA[json]]></category> <category><![CDATA[json-rpc]]></category> <category><![CDATA[servlet]]></category> <category><![CDATA[simple jsonrpc]]></category><guid
isPermaLink="false">http://werxltd.com/wp/?p=437</guid> <description><![CDATA[The simple JSON-RPC package has been updated to 0.9.5 It has undergone some extensive refactoring and now includes documentation, and an example project. The source to this package is also available here. For more information (and for future updates), visit the new project page here. If you are interested in using, contributing to, or reporting bugs for this [...]]]></description> <content:encoded><![CDATA[<p>The simple JSON-RPC package has been updated to 0.9.5 It has undergone some extensive refactoring and now includes <a
href="http://werxltd.com/docs/jsonrpc/">documentation</a>, and an <a
href="http://werxltd.com/wp/wp-content/uploads/2010/01/jsonrpc_example-0.91.zip?9d7bd4">example project</a>. The source to this package is also <a
href="https://code.google.com/p/werx-jsonrpc/">available here</a>.</p><p>For more information (and for future updates), visit the <a
href="http://werxltd.com/wp/portfolio/json-rpc/simple-java-json-rpc/">new project page here</a>.</p><p>If you are interested in using, contributing to, or reporting bugs for this project, <a
href="http://werxltd.com/wp/contact-us/">contact us</a>!</p><div
class="betterrelated none"><p>No related content found.</p></div><p><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;counturl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;count=none&amp;text=Simple%20JSON-RPC%20updated%20to%200.9.5" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;counturl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;count=none&amp;text=Simple%20JSON-RPC%20updated%20to%200.9.5" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><a
class="a2a_button_linkedin" href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;linkname=Simple%20JSON-RPC%20updated%20to%200.9.5" title="LinkedIn" rel="nofollow" target="_blank"><img
src="http://werxltd.com/wp/wp-content/plugins/add-to-any/icons/linkedin.png?9d7bd4" width="16" height="16" alt="LinkedIn"/></a><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2010%2F01%2F12%2Fsimple-json-rpc-updated-to-0-9-5%2F&amp;title=Simple%20JSON-RPC%20updated%20to%200.9.5" id="wpa2a_4">Share/Save</a></p>]]></content:encoded> <wfw:commentRss>http://werxltd.com/wp/2010/01/12/simple-json-rpc-updated-to-0-9-5/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 2/16 queries in 0.037 seconds using apc
Object Caching 415/440 objects using apc

Served from: werxltd.com @ 2012-02-05 02:52:19 -->
