http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/templates/vertex/tasks.hbs ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/templates/vertex/tasks.hbs b/tez-ui2/src/main/webapp/app/templates/vertex/tasks.hbs deleted file mode 100644 index d36678a..0000000 --- a/tez-ui2/src/main/webapp/app/templates/vertex/tasks.hbs +++ /dev/null @@ -1,37 +0,0 @@ -{{! - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. -}} - -{{#if loaded}} - {{em-table - columns=visibleColumns - rows=model - - headerComponentNames=headerComponentNames - - definition=definition - - searchAction="searchChanged" - sortAction="sortChanged" - rowAction="rowCountChanged" - pageAction="pageChanged" - - rowsChanged="rowsChanged" - }} -{{else}} - {{partial "loading"}} -{{/if}}
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/transforms/object.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/transforms/object.js b/tez-ui2/src/main/webapp/app/transforms/object.js deleted file mode 100644 index 760f4f9..0000000 --- a/tez-ui2/src/main/webapp/app/transforms/object.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import DS from 'ember-data'; - -export default DS.Transform.extend({ - deserialize(serialized) { - return serialized; - }, - - serialize(deserialized) { - return deserialized; - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/utils/counter-column-definition.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/utils/counter-column-definition.js b/tez-ui2/src/main/webapp/app/utils/counter-column-definition.js deleted file mode 100644 index d66e551..0000000 --- a/tez-ui2/src/main/webapp/app/utils/counter-column-definition.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import Ember from 'ember'; - -import isIOCounter from '../utils/misc'; -import ColumnDefinition from 'em-table/utils/column-definition'; - -/* - * Returns a counter value from for a row - * @param row - * @return value - */ -function getCounterContent(row) { - var counter = Ember.get(row, this.get("contentPath")); - - if(counter) { - counter = counter[this.get("counterGroupName")]; - if(counter) { - return counter[this.get("counterName")] || null; - } - return null; - } -} - -var CounterColumnDefinition = ColumnDefinition.extend({ - counterName: "", - counterGroupName: "", - - observePath: true, - contentPath: "counterGroupsHash", - - getCellContent: getCounterContent, - getSearchValue: getCounterContent, - getSortValue: getCounterContent, - - id: Ember.computed("counterName", "counterGroupName", function () { - var groupName = this.get("counterGroupName"), - counterName = this.get("counterName"); - return `${groupName}/${counterName}`; - }), - - groupDisplayName: Ember.computed("counterGroupName", function () { - var displayName = this.get("counterGroupName"); - - // Prune dotted path - displayName = displayName.substr(displayName.lastIndexOf('.') + 1); - - if(isIOCounter(displayName)) { - displayName = displayName.replace("_INPUT_", " to Input-"); - displayName = displayName.replace("_OUTPUT_", " to Output-"); - } - - // Prune counter text - displayName = displayName.replace("Counter_", " - "); - displayName = displayName.replace("Counter", ""); - - return displayName; - }), - - headerTitle: Ember.computed("groupDisplayName", "counterName", function () { - var groupName = this.get("groupDisplayName"), - counterName = this.get("counterName"); - return `${groupName} - ${counterName}`; - }), -}); - -CounterColumnDefinition.make = function (rawDefinition) { - if(Array.isArray(rawDefinition)) { - return rawDefinition.map(function (def) { - return CounterColumnDefinition.create(def); - }); - } - else if(typeof rawDefinition === 'object') { - return CounterColumnDefinition.create(rawDefinition); - } - else { - throw new Error("rawDefinition must be an Array or an Object."); - } -}; - -export default CounterColumnDefinition; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/utils/download-dag-zip.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/utils/download-dag-zip.js b/tez-ui2/src/main/webapp/app/utils/download-dag-zip.js deleted file mode 100644 index eeb20ac..0000000 --- a/tez-ui2/src/main/webapp/app/utils/download-dag-zip.js +++ /dev/null @@ -1,407 +0,0 @@ -/*global zip, saveAs*/ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -import Ember from 'ember'; -import DS from 'ember-data'; - -zip.workerScriptsPath = "assets/zip/"; - -var IO = { - /* Allow queuing of downloads and then get a callback once all the downloads are done. - * sample usage. - * var downloader = IO.fileDownloader(); - * downloader.queueItem({ - * url: 'http://....', - * onItemFetched: function(data, context) {...}, - * context: {}, // context object gets passed back to the callback - * }); - * downloader.queueItem({...}); //queue in other items - * downloader.finish(); // once all items are queued. items can be queued from - * // callbacks too. in that case the finish should be called - * // once all items are queued. - * downloader.then(successCallback).catch(failurecallback).finally(callback) - */ - fileDownloader: function(options) { - var itemList = [], - opts = options || {}, - numParallel = opts.numParallel || 5, - hasMoreInputs = true, - inProgress = 0, - hasFailed = false, - pendingRequests = {}, - pendingRequestID = 0, - failureReason = 'Unknown', - deferredPromise = Ember.RSVP.defer(); - - function checkForCompletion() { - if (hasFailed) { - if (inProgress === 0) { - deferredPromise.reject("Unknown Error"); - } - return; - } - - if (hasMoreInputs || itemList.length > 0 || inProgress > 0) { - return; - } - - deferredPromise.resolve(); - } - - function getRequestId() { - return "req_" + pendingRequestID++; - } - - function abortPendingRequests() { - Ember.$.each(pendingRequests, function(idx, val) { - try { - val.abort("abort"); - } catch(e) {} - }); - } - - function markFailed(reason) { - if (!hasFailed) { - hasFailed = true; - failureReason = reason; - abortPendingRequests(); - } - } - - function processNext() { - if (inProgress >= numParallel) { - Ember.Logger.debug(`delaying download as ${inProgress} of ${numParallel} is in progress`); - return; - } - - if (itemList.length < 1) { - Ember.Logger.debug("no items to download"); - checkForCompletion(); - return; - } - - inProgress++; - Ember.Logger.debug(`starting download ${inProgress}`); - var item = itemList.shift(); - - var xhr = Ember.$.ajax({ - crossOrigin: true, - url: item.url, - dataType: 'json', - xhrFields: { - withCredentials: true - }, - }); - var reqID = getRequestId(); - pendingRequests[reqID] = xhr; - - xhr.done(function(data/*, statusText, xhr*/) { - delete pendingRequests[reqID]; - - if (Ember.$.isFunction(item.onItemFetched)) { - try { - item.onItemFetched(data, item.context); - } catch (e) { - markFailed(e || 'failed to process data'); - inProgress--; - checkForCompletion(); - return; - } - } - - inProgress--; - processNext(); - }).fail(function(xhr, statusText/*, errorObject*/) { - delete pendingRequests[reqID]; - markFailed(statusText); - inProgress--; - checkForCompletion(); - }); - } - - return DS.PromiseObject.create({ - promise: deferredPromise.promise, - - queueItems: function(options) { - options.forEach(this.queueItem); - }, - - queueItem: function(option) { - itemList.push(option); - processNext(); - }, - - finish: function() { - hasMoreInputs = false; - checkForCompletion(); - }, - - cancel: function() { - markFailed("User cancelled"); - checkForCompletion(); - } - }); - }, - - - /* - * allows to zip files and download that. - * usage: - * zipHelper = IO.zipHelper({ - * onProgress: function(filename, current, total) { ...}, - * onAdd: function(filename) {...} - * }); - * zipHelper.addFile({name: filenameinsidezip, data: data); - * // add all files - * once all files are added call the close - * zipHelper.close(); // or .abort to abort zip - * zipHelper.then(function(zippedBlob) { - * saveAs(filename, zippedBlob); - * }).catch(failureCallback); - */ - zipHelper: function(options) { - var opts = options || {}, - zipWriter, - completion = Ember.RSVP.defer(), - fileList = [], - completed = 0, - currentIdx = -1, - numFiles = 0, - hasMoreInputs = true, - inProgress = false, - hasFailed = false; - - zip.createWriter(new zip.BlobWriter("application/zip"), function(writer) { - zipWriter = writer; - checkForCompletion(); - nextFile(); - }); - - function checkForCompletion() { - if (hasFailed) { - if (zipWriter) { - Ember.Logger.debug("aborting zipping. closing file."); - zipWriter.close(completion.reject); - zipWriter = null; - } - } else { - if (!hasMoreInputs && numFiles === completed) { - Ember.Logger.debug("completed zipping. closing file."); - zipWriter.close(completion.resolve); - } - } - } - - function onProgress(current, total) { - if (Ember.$.isFunction(opts.onProgress)) { - opts.onProgress(fileList[currentIdx].name, current, total); - } - } - - function onAdd(filename) { - if (Ember.$.isFunction(opts.onAdd)) { - opts.onAdd(filename); - } - } - - function nextFile() { - if (hasFailed || completed === numFiles || inProgress) { - return; - } - - currentIdx++; - var file = fileList[currentIdx]; - inProgress = true; - onAdd(file.name); - zipWriter.add(file.name, new zip.TextReader(file.data), function() { - completed++; - inProgress = false; - if (currentIdx < numFiles - 1) { - nextFile(); - } - checkForCompletion(); - }, onProgress); - } - - return DS.PromiseObject.create({ - addFiles: function(files) { - files.forEach(this.addFile); - }, - - addFile: function(file) { - if (hasFailed) { - Ember.Logger.debug(`Skipping add of file ${file.name} as zip has been aborted`); - return; - } - numFiles++; - fileList.push(file); - if (zipWriter) { - Ember.Logger.debug("adding file from addFile: " + file.name); - nextFile(); - } - }, - - close: function() { - hasMoreInputs = false; - checkForCompletion(); - }, - - promise: completion.promise, - - abort: function() { - hasFailed = true; - this.close(); - } - }); - } -}; - -export default function downloadDagZip(dag, options) { - var opts = options || {}, - batchSize = opts.batchSize || 1000, - dagID = dag.get("entityID"), - baseurl = `${options.timelineHost}/${options.timelineNamespace}`, - itemsToDownload = [ - { - url: getUrl('TEZ_APPLICATION', 'tez_' + dag.get("appID")), - context: { name: 'application', type: 'TEZ_APPLICATION' }, - onItemFetched: processSingleItem - }, - { - url: getUrl('TEZ_DAG_ID', dagID), - context: { name: 'dag', type: 'TEZ_DAG_ID' }, - onItemFetched: processSingleItem - }, - { - url: getUrl('TEZ_VERTEX_ID', dagID), - context: { name: 'vertices', type: 'TEZ_VERTEX_ID', part: 0 }, - onItemFetched: processMultipleItems - }, - { - url: getUrl('TEZ_TASK_ID', dagID), - context: { name: 'tasks', type: 'TEZ_TASK_ID', part: 0 }, - onItemFetched: processMultipleItems - }, - { - url: getUrl('TEZ_TASK_ATTEMPT_ID', dagID), - context: { name: 'task_attempts', type: 'TEZ_TASK_ATTEMPT_ID', part: 0 }, - onItemFetched: processMultipleItems - } - ], - totalItemsToDownload = itemsToDownload.length, - numItemTypesToDownload = totalItemsToDownload, - downloader = IO.fileDownloader(), - zipHelper = IO.zipHelper({ - onProgress: function(filename, current, total) { - Ember.Logger.debug(`${filename}: ${current} of ${total}`); - }, - onAdd: function(filename) { - Ember.Logger.debug(`adding ${filename} to Zip`); - } - }), - downloaderProxy = Ember.Object.create({ - percent: 0, - succeeded: false, - failed: false, - cancel: function() { - downloader.cancel(); - } - }); - - function getUrl(type, dagID, fromID) { - var url, - queryBatchSize = batchSize + 1; - - if (type === 'TEZ_DAG_ID' || type === 'TEZ_APPLICATION') { - url = `${baseurl}/${type}/${dagID}`; - } else { - url = `${baseurl}/${type}?primaryFilter=TEZ_DAG_ID:${dagID}&limit=${queryBatchSize}`; - if (!!fromID) { - url = `${url}&fromId=${fromID}`; - } - } - return url; - } - - function checkIfAllDownloaded() { - numItemTypesToDownload--; - - var remainingItems = totalItemsToDownload - numItemTypesToDownload; - downloaderProxy.set("percent", remainingItems / totalItemsToDownload); - - if (numItemTypesToDownload === 0) { - downloader.finish(); - } - } - - function processSingleItem(data, context) { - var obj = {}; - obj[context.name] = data; - - zipHelper.addFile({name: `${context.name}.json`, data: JSON.stringify(obj, null, 2)}); - checkIfAllDownloaded(); - } - - function processMultipleItems(data, context) { - var obj = {}; - var nextBatchStart; - - if (!Ember.$.isArray(data.entities)) { - throw "invalid data"; - } - - // need to handle no more entries , zero entries - if (data.entities.length > batchSize) { - nextBatchStart = data.entities.pop().entity; - } - obj[context.name] = data.entities; - - zipHelper.addFile({name: `${context.name}_part_${context.part}.json`, data: JSON.stringify(obj, null, 2)}); - - if (!!nextBatchStart) { - context.part++; - downloader.queueItem({ - url: getUrl(context.type, dagID, nextBatchStart), - context: context, - onItemFetched: processMultipleItems - }); - } else { - checkIfAllDownloaded(); - } - } - - downloader.queueItems(itemsToDownload); - - downloader.then(function() { - Ember.Logger.info('Finished download'); - zipHelper.close(); - }).catch(function(e) { - Ember.Logger.error('Failed to download: ' + e); - zipHelper.abort(); - }); - - zipHelper.then(function(zippedBlob) { - saveAs(zippedBlob, `${dagID}.zip`); - downloaderProxy.set("succeeded", true); - }, function() { - Ember.Logger.error('zip Failed'); - downloaderProxy.set("failed", true); - }); - - return downloaderProxy; -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/utils/misc.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/utils/misc.js b/tez-ui2/src/main/webapp/app/utils/misc.js deleted file mode 100644 index 93e2f0b..0000000 --- a/tez-ui2/src/main/webapp/app/utils/misc.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export default function isIOCounter(name) { - name = name.split('/')[0]; - name = name.substr(name.indexOf('_') + 1); - return !!(name.match('_INPUT_') || name.match('_OUTPUT_')); -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/utils/process-definition.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/utils/process-definition.js b/tez-ui2/src/main/webapp/app/utils/process-definition.js deleted file mode 100644 index d86119e..0000000 --- a/tez-ui2/src/main/webapp/app/utils/process-definition.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -import Ember from 'ember'; - -export default Ember.Object.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/utils/process.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/utils/process.js b/tez-ui2/src/main/webapp/app/utils/process.js deleted file mode 100644 index 3ac6720..0000000 --- a/tez-ui2/src/main/webapp/app/utils/process.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -import Ember from 'ember'; - -var processIndex = 1; - -export default Ember.Object.extend({ - _id: null, - - name: null, - events: [], // An array of objects with name and time as mandatory(else error) properties. - eventBars: null, - - index: 0, - color: null, - - blockers: null, // Array of processes that's blocking the current process - blocking: null, // Array of processes blocked by the current process - - blockingEventName: null, - - consolidateStartTime: Ember.computed.oneWay("startEvent.time"), - consolidateEndTime: Ember.computed.oneWay("endEvent.time"), - - init: function () { - this.set("_id", `process-id-${processIndex}`); - processIndex++; - }, - - getColor: function (lightnessFactor) { - var color = this.get("color"), - l; - - if(!color) { - return "#0"; - } - l = color.l; - if(lightnessFactor !== undefined) { - l += 5 + 25 * lightnessFactor; - } - return `hsl( ${color.h}, ${color.s}%, ${l}% )`; - }, - - getBarColor: function (barIndex) { - return this.getColor(1 - (barIndex / this.get("eventBars.length"))); - }, - - getConsolidateColor: function () { - return this.getColor(); - }, - - startEvent: Ember.computed("[email protected]", function () { - var events = this.get("events"), - startEvent; - if(events) { - startEvent = events[0]; - events.forEach(function (event) { - if(startEvent.time > event.time) { - startEvent = event; - } - }); - } - return startEvent; - }), - - endEvent: Ember.computed("[email protected]", function () { - var events = this.get("events"), - endEvent; - if(events) { - endEvent = events[events.length - 1]; - events.forEach(function (event) { - if(endEvent.time < event.time) { - endEvent = event; - } - }); - } - return endEvent; - }), - - getAllBlockers: function (parentHash) { - var blockers = [], - currentId = this.get("_id"); - - parentHash = parentHash || {}; // To keep a check on cyclic blockers - - parentHash[currentId] = true; - if(this.get("blockers.length")) { - this.get("blockers").forEach(function (blocker) { - if(!parentHash[blocker.get("_id")]) { - blockers.push(blocker); - blockers.push.apply(blockers, blocker.getAllBlockers(parentHash)); - } - }); - } - parentHash[currentId] = false; - - return blockers; - }, - - getTooltipContents: function (type/*, options*/) { - return [{ - title: this.get("name"), - description: "Mouse on : " + type - }]; - } - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/utils/processor.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/utils/processor.js b/tez-ui2/src/main/webapp/app/utils/processor.js deleted file mode 100644 index 6658579..0000000 --- a/tez-ui2/src/main/webapp/app/utils/processor.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -import Ember from 'ember'; - -function getVibrantHSL(colorNum, totalColors) { - if (totalColors < 1){ - totalColors = 1; - } - return { - h: colorNum * (360 / totalColors) % 360, - s: 100 - (colorNum % 2) * 30, - l: 40 - }; -} - -export default Ember.Object.extend({ - - processCount: 0, - - startTime: 0, - endTime: 0, - - timeWindow: Ember.computed("startTime", "endTime", function () { - return Math.max(0, this.get("endTime") - this.get("startTime")); - }), - - createProcessColor: function (index, totalProcessCount) { - return getVibrantHSL(index, totalProcessCount || this.get("processCount")); - }, - - timeToPositionPercent: function (time) { - return ((time - this.get("startTime")) / this.get("timeWindow")) * 100; - } - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/utils/vertex-process.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/utils/vertex-process.js b/tez-ui2/src/main/webapp/app/utils/vertex-process.js deleted file mode 100644 index 626cd22..0000000 --- a/tez-ui2/src/main/webapp/app/utils/vertex-process.js +++ /dev/null @@ -1,273 +0,0 @@ -/*global more*/ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -import Ember from 'ember'; - -import Process from './process'; - -var MoreObject = more.Object; - -export default Process.extend({ - vertex: null, - - name: Ember.computed.oneWay("vertex.name"), - completeTime: Ember.computed.oneWay("vertex.endTime"), - - blockingEventName: "VERTEX_FINISHED", - - getVisibleProps: null, - - edgeHash: null, - - eventBars: [{ - fromEvent: "FIRST_TASK_STARTED", - toEvent: "LAST_TASK_FINISHED", - }, { - fromEvent: "DEPENDENT_VERTICES_COMPLETE", - toEvent: "LAST_TASK_FINISHED", - }], - - init: function () { - this._super(); - this.set("edgeHash", Ember.Object.create()); - }, - - eventsHash: Ember.computed("[email protected]", function () { - var events = {}, - eventsArr = this.get("vertex.events"); - - if(eventsArr) { - eventsArr.forEach(function (event) { - if(event.timestamp > 0) { - events[event.eventtype] = { - name: event.eventtype, - time: event.timestamp, - info: event.eventinfo - }; - } - }); - } - - return events; - }), - - events: Ember.computed("eventsHash", - "vertex.initTime", "vertex.startTime", "vertex.endTime", - "vertex.firstTaskStartTime", "vertex.lastTaskFinishTime", "unblockDetails", - function () { - var events = [], - eventsHash = this.get("eventsHash"), - - initTime = this.get("vertex.initTime"), - startTime = this.get("vertex.startTime"), - endTime = this.get("vertex.endTime"), - - firstTaskStartTime = this.get("vertex.firstTaskStartTime"), - lastTaskFinishTime = this.get("vertex.lastTaskFinishTime"), - unblockDetails = this.get("unblockDetails"); - - if(initTime > 0) { - eventsHash["VERTEX_INITIALIZED"] = { - name: "VERTEX_INITIALIZED", - time: initTime - }; - } - - if(startTime > 0) { - eventsHash["VERTEX_STARTED"] = { - name: "VERTEX_STARTED", - time: startTime - }; - } - - if(firstTaskStartTime > 0) { - eventsHash["FIRST_TASK_STARTED"] = { - name: "FIRST_TASK_STARTED", - time: firstTaskStartTime - }; - } - - if(unblockDetails && unblockDetails.time >= firstTaskStartTime) { - eventsHash["DEPENDENT_VERTICES_COMPLETE"] = { - name: "DEPENDENT_VERTICES_COMPLETE", - time: unblockDetails.time, - edge: unblockDetails.edge - }; - } - - if(lastTaskFinishTime > 0) { - eventsHash["LAST_TASK_FINISHED"] = { - name: "LAST_TASK_FINISHED", - time: lastTaskFinishTime - }; - } - - if(endTime > 0) { - eventsHash["VERTEX_FINISHED"] = { - name: "VERTEX_FINISHED", - time: endTime - }; - } - - MoreObject.forEach(eventsHash, function (key, value) { - events.push(value); - }); - - return events; - } - ), - - unblockDetails: Ember.computed("[email protected]", function () { - var blockers = this.get("blockers"), - data = { - time: 0 - }; - - if(blockers) { - blockers.every(function (currentBlocker) { - var blockerComplete = currentBlocker.get("completeTime"); - - if(!blockerComplete) { - this.blocker = undefined; - return false; - } - else if(blockerComplete > this.time) { - this.blocker = currentBlocker; - this.time = blockerComplete; - } - - return true; - }, data); - } - - if(data.blocker) { - return { - time: data.blocker.get("completeTime"), - edge: this.get("edgeHash").get(data.blocker.get("name")) - }; - } - }), - - getTipProperties: function (propHash, propArray) { - propArray = propArray || []; - - MoreObject.forEach(propHash, function (key, value) { - if(MoreObject.isString(value)) { - propArray.push({ - name: key, - value: value, - }); - } - else if (MoreObject.isNumber(value)) { - propArray.push({ - name: key, - value: value, - type: "number" - }); - } - }); - - return propArray; - }, - - getTooltipContents: function (type, options) { - var contents, - that = this, - vertexDescription; - - switch(type) { - case "consolidated-process": - vertexDescription = `Contribution ${options.contribution}%`; - /* falls through */ - case "event-bar": - case "process-line": - case "process-name": - let properties = this.getVisibleProps().map(function (definition) { - return { - name: definition.get("headerTitle"), - value: that.get("vertex").get(definition.get("contentPath")), - type: Ember.get(definition, "cellDefinition.type"), - format: Ember.get(definition, "cellDefinition.format") - }; - }); - - contents = [{ - title: this.get("name"), - properties: properties, - description: vertexDescription - }]; - break; - case "event": - var edge; - contents = options.events.map(function (event) { - var properties = [{ - name: "Time", - value: event.time, - type: "date" - }]; - - if(event.edge) { - edge = event.edge; - } - if(event.info) { - properties = this.getTipProperties(event.info, properties); - } - - return { - title: event.name, - properties: properties - }; - }, this); - - if(edge) { - let sourceClass = edge.edgeSourceClass || "", - destClass = edge.edgeDestinationClass || ""; - - contents.push({ - title: "Edge From Final Dependent Vertex", - properties: this.getTipProperties({ - "Input Vertex": edge.inputVertexName, - "Output Vertex": edge.outputVertexName, - "Data Movement": edge.dataMovementType, - "Data Source": edge.dataSourceType, - "Scheduling": edge.schedulingType, - "Source Class": sourceClass.substr(sourceClass.lastIndexOf(".") + 1), - "Destination Class": destClass.substr(destClass.lastIndexOf(".") + 1), - }) - }); - } - break; - } - - return contents; - }, - - consolidateStartTime: Ember.computed("vertex.firstTaskStartTime", - "unblockDetails.time", function () { - return Math.max( - this.get("vertex.firstTaskStartTime") || 0, - this.get("unblockDetails.time") || 0 - ); - }), - consolidateEndTime: Ember.computed.oneWay("vertex.endTime"), - - getConsolidateColor: function () { - return this.getBarColor(this.get("unblockDetails") ? 1 : 0); - }, - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/blueprints/.jshintrc ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/blueprints/.jshintrc b/tez-ui2/src/main/webapp/blueprints/.jshintrc deleted file mode 100644 index 33f4f6f..0000000 --- a/tez-ui2/src/main/webapp/blueprints/.jshintrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "predef": [ - "console" - ], - "strict": false -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/blueprints/entity-test/files/tests/unit/entities/__name__-test.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/blueprints/entity-test/files/tests/unit/entities/__name__-test.js b/tez-ui2/src/main/webapp/blueprints/entity-test/files/tests/unit/entities/__name__-test.js deleted file mode 100644 index 179c5e5..0000000 --- a/tez-ui2/src/main/webapp/blueprints/entity-test/files/tests/unit/entities/__name__-test.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { moduleFor, test } from 'ember-qunit'; - -moduleFor('entitie:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>', { - // Specify the other units that are required for this test. - // needs: ['entitie:foo'] -}); - -// Replace this with your real tests. -test('it exists', function(assert) { - let adapter = this.subject(); - assert.ok(adapter); -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/blueprints/entity-test/index.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/blueprints/entity-test/index.js b/tez-ui2/src/main/webapp/blueprints/entity-test/index.js deleted file mode 100644 index d89d9cd..0000000 --- a/tez-ui2/src/main/webapp/blueprints/entity-test/index.js +++ /dev/null @@ -1,35 +0,0 @@ -/*jshint node:true*/ - -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -var testInfo = require('ember-cli-test-info'); - -module.exports = { - description: 'Generate an entity unit test.', - - locals: function(options) { - return { - friendlyTestDescription: testInfo.description(options.entity.name, "Unit", "Entity") - }; - }, - - // afterInstall: function(options) { - // // Perform extra work here. - // } -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/blueprints/entity/files/app/entities/__name__.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/blueprints/entity/files/app/entities/__name__.js b/tez-ui2/src/main/webapp/blueprints/entity/files/app/entities/__name__.js deleted file mode 100644 index 334868e..0000000 --- a/tez-ui2/src/main/webapp/blueprints/entity/files/app/entities/__name__.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import Entity from './entity'; - -export default Entity.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/blueprints/entity/index.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/blueprints/entity/index.js b/tez-ui2/src/main/webapp/blueprints/entity/index.js deleted file mode 100644 index 24e25ef..0000000 --- a/tez-ui2/src/main/webapp/blueprints/entity/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/*jshint node:true*/ - -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -module.exports = { - description: 'Generate and entity', - - locals: function(options) { - return {}; - } - - // afterInstall: function(options) { - // // Perform extra work here. - // } -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/bower.json ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/bower.json b/tez-ui2/src/main/webapp/bower.json deleted file mode 100644 index 4b0d01b..0000000 --- a/tez-ui2/src/main/webapp/bower.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "tez-ui", - "dependencies": { - "ember": "2.2.0", - "ember-cli-shims": "0.0.6", - "ember-cli-test-loader": "0.2.1", - "ember-data": "2.1.0", - "ember-load-initializers": "0.1.7", - "ember-qunit": "0.4.16", - "ember-qunit-notifications": "0.1.0", - "loader.js": "3.3.0", - "qunit": "1.19.0", - "more-js": "0.8.2", - "bootstrap": "3.3.6", - "font-awesome": "4.5.0", - "jquery": "2.1.4", - "jquery-ui": "1.11.4", - "moment": "2.12.0", - "moment-timezone": "0.5.0", - "numeral": "1.5.3", - "snippet-ss": "1.11.0", - "jquery-mousewheel": "3.1.13", - "FileSaver": "https://github.com/eligrey/FileSaver.js.git#24b303f49213b905ec9062b708f7cd43d56a5dde", - "zip": "https://github.com/gildas-lormeau/zip.js.git#bfd76c66293305faaf9fcbb65b5ff7fe2dbe621a", - "codemirror": "5.11.0" - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/config/build-info.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/config/build-info.js b/tez-ui2/src/main/webapp/config/build-info.js deleted file mode 100644 index ae2b33d..0000000 --- a/tez-ui2/src/main/webapp/config/build-info.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -const POM_FILE = "../../../pom.xml"; -var fs = require('fs'); - -function fetchVersion() { - try { - var fileData = fs.readFileSync(POM_FILE, 'ascii'); - // Feel this is better than parsing the whole xml - return fileData.substring(fileData.indexOf("<version>") + 9, fileData.indexOf("</version>")); - }catch(e){} -} - -module.exports = { - version: fetchVersion() -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/config/configs.env ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/config/configs.env b/tez-ui2/src/main/webapp/config/configs.env deleted file mode 100644 index d1dc9f5..0000000 --- a/tez-ui2/src/main/webapp/config/configs.env +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -ENV = { - hosts: { - /* - * Timeline Server Address: - * By default TEZ UI looks for timeline server at http://localhost:8188, uncomment and change - * the following value for pointing to a different address. - */ - //timeline: "http://localhost:8188", - - /* - * Resource Manager Address: - * By default RM REST APIs are expected to be at http://localhost:8088, uncomment and change - * the following value to point to a different address. - */ - //rm: "http://localhost:8088", - - /* - * Resource Manager Web Proxy Address: - * Optional - By default, value configured as RM host will be taken as proxy address - * Use this configuration when RM web proxy is configured at a different address than RM. - */ - //rmProxy: "http://localhost:8088", - }, - - /* - * Time Zone in which dates are displayed in the UI: - * If not set, local time zone will be used. - * Refer http://momentjs.com/timezone/docs/ for valid entries. - */ - //timeZone: "UTC", - - /* - * yarnProtocol: - * If specified, this protocol would be used to construct node manager log links. - * Possible values: http, https - * Default value: If not specified, protocol of hosts.rm will be used - */ - //yarnProtocol: "<value>", -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/config/default-app-conf.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/config/default-app-conf.js b/tez-ui2/src/main/webapp/config/default-app-conf.js deleted file mode 100644 index c53e4d7..0000000 --- a/tez-ui2/src/main/webapp/config/default-app-conf.js +++ /dev/null @@ -1,333 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -var buildInfo = require('./build-info'); - -module.exports = { // Tez App configurations - buildVersion: buildInfo.version || "", - isStandalone: true, // Must be set false while running in wrapped mode - rowLoadLimit: 9007199254740991, - pollingInterval: 3000, - - hosts: { - timeline: 'localhost:8188', - rm: 'localhost:8088', - }, - namespaces: { - webService: { - timeline: 'ws/v1/timeline', - appHistory: 'ws/v1/applicationhistory', - rm: 'ws/v1/cluster', - am: 'proxy/{app_id}/ws/v2/tez', - }, - web: { - rm: 'cluster' - }, - }, - paths: { - timeline: { - dag: 'TEZ_DAG_ID', - vertex: 'TEZ_VERTEX_ID', - task: 'TEZ_TASK_ID', - attempt: 'TEZ_TASK_ATTEMPT_ID', - - hiveQuery: 'HIVE_QUERY_ID', - - app: 'TEZ_APPLICATION' - }, - am: { - "dag-am": 'dagInfo', - "vertex-am": 'verticesInfo', - "task-am": 'tasksInfo', - "attempt-am": 'attemptsInfo', - }, - rm: { - "app-rm": "apps" - } - }, - hrefs: { - help: "https://tez.apache.org/tez_ui_user_data.html", - license: "http://www.apache.org/licenses/LICENSE-2.0" - }, - - tables: { - defaultColumns: { - counters: [ - // File System Counters - { - counterName: 'FILE_BYTES_READ', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'FILE_BYTES_WRITTEN', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'FILE_READ_OPS', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'FILE_LARGE_READ_OPS', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'FILE_WRITE_OPS', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'HDFS_BYTES_READ', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'HDFS_BYTES_WRITTEN', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'HDFS_READ_OPS', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'HDFS_LARGE_READ_OPS', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - { - counterName: 'HDFS_WRITE_OPS', - counterGroupName: 'org.apache.tez.common.counters.FileSystemCounter', - }, - - // Task Counters - { - counterName: "NUM_SPECULATIONS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "REDUCE_INPUT_GROUPS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "REDUCE_INPUT_RECORDS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "SPLIT_RAW_BYTES", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "COMBINE_INPUT_RECORDS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "SPILLED_RECORDS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "NUM_SHUFFLED_INPUTS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "NUM_SKIPPED_INPUTS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "NUM_FAILED_SHUFFLE_INPUTS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "MERGED_MAP_OUTPUTS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "GC_TIME_MILLIS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "CPU_MILLISECONDS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "PHYSICAL_MEMORY_BYTES", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "VIRTUAL_MEMORY_BYTES", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "COMMITTED_HEAP_BYTES", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "INPUT_RECORDS_PROCESSED", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "OUTPUT_RECORDS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "OUTPUT_LARGE_RECORDS", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "OUTPUT_BYTES", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "OUTPUT_BYTES_WITH_OVERHEAD", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "OUTPUT_BYTES_PHYSICAL", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "ADDITIONAL_SPILLS_BYTES_WRITTEN", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "ADDITIONAL_SPILLS_BYTES_READ", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "ADDITIONAL_SPILL_COUNT", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "SHUFFLE_BYTES", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "SHUFFLE_BYTES_DECOMPRESSED", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "SHUFFLE_BYTES_TO_MEM", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "SHUFFLE_BYTES_TO_DISK", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "SHUFFLE_BYTES_DISK_DIRECT", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "NUM_MEM_TO_DISK_MERGES", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "NUM_DISK_TO_DISK_MERGES", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "SHUFFLE_PHASE_TIME", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "MERGE_PHASE_TIME", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "FIRST_EVENT_RECEIVED", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - { - counterName: "LAST_EVENT_RECEIVED", - counterGroupName: "org.apache.tez.common.counters.TaskCounter", - }, - ], - - dagCounters: [ - { - counterName :"NUM_FAILED_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"NUM_KILLED_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"NUM_SUCCEEDED_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"TOTAL_LAUNCHED_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"OTHER_LOCAL_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"DATA_LOCAL_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"RACK_LOCAL_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"SLOTS_MILLIS_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"FALLOW_SLOTS_MILLIS_TASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"TOTAL_LAUNCHED_UBERTASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"NUM_UBER_SUBTASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - { - counterName :"NUM_FAILED_UBERTASKS", - counterGroupName :"org.apache.tez.common.counters.DAGCounter", - }, - - { - counterName: "REDUCE_OUTPUT_RECORDS", - counterGroupName: "REDUCE_OUTPUT_RECORDS", - }, - { - counterName: "REDUCE_SKIPPED_GROUPS", - counterGroupName: "REDUCE_SKIPPED_GROUPS", - }, - { - counterName: "REDUCE_SKIPPED_RECORDS", - counterGroupName: "REDUCE_SKIPPED_RECORDS", - }, - { - counterName: "COMBINE_OUTPUT_RECORDS", - counterGroupName: "COMBINE_OUTPUT_RECORDS", - }, - { - counterName: "SKIPPED_RECORDS", - counterGroupName: "SKIPPED_RECORDS", - }, - { - counterName: "INPUT_GROUPS", - counterGroupName: "INPUT_GROUPS", - } - ] - } - } -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/config/environment.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/config/environment.js b/tez-ui2/src/main/webapp/config/environment.js deleted file mode 100644 index 0c755ac..0000000 --- a/tez-ui2/src/main/webapp/config/environment.js +++ /dev/null @@ -1,70 +0,0 @@ -/* jshint node: true */ - -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -const DEFAULT_APP_CONF = require('./default-app-conf'); - -module.exports = function(environment) { - var ENV = { - modulePrefix: 'tez-ui', - environment: environment, - locationType: 'hash', - EmberENV: { - FEATURES: { - // Here you can enable experimental features on an ember canary build - // e.g. 'with-controller': true - } - }, - - APP: DEFAULT_APP_CONF, - - contentSecurityPolicy: { - 'connect-src': "* 'self'", - 'child-src': "'self' 'unsafe-inline'", - 'style-src': "'self' 'unsafe-inline'", - 'script-src': "'self' 'unsafe-inline'" - } - }; - - if (environment === 'development') { - // ENV.APP.LOG_RESOLVER = true; - // ENV.APP.LOG_ACTIVE_GENERATION = true; - // ENV.APP.LOG_TRANSITIONS = true; - // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; - // ENV.APP.LOG_VIEW_LOOKUPS = true; - } - - if (environment === 'test') { - // Testem prefers this... - ENV.baseURL = '/'; - ENV.locationType = 'none'; - - // keep test console output quieter - ENV.APP.LOG_ACTIVE_GENERATION = false; - ENV.APP.LOG_VIEW_LOOKUPS = false; - - ENV.APP.rootElement = '#ember-testing'; - } - - if (environment === 'production') { - - } - - return ENV; -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/ember-cli-build.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/ember-cli-build.js b/tez-ui2/src/main/webapp/ember-cli-build.js deleted file mode 100644 index d380982..0000000 --- a/tez-ui2/src/main/webapp/ember-cli-build.js +++ /dev/null @@ -1,76 +0,0 @@ -/*jshint node:true*/ -/* global require, module */ - -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -var Funnel = require("broccoli-funnel"); -var EmberApp = require('ember-cli/lib/broccoli/ember-app'); -var MergeTrees = require('broccoli-merge-trees'); - -module.exports = function(defaults) { - var isProd = EmberApp.env() === 'production'; - var app = new EmberApp(defaults, { - storeConfigInMeta: false, - minifyCSS: { - enabled: isProd - }, - minifyJS: { - // Will be minified by wro4j-maven-plugin for performance - enabled: false, - }, - fingerprint: { - enabled: false - }, - sourcemaps: { - enabled: !isProd - } - }); - - var configEnv = new Funnel('config', { - srcDir: '/', - include: ['*.env'], - destDir: '/config' - }); - var zipWorker = new Funnel('bower_components/zip', { - srcDir: '/WebContent', - include: ['z-worker.js', 'deflate.js', 'inflate.js'], - destDir: '/assets/zip' - }); - var copyFonts = new Funnel('bower_components/font-awesome/', { - srcDir: '/fonts', - include: ['*.*'], - destDir: '/fonts' - }); - - app.import('bower_components/bootstrap/dist/js/bootstrap.js'); - app.import('bower_components/jquery-ui/jquery-ui.js'); - app.import('bower_components/jquery-ui/ui/tooltip.js'); - - app.import('bower_components/more-js/dist/more.js'); - - app.import('bower_components/FileSaver/FileSaver.js'); - app.import('bower_components/zip/WebContent/zip.js'); - - app.import('bower_components/codemirror/lib/codemirror.js'); - app.import('bower_components/codemirror/mode/sql/sql.js'); - app.import('bower_components/codemirror/mode/pig/pig.js'); - app.import('bower_components/codemirror/lib/codemirror.css'); - - return app.toTree(new MergeTrees([configEnv, zipWorker, copyFonts])); -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/package.json ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/package.json b/tez-ui2/src/main/webapp/package.json deleted file mode 100644 index 018c088..0000000 --- a/tez-ui2/src/main/webapp/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "tez-ui", - "version": "0.2.0", - "license": "Apache-2.0", - "description": "Apache Tez UI", - "private": true, - "directories": { - "doc": "doc", - "test": "tests" - }, - "scripts": { - "build": "TMPDIR=tmp node ./node_modules/ember-cli/bin/ember build", - "start": "TMPDIR=tmp node ./node_modules/ember-cli/bin/ember server", - "test": "TMPDIR=tmp node ./node_modules/ember-cli/bin/ember test", - - "build:mvn": "TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod", - "test:mvn": "TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember test" - }, - "repository": { - "type": "git", - "url": "https://git-wip-us.apache.org/repos/asf/tez.git" - }, - "engines": { - "node": ">= 0.10.0" - }, - "devDependencies": { - "bower": "1.7.7", - "broccoli-asset-rev": "2.4.2", - "broccoli-funnel": "1.0.1", - "broccoli-merge-trees": "1.1.1", - "ember-bootstrap": "0.5.1", - "ember-cli": "1.13.13", - "ember-cli-app-version": "1.0.0", - "ember-cli-auto-register": "1.1.0", - "ember-cli-babel": "5.1.6", - "ember-cli-content-security-policy": "0.4.0", - "ember-cli-d3": "1.1.2", - "ember-cli-dependency-checker": "1.2.0", - "ember-cli-htmlbars": "1.0.2", - "ember-cli-htmlbars-inline-precompile": "0.3.1", - "ember-cli-inject-live-reload": "1.4.0", - "ember-cli-jquery-ui": "0.0.20", - "ember-cli-less": "1.5.3", - "ember-cli-moment-shim": "0.7.3", - "ember-cli-mousewheel": "0.1.5", - "ember-cli-numeral": "0.1.2", - "ember-cli-qunit": "1.2.1", - "ember-cli-release": "0.2.8", - "ember-cli-sri": "1.2.1", - "ember-cli-test-info": "1.0.0", - "ember-cli-uglify": "1.2.0", - "ember-data": "2.1.0", - "ember-disable-proxy-controllers": "1.0.1", - "ember-export-application-global": "1.0.5", - "ember-resolver": "2.0.3", - "phantomjs": "1.9.19" - }, - "dependencies": { - "em-helpers": "0.5.8", - "em-table": "0.3.12", - "em-tgraph": "0.0.4" - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/public/assets/images/favicon.png ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/public/assets/images/favicon.png b/tez-ui2/src/main/webapp/public/assets/images/favicon.png deleted file mode 100644 index 4762bdf..0000000 Binary files a/tez-ui2/src/main/webapp/public/assets/images/favicon.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/public/assets/images/logo.png ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/public/assets/images/logo.png b/tez-ui2/src/main/webapp/public/assets/images/logo.png deleted file mode 100644 index f29455a..0000000 Binary files a/tez-ui2/src/main/webapp/public/assets/images/logo.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/testem.json ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/testem.json b/tez-ui2/src/main/webapp/testem.json deleted file mode 100644 index 0f35392..0000000 --- a/tez-ui2/src/main/webapp/testem.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "framework": "qunit", - "test_page": "tests/index.html?hidepassed", - "disable_watching": true, - "launch_in_ci": [ - "PhantomJS" - ], - "launch_in_dev": [ - "PhantomJS", - "Chrome" - ] -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/.jshintrc ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/.jshintrc b/tez-ui2/src/main/webapp/tests/.jshintrc deleted file mode 100644 index 6ec0b7c..0000000 --- a/tez-ui2/src/main/webapp/tests/.jshintrc +++ /dev/null @@ -1,52 +0,0 @@ -{ - "predef": [ - "document", - "window", - "location", - "setTimeout", - "$", - "-Promise", - "define", - "console", - "visit", - "exists", - "fillIn", - "click", - "keyEvent", - "triggerEvent", - "find", - "findWithAssert", - "wait", - "DS", - "andThen", - "currentURL", - "currentPath", - "currentRouteName" - ], - "node": false, - "browser": false, - "boss": true, - "curly": true, - "debug": false, - "devel": false, - "eqeqeq": true, - "evil": true, - "forin": false, - "immed": false, - "laxbreak": false, - "newcap": true, - "noarg": true, - "noempty": false, - "nonew": false, - "nomen": false, - "onevar": false, - "plusplus": false, - "regexp": false, - "undef": true, - "sub": true, - "strict": false, - "white": false, - "eqnull": true, - "esnext": true, - "unused": true -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/helpers/destroy-app.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/helpers/destroy-app.js b/tez-ui2/src/main/webapp/tests/helpers/destroy-app.js deleted file mode 100644 index dfabf85..0000000 --- a/tez-ui2/src/main/webapp/tests/helpers/destroy-app.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import Ember from 'ember'; - -export default function destroyApp(application) { - Ember.run(application, 'destroy'); -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/helpers/module-for-acceptance.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/helpers/module-for-acceptance.js b/tez-ui2/src/main/webapp/tests/helpers/module-for-acceptance.js deleted file mode 100644 index 05aa014..0000000 --- a/tez-ui2/src/main/webapp/tests/helpers/module-for-acceptance.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { module } from 'qunit'; -import startApp from '../helpers/start-app'; -import destroyApp from '../helpers/destroy-app'; - -export default function(name, options = {}) { - module(name, { - beforeEach() { - this.application = startApp(); - - if (options.beforeEach) { - options.beforeEach.apply(this, arguments); - } - }, - - afterEach() { - destroyApp(this.application); - - if (options.afterEach) { - options.afterEach.apply(this, arguments); - } - } - }); -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/helpers/resolver.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/helpers/resolver.js b/tez-ui2/src/main/webapp/tests/helpers/resolver.js deleted file mode 100644 index 9c3d98c..0000000 --- a/tez-ui2/src/main/webapp/tests/helpers/resolver.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import Resolver from 'ember/resolver'; -import config from '../../config/environment'; - -const resolver = Resolver.create(); - -resolver.namespace = { - modulePrefix: config.modulePrefix, - podModulePrefix: config.podModulePrefix -}; - -export default resolver; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/helpers/start-app.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/helpers/start-app.js b/tez-ui2/src/main/webapp/tests/helpers/start-app.js deleted file mode 100644 index 7b25773..0000000 --- a/tez-ui2/src/main/webapp/tests/helpers/start-app.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import Ember from 'ember'; -import Application from '../../app'; -import config from '../../config/environment'; - -export default function startApp(attrs) { - let application; - - let attributes = Ember.merge({}, config.APP); - attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; - - Ember.run(() => { - application = Application.create(attributes); - application.setupForTesting(); - application.injectTestHelpers(); - }); - - return application; -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/index.html ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/index.html b/tez-ui2/src/main/webapp/tests/index.html deleted file mode 100644 index 6b43939..0000000 --- a/tez-ui2/src/main/webapp/tests/index.html +++ /dev/null @@ -1,52 +0,0 @@ -<!-- -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. ---> - -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <title>TezUi Tests</title> - <meta name="description" content=""> - <meta name="viewport" content="width=device-width, initial-scale=1"> - - {{content-for 'head'}} - {{content-for 'test-head'}} - - <link rel="stylesheet" href="assets/vendor.css"> - <link rel="stylesheet" href="assets/tez-ui.css"> - <link rel="stylesheet" href="assets/test-support.css"> - - {{content-for 'head-footer'}} - {{content-for 'test-head-footer'}} - </head> - <body> - {{content-for 'body'}} - {{content-for 'test-body'}} - - <script src="assets/vendor.js"></script> - <script src="assets/test-support.js"></script> - <script src="assets/tez-ui.js"></script> - <script src="testem.js" integrity=""></script> - <script src="assets/tests.js"></script> - <script src="assets/test-loader.js"></script> - - {{content-for 'body-footer'}} - {{content-for 'test-body-footer'}} - </body> -</html> http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/caller-info-test.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/integration/components/caller-info-test.js b/tez-ui2/src/main/webapp/tests/integration/components/caller-info-test.js deleted file mode 100644 index 20f787c..0000000 --- a/tez-ui2/src/main/webapp/tests/integration/components/caller-info-test.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { moduleForComponent, test } from 'ember-qunit'; -import hbs from 'htmlbars-inline-precompile'; - -moduleForComponent('caller-info', 'Integration | Component | caller info', { - integration: true -}); - -test('Basic creation test', function(assert) { - var testType = "Typ", - heading = "Additional Info from " + testType; - - this.set("type", testType); - - this.render(hbs`{{caller-info type=type}}`); - assert.equal(this.$(".panel-heading").text().trim(), heading); - - // Template block usage:" + EOL + - this.render(hbs` - {{#caller-info type=type}} - template block text - {{/caller-info}} - `); - assert.equal(this.$(".panel-heading").text().trim(), heading); -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/column-selector-test.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/integration/components/column-selector-test.js b/tez-ui2/src/main/webapp/tests/integration/components/column-selector-test.js deleted file mode 100644 index 0034059..0000000 --- a/tez-ui2/src/main/webapp/tests/integration/components/column-selector-test.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import Ember from 'ember'; - -import { moduleForComponent, test } from 'ember-qunit'; -import hbs from 'htmlbars-inline-precompile'; - -moduleForComponent('column-selector', 'Integration | Component | column selector', { - integration: true -}); - -test('Basic creation test', function(assert) { - - this.set("content", { - columns: [Ember.Object.create({ - headerTitle: "Test Column" - })] - }); - this.render(hbs`{{column-selector content=content}}`); - - assert.equal(this.$(".select-option ").text().trim(), 'Test Column'); - - // Template block usage:" + EOL + - this.render(hbs` - {{#column-selector content=content}} - template block text - {{/column-selector}} - `); - - assert.equal(this.$(".select-option ").text().trim(), 'Test Column'); -}); - -test('visibleColumnIDs test', function(assert) { - - this.setProperties({ - content: { - visibleColumnIDs: { - testID: true, - }, - columns: [Ember.Object.create({ - id: "testID", - headerTitle: "Test Column" - })] - } - }); - - this.render(hbs`{{column-selector content=content}}`); - - assert.equal(this.$(".select-option").text().trim(), 'Test Column'); - assert.equal(this.$(".select-option input")[0].checked, true); -}); - -test('searchText test', function(assert) { - - this.setProperties({ - searchText: "nothing", - content: { - visibleColumnIDs: { - testID: true, - }, - columns: [Ember.Object.create({ - id: "testID", - headerTitle: "Test Column" - })] - } - }); - - this.render(hbs`{{column-selector content=content searchText=searchText}}`); - - assert.equal(this.$(".select-option").text().trim(), ''); -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/dags-page-search-test.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/tests/integration/components/dags-page-search-test.js b/tez-ui2/src/main/webapp/tests/integration/components/dags-page-search-test.js deleted file mode 100644 index def7413..0000000 --- a/tez-ui2/src/main/webapp/tests/integration/components/dags-page-search-test.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { moduleForComponent, test } from 'ember-qunit'; -import hbs from 'htmlbars-inline-precompile'; - -moduleForComponent('dags-page-search', 'Integration | Component | dags page search', { - integration: true -}); - -test('Basic creation test', function(assert) { - - // Set any properties with this.set('myProperty', 'value'); - // Handle any actions with this.on('myAction', function(val) { ... });" + EOL + EOL + - - this.render(hbs`{{dags-page-search}}`); - - assert.equal(this.$("input").length, 5); - assert.equal(this.$("select").length, 1); - - // Template block usage:" + EOL + - this.render(hbs` - {{#dags-page-search}} - template block text - {{/dags-page-search}} - `); - - assert.equal(this.$("input").length, 5); - assert.equal(this.$("select").length, 1); -});
