hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Hbase/FAQ" by JimKellerman
Date Mon, 05 Jan 2009 17:39:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The following page has been changed by JimKellerman:
http://wiki.apache.org/hadoop/Hbase/FAQ

The comment on the change is:
Fix broken links

------------------------------------------------------------------------------
  
  '''2. [[Anchor(2)]] Can someone give an example of basic API-usage going against hbase?'''
  
- The two main client-side entry points are [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/javadoc/org/apache/hadoop/hbase/HBaseAdmin.html
HBaseAdmin] and [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/javadoc/org/apache/hadoop/hbase/HTable.html
HTable].  Use H!BaseAdmin to create, drop, list, enable and disable tables.  Use it also to
add and drop table column families.  For adding, updating and deleting data, use HTable. 
Here is some pseudo code absent error checking, imports, etc., that creates a table, adds
data, does a fetch of just-added data and then deletes the table.
+ The two main client-side entry points are [http://hadoop.apache.org/hbase/docs/current/api/org/apache/hadoop/hbase/client/HBaseAdmin.html
HBaseAdmin] and [http://hadoop.apache.org/hbase/docs/current/api/org/apache/hadoop/hbase/client/HTable.html
HTable].  Use H!BaseAdmin to create, drop, list, enable and disable tables.  Use it also to
add and drop table column families.  For adding, updating and deleting data, use HTable. 
Here is some pseudo code absent error checking, imports, etc., that creates a table, adds
data, does a fetch of just-added data and then deletes the table.
  
  {{{// First get a conf object.  This will read in the configuration 
  // that is out in your hbase-*.xml files such as location of the
@@ -62, +62 @@

  For further examples, check out the hbase unit tests.  These are probably your best source
for sample code.  Start with the code in org.apache.hadoop.hbase.TestH!BaseCluster.  It does
a general table setup and then performs various client operations on the created table: loading,
scanning, deleting, etc.
  
  Don't forget your client will need a running hbase instance to connect to (See the ''Getting
Started'' section toward the end of this
- [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/javadoc/org/apache/hadoop/hbase/package-summary.html#package_description
Hbase Package Summary] page).
+ [http://hadoop.apache.org/hbase/docs/current/api/org/apache/hadoop/hbase/package-summary.html#package_description
Hbase Package Summary] page).
  
  See [:Hbase/Jython] for the above example code done in Jython 
  
@@ -108, +108 @@

  
  '''8. [[Anchor(8)]] How do I access Hbase from my Ruby/Python/Perl/PHP/etc. application?'''
  
-  * [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/javadoc/ Description of
how to launch a thrift service, client bindings and examples in ruby and C++] for connecting
to Hbase
+  * [http://wiki.apache.org/hadoop/Hbase/ThriftApi Description of how to launch a thrift
service, client bindings and examples in ruby and C++] for connecting to Hbase
   * [http://wiki.apache.org/hadoop/Hbase/HbaseRest REST Interface] to Hbase
   * [:Hbase/Jython] An example showing how to access HBase from Jython 
   * [http://github.com/sishen/hbase-ruby Ruby client for Hbase's REST API]

Mime
View raw message