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:46:24 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 {
      //row is server host name
      rs = hql.executeQuery("select filePath: from server_data where row='" + row + "'" 
-          + "and column='" + columnfamily + ":" + qualifier + "';");
+          + "and column='" + COLUMNFAMILY + ":" + QUALIFIER + "';");
  
-     hql.executeQuery("load data file '" + rs.result() + "' into " + resultTable + ";");
+     hql.executeQuery("load data file '" + rs.getValue() + "' into " + OUTPUT + ";");
    }
  
    main(String[] args) {
-     columnfamily = "webserver";           /* or "hadoop" */
+     COLUMNFAMILY = "webserver";           /* or "hadoop" */
-     qualifier = "access_log";             /* or "task_tracker_log" */
+     QUALIFIER = "access_log";             /* or "task_tracker_log" */
-     resultTable = "access_log_table";     /* or "task_tracker_log_table" */
+     OUTPUT = "access_log_table";     /* or "task_tracker_log_table" */
    }
  }}}
  

Mime
View raw message