You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by mo...@apache.org on 2013/02/26 04:20:37 UTC

svn commit: r1450006 - in /oozie/trunk: release-log.txt webapp/src/main/webapp/oozie-console.js

Author: mona
Date: Tue Feb 26 03:20:37 2013
New Revision: 1450006

URL: http://svn.apache.org/r1450006
Log:
OOZIE-1203 Oozie web-console to display Bundle job definition, configuration and log tabs (mona) and fixed spacing in release-log

Modified:
    oozie/trunk/release-log.txt
    oozie/trunk/webapp/src/main/webapp/oozie-console.js

Modified: oozie/trunk/release-log.txt
URL: http://svn.apache.org/viewvc/oozie/trunk/release-log.txt?rev=1450006&r1=1450005&r2=1450006&view=diff
==============================================================================
--- oozie/trunk/release-log.txt (original)
+++ oozie/trunk/release-log.txt Tue Feb 26 03:20:37 2013
@@ -1,43 +1,45 @@
 -- Oozie 4.0.0 release (trunk - unreleased)
 
+OOZIE-1203 Oozie web-console to display Bundle job definition, configuration and log tabs (mona)
 OOZIE-1237 Bump up trunk to 4.0.0-SNAPSHOT (virag)
 OOZIE-561 Integrate Oozie with HCatalog
-    OOZIE-1181 Dependency cache with configurations for eviction, ttl and max elements in memory (rohini via virag)
-    OOZIE-1217 Address review comments in OOZIE-1210 (rohini via virag)
-    OOZIE-1197 Create a hcat sharelib which can be included in pig, hive and java actions (mona,rohini via virag)
-    OOZIE-1196 HCat EL functions for database and table should be modified (mona)
-    OOZIE-1210 Rework uri handling for Prepare actions and jms server mapping (rohini via virag)
-    OOZIE-1179 coord action in WAITING when no definition of dataset in coord job xml (mona)
-    OOZIE-1185 Retry jms connections on failure (rohini via virag)
-    OOZIE-1158 Add hcataloglib sub-module (mona)
-    OOZIE-1180 Separate the connection context details from JMS Accessor service (virag)
-    OOZIE-1157 EL function hcat:exists for decision making (rohini via mona)
-    OOZIE-1167 Fix and rework PartitionDependency Management (rohini via virag)
-    OOZIE-1156 Make all the latest/future instances as pull dependences (virag)
-    OOZIE-1145 Modify Recovery Service to handle push missing dependencies (virag)
-    OOZIE-1135 Display missing partition dependencies via job -info command on CLI (mona)
-    OOZIE-1125 Prepare actions for hcat (rohini via virag)
-    OOZIE-1123 EL Functions for hcatalog (mona)
-    OOZIE-1138 Provide rule based mechanism to allow multiple hcatalog servers to connect to JMS server (virag)
-    OOZIE-1111 change HCatURI to specify partitions in path instead of query parameter (rohini,ryota via virag)
-    OOZIE-1108 Fix JMS message consumer to maintain single session per topic registration (mona)
-    OOZIE-1075 Create general scheme handler (rohini via virag)
-    OOZIE-1107 Change default done-flag from _SUCCESS to empty for Hcat (mohammad)
-    OOZIE-1095 Add HCatalog jar as resource for building (mona)
-    OOZIE-1105 Resolve issues found during integration(mohammad)
-    OOZIE-1086 Command to check the missing partitions directly against HCatalog server (mohammad)
-    OOZIE-1050 Implement logic to update dependencies via push JMS message(mona via mohammad)
-    OOZIE-1068 Metadata Accessor service for HCatalog(mohammad)
-    OOZIE-1069 Update dataIn and dataOut EL functions to support partitions (mohammad)
-    OOZIE-1043 Add logic to register to Missing Dependency Structure in coord action materialization (ryota via mohammad)
-    OOZIE-1061 Add new EL functions to retrieve HCatalog server, DB and table name(mohammad)
-    OOZIE-1056 Command to update push-based dependency (mohammad)
-    OOZIE-1059 Add static method to create URI String in HCatURI(ryota via mohammad)
-    OOZIE-1039 Implement the Missing Dependency structure for HCat partitions (mona via mohammad)
-    OOZIE-1042 Coordinator action table schema change. (Mohammad)
-    OOZIE-1036 Utility class to parse HCat URI (Ryota via Mohammad)
-    OOZIE-1033 Generic utility class to register/unregister a JMS message handler(Mohammad)
-    OOZIE-1032 Create JMSService used for any JMS compliant product (Mohammad)
+OOZIE-1181 Dependency cache with configurations for eviction, ttl and max elements in memory (rohini via virag)
+OOZIE-1217 Address review comments in OOZIE-1210 (rohini via virag)
+OOZIE-1197 Create a hcat sharelib which can be included in pig, hive and java actions (mona,rohini via virag)
+OOZIE-1196 HCat EL functions for database and table should be modified (mona)
+OOZIE-1210 Rework uri handling for Prepare actions and jms server mapping (rohini via virag)
+OOZIE-1179 coord action in WAITING when no definition of dataset in coord job xml (mona)
+OOZIE-1185 Retry jms connections on failure (rohini via virag)
+OOZIE-1158 Add hcataloglib sub-module (mona)
+OOZIE-1180 Separate the connection context details from JMS Accessor service (virag)
+OOZIE-1097 Revert OOZIE-1095 once dependent HCat jar mavenized (mona)
+OOZIE-1157 EL function hcat:exists for decision making (rohini via mona)
+OOZIE-1167 Fix and rework PartitionDependency Management (rohini via virag)
+OOZIE-1156 Make all the latest/future instances as pull dependences (virag)
+OOZIE-1145 Modify Recovery Service to handle push missing dependencies (virag)
+OOZIE-1135 Display missing partition dependencies via job -info command on CLI (mona)
+OOZIE-1125 Prepare actions for hcat (rohini via virag)
+OOZIE-1123 EL Functions for hcatalog (mona)
+OOZIE-1138 Provide rule based mechanism to allow multiple hcatalog servers to connect to JMS server (virag)
+OOZIE-1111 change HCatURI to specify partitions in path instead of query parameter (rohini,ryota via virag)
+OOZIE-1108 Fix JMS message consumer to maintain single session per topic registration (mona)
+OOZIE-1075 Create general scheme handler (rohini via virag)
+OOZIE-1107 Change default done-flag from _SUCCESS to empty for Hcat (mohammad)
+OOZIE-1095 Add HCatalog jar as resource for building (mona)
+OOZIE-1105 Resolve issues found during integration(mohammad)
+OOZIE-1086 Command to check the missing partitions directly against HCatalog server (mohammad)
+OOZIE-1050 Implement logic to update dependencies via push JMS message(mona via mohammad)
+OOZIE-1068 Metadata Accessor service for HCatalog(mohammad)
+OOZIE-1069 Update dataIn and dataOut EL functions to support partitions (mohammad)
+OOZIE-1043 Add logic to register to Missing Dependency Structure in coord action materialization (ryota via mohammad)
+OOZIE-1061 Add new EL functions to retrieve HCatalog server, DB and table name(mohammad)
+OOZIE-1056 Command to update push-based dependency (mohammad)
+OOZIE-1059 Add static method to create URI String in HCatURI(ryota via mohammad)
+OOZIE-1039 Implement the Missing Dependency structure for HCat partitions (mona via mohammad)
+OOZIE-1042 Coordinator action table schema change. (Mohammad)
+OOZIE-1036 Utility class to parse HCat URI (Ryota via Mohammad)
+OOZIE-1033 Generic utility class to register/unregister a JMS message handler(Mohammad)
+OOZIE-1032 Create JMSService used for any JMS compliant product (Mohammad)
 OOZIE-1045 Parameterize <unresolved-instances> tag currently hardcoded (egashira via mona)
 OOZIE-1189 add filter option to specify JobID and AppName in SLA CLI command (egashira via mona)
 OOZIE-1054 Create script to properly upload sharelib to HDFS (bowenzhangusa via tucu)

Modified: oozie/trunk/webapp/src/main/webapp/oozie-console.js
URL: http://svn.apache.org/viewvc/oozie/trunk/webapp/src/main/webapp/oozie-console.js?rev=1450006&r1=1450005&r2=1450006&view=diff
==============================================================================
--- oozie/trunk/webapp/src/main/webapp/oozie-console.js (original)
+++ oozie/trunk/webapp/src/main/webapp/oozie-console.js Tue Feb 26 03:20:37 2013
@@ -1272,6 +1272,16 @@ function bundleJobDetailsPopup(response,
         }
     });
 
+    var jobLogArea = new Ext.form.TextArea({
+        fieldLabel: 'Logs',
+        editable: false,
+        name: 'logs',
+        width: 1010,
+        height: 400,
+        autoScroll: true,
+        emptyText: "Loading..."
+    });
+
     var jobDetailsTab = new Ext.TabPanel({
         activeTab: 0,
         autoHeight: true,
@@ -1279,23 +1289,66 @@ function bundleJobDetailsPopup(response,
         items: [ {
             title: 'Bundle Job Info',
             items: fs
-        }]
-    });
+        },{
+           title: 'Bundle Job Definition',
+	   		 items: jobDefinitionArea
+	    },{
+            title: 'Bundle Job Configuration',
+             items: new Ext.form.TextArea({
+              fieldLabel: 'Configuration',
+              editable: false,
+              name: 'config',
+                width: 1010,
+                height: 430,
+                autoScroll: true,
+                value: jobDetails["conf"]
+             })
+	      },{
+           title: 'Bundle Job Log',
+	   		 items: jobLogArea,
+             tbar: [ {
+                text: "&nbsp;&nbsp;&nbsp;",
+                icon: 'ext-2.2/resources/images/default/grid/refresh.gif',
+                handler: function() {
+                    fetchLogs(bundleJobId);
+                }
+            }]
+	    }]
+     });
 
     jobDetailsTab.addListener("tabchange", function(panel, selectedTab) {
         if (selectedTab.title == "Bundle Job Info") {
             coord_jobs_grid.setVisible(true);
             return;
         }
-        //if (selectedTab.title == 'Job Log') {
-        //    fetchLogs(workflowId);
-        //}
-        //else if (selectedTab.title == 'Job Definition') {
-        //    fetchDefinition(workflowId);
-        //}
+        else if (selectedTab.title == 'Bundle Job Log') {
+            fetchLogs(bundleJobId);
+        }
+        else if (selectedTab.title == 'Bundle Job Definition') {
+            fetchDefinition(bundleJobId);
+        }
         coord_jobs_grid.setVisible(false);
     });
 
+    function fetchDefinition(bundleJobId) {
+        Ext.Ajax.request({
+            url: getOozieBase() + 'job/' + bundleJobId + "?show=definition",
+            success: function(response, request) {
+                jobDefinitionArea.setRawValue(response.responseText);
+            }
+        });
+    }
+
+	function fetchLogs(bundleJobId) {
+        Ext.Ajax.request({
+            url: getOozieBase() + 'job/' + bundleJobId + "?show=log",
+            success: function(response, request) {
+                jobLogArea.setRawValue(response.responseText);
+            }
+
+        });
+    }
+
     var win = new Ext.Window({
         title: 'Job (Name: ' + bundleJobName + '/bundleJobId: ' + bundleJobId + ')',
         closable: true,
@@ -1328,8 +1381,6 @@ function coordJobDetailsGridWindow(coord
          */
         url: getOozieBase() + 'job/' + coordJobId + "?timezone=" + getTimeZone(),
         success: coordJobDetailsPopup
-        // success: alert("succeeded " + response),
-        // failure: alert("Coordinator PopUP did not work" + coordJobId),
     });
 }