Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> DemoClient.cpp modifications and question about thrift client / HBase 0.89.20100924


Copy link to this message
-
DemoClient.cpp modifications and question about thrift client / HBase 0.89.20100924
0) The DemoClient.cpp (versions, see [a]) does not compile on FC8 with
thrift 0.5.

I modified DemoClient.cpp to make it work. I've attached a diff. (Compiles
on OS
X Snow Leopard and FC 8 (EC2 instance))

[a]
HBase Change Log
Release 0.89.20100924 - Fri Sep 24 13:51:36 PDT 2010

1) Question about Hbase Thrift api:

>From Hbase.thrift, the scannerGet returns a list of TRowResult but the
description says it returns the /current/ row - are these the versions of
the
row?  If so, having tested DemoClient.cpp, for each scannerGet the result is
of
length 1 (the latest version).

So why an array of TRowResult as opposed to just TRowResult ?
  /**
   * Returns the scanner's current row value and advances to the next
   * row in the table.  When there are no more rows in the table, or a key
   * greater-than-or-equal-to the scanner's specified stopRow is reached,
   * an empty list is returned.
   *
   * @return a TRowResult containing the current row and a map of the
columns to TCells.
   *
   * @throws IllegalArgument if ScannerID is invalid
   *
   * @throws NotFound when the scanner reaches the end
   */
  list<TRowResult> scannerGet(
    /** id of a scanner returned by scannerOpen */
    1:ScannerID id
  ) throws (1:IOError io, 2:IllegalArgument ia)

Cheers
Joy
+
Stack 2010-11-23, 23:33
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB