chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r760742 - in /hadoop/chukwa/trunk/conf: database_create_tables mdl.xml.template
Date Wed, 01 Apr 2009 00:01:16 GMT
Author: eyang
Date: Wed Apr  1 00:01:16 2009
New Revision: 760742

URL: http://svn.apache.org/viewvc?rev=760742&view=rev
Log:
CHUKWA-59. Collect HDFS Usage information for users. (Contribute by Cheng Zhang via Eric Yang)

Modified:
    hadoop/chukwa/trunk/conf/database_create_tables
    hadoop/chukwa/trunk/conf/mdl.xml.template

Modified: hadoop/chukwa/trunk/conf/database_create_tables
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/conf/database_create_tables?rev=760742&r1=760741&r2=760742&view=diff
==============================================================================
--- hadoop/chukwa/trunk/conf/database_create_tables (original)
+++ hadoop/chukwa/trunk/conf/database_create_tables Wed Apr  1 00:01:16 2009
@@ -594,11 +594,12 @@
     index(timestamp)
 );
 
-create table if not exists QueueInfo(
-    Timestamp timestamp default 0,
-    HodID VARCHAR(20),
-    Queue VARCHAR(20),
-    NumOfMachine smallint unsigned,
-    status varchar(1),
-    index(Timestamp)
+create table if not exists util_template (
+    timestamp timestamp default CURRENT_TIMESTAMP,
+    user VARCHAR(20),
+    queue VARCHAR(20),
+    bytes bigint,
+    slot_hours double,
+    primary key(user, timestamp),
+    index(queue)
 );

Modified: hadoop/chukwa/trunk/conf/mdl.xml.template
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/conf/mdl.xml.template?rev=760742&r1=760741&r2=760742&view=diff
==============================================================================
--- hadoop/chukwa/trunk/conf/mdl.xml.template (original)
+++ hadoop/chukwa/trunk/conf/mdl.xml.template Wed Apr  1 00:01:16 2009
@@ -1259,5 +1259,31 @@
   <value>5,30,180,720</value>
 </property>
 
+<property>
+  <name>report.db.name.hdfsusage</name>
+  <value>hdfs_usage</value>
+  <description></description>
+</property>
+  
+<property>
+  <name>metric.hdfsusage.user</name>
+  <value>user</value>
+</property>
+
+<property>
+  <name>metric.hdfsusage.bytes</name>
+  <value>bytes</value>
+</property>
+
+<property>
+  <name>metric.hdfsusage.timestamp</name>
+  <value>timestamp</value>
+</property>
+
+<property>
+  <name>consolidator.table.hdfs_usage</name>
+  <value>5,30,180,720</value>
+</property>
+
 </configuration>
 



Mime
View raw message