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:12:20 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

------------------------------------------------------------------------------
  {{{
    map {
      rs = hql.executeQuery("select filePath: from tbl_name where row='" + row + "'" 
-          + "and column='column:forTmpTable';");
+          + "and column='" + columnfamily + ":" + qualifier + "';");
-     hql.executeQuery("load data file '" + rs.result() + "' into tmpTable;");
+     hql.executeQuery("load data file '" + rs.result() + "' into " + resultTable + ";");
+   }
+ 
+   main(String[] args) {
+     columnfamily = args[0];
+     qualifier = args[1];
+     resultTable = args[2];
    }
  }}}
  

Mime
View raw message