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] Trivial Update of "Hbase/HbaseShell/HQL" by udanax
Date Sun, 10 Feb 2008 03:06:01 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 udanax:
http://wiki.apache.org/hadoop/Hbase/HbaseShell/HQL

------------------------------------------------------------------------------
  
  CASE 2 :
  
-   rs = hql.executeQuery("@ 'hdfs://app_name/install_hbase_db.txt';");
+   rs = hql.executeQuery("@ './install_db.txt';");
-   if(rs == ok)
-     ...
  }}}
  
  ''A file of data definition shouldn't be called a 'query file' -- and why can't the file
just as easily load data?  Can you think of something else to call it?  And its possible to
do "$ cat DATA_DEFINITION_FILE|./bin/hbase shell" to get the same effect? St.Ack''
@@ -98, +96 @@

  ==== Applications ====
  {{{
    map {
-     rs = hql.executeQuery("select filePath: from tbl_name where row='" + rowKey + "'" 
+     rs = hql.executeQuery("select filePath: from tbl_name where row='" + row + "'" 
           + "and column='column:forTmpTable';");
      hql.executeQuery("load data file '" + rs.result() + "' into tmpTable;");
    }

Mime
View raw message