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/HbaseShell/HQL" by udanax
Date Sun, 10 Feb 2008 03:23:41 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

------------------------------------------------------------------------------
  ==== Applications ====
  {{{
    map {
-     rs = hql.executeQuery("select filePath: from tbl_name where row='" + row + "'" 
+     rs = hql.executeQuery("select filePath: from server_data where row='" + row + "'" 
           + "and column='" + columnfamily + ":" + qualifier + "';");
      hql.executeQuery("load data file '" + rs.result() + "' into " + resultTable + ";");
    }
  
    main(String[] args) {
-     columnfamily = args[0];
-     qualifier = args[1];
-     resultTable = args[2];
+     columnfamily = "webserver"; /* or "hadoop" */
+     qualifier = "access_log"; /* or "task_tracker_log" */
+     resultTable = "access_log_table"; /* or "task_tracker_log_table" */
    }
  }}}
  

Mime
View raw message