You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2014/04/07 20:09:21 UTC
[1/2] git commit: AMBARI-5377. Add Flume service to Ambari installer
UI. (akovalenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 7ef2daf6b -> 53e0f8da2
AMBARI-5377. Add Flume service to Ambari installer UI. (akovalenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/90973d3d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/90973d3d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/90973d3d
Branch: refs/heads/trunk
Commit: 90973d3d0689910eb615aa033134ef757fea6acc
Parents: 7ef2daf
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Mon Apr 7 21:05:59 2014 +0300
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Mon Apr 7 21:05:59 2014 +0300
----------------------------------------------------------------------
.../app/assets/data/wizard/stack/hdp/version/2.0.1.json | 11 +++++++++++
ambari-web/app/config.js | 3 ++-
ambari-web/app/controllers/wizard.js | 3 +--
ambari-web/app/controllers/wizard/step6_controller.js | 6 ++++++
ambari-web/app/data/service_components.js | 8 ++++++++
ambari-web/app/data/services.js | 12 ++++++++++++
6 files changed, 40 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/90973d3d/ambari-web/app/assets/data/wizard/stack/hdp/version/2.0.1.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/wizard/stack/hdp/version/2.0.1.json b/ambari-web/app/assets/data/wizard/stack/hdp/version/2.0.1.json
index 414dbec..5a28464 100644
--- a/ambari-web/app/assets/data/wizard/stack/hdp/version/2.0.1.json
+++ b/ambari-web/app/assets/data/wizard/stack/hdp/version/2.0.1.json
@@ -165,6 +165,17 @@
"comments" : "Apache Hadoop Stream processing framework",
"service_version" : "0.9.0.1"
}
+ },
+ {
+ "href" : "http://192.168.56.101:8080/api/v1/stacks2/HDP/versions/2.0.1/stackServices/FLUME",
+ "StackServices" : {
+ "user_name" : "root",
+ "stack_version" : "2.0.1",
+ "service_name" : "FLUME",
+ "stack_name" : "HDP",
+ "comments" : "Efficiently collects, aggregates, and moves large amounts of log data",
+ "service_version" : "1.4.0"
+ }
}
]
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/90973d3d/ambari-web/app/config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/config.js b/ambari-web/app/config.js
index 14313be..217cc9f 100644
--- a/ambari-web/app/config.js
+++ b/ambari-web/app/config.js
@@ -76,7 +76,8 @@ App.supports = {
appTimelineServer: true,
jobs: true,
ubuntu: true,
- views: false
+ views: false,
+ flume: false
};
if (App.enableExperimental) {
http://git-wip-us.apache.org/repos/asf/ambari/blob/90973d3d/ambari-web/app/controllers/wizard.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard.js b/ambari-web/app/controllers/wizard.js
index 548edbb..4affb3b 100644
--- a/ambari-web/app/controllers/wizard.js
+++ b/ambari-web/app/controllers/wizard.js
@@ -499,10 +499,9 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, {
},
loadServicesFromServer: function () {
- var services = this.getDBProperty('service');
var apiService = this.loadServiceComponents();
this.set('content.services', apiService);
- this.setDBProperty('service',apiService);
+ this.setDBProperty('service', apiService);
},
/**
* Load config groups from local DB
http://git-wip-us.apache.org/repos/asf/ambari/blob/90973d3d/ambari-web/app/controllers/wizard/step6_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step6_controller.js b/ambari-web/app/controllers/wizard/step6_controller.js
index 5d79303..b7f4639 100644
--- a/ambari-web/app/controllers/wizard/step6_controller.js
+++ b/ambari-web/app/controllers/wizard/step6_controller.js
@@ -244,6 +244,12 @@ App.WizardStep6Controller = Em.Controller.extend({
label: self.getComponentDisplayName('SUPERVISOR')
}));
}
+ if (this.isServiceSelected('FLUME')) {
+ headers.pushObject(Em.Object.create({
+ name: 'FLUME_HANDLER',
+ label: self.getComponentDisplayName('FLUME_HANDLER')
+ }));
+ }
headers.pushObject(Ember.Object.create({
name: 'CLIENT',
label: self.getComponentDisplayName('CLIENT')
http://git-wip-us.apache.org/repos/asf/ambari/blob/90973d3d/ambari-web/app/data/service_components.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/data/service_components.js b/ambari-web/app/data/service_components.js
index a5fe3db..f066c46 100644
--- a/ambari-web/app/data/service_components.js
+++ b/ambari-web/app/data/service_components.js
@@ -397,6 +397,14 @@ module.exports = new Ember.Set([
isMaster: true,
isClient: false,
description: 'Master component for STORM'
+ },
+ {
+ service_name: 'FLUME',
+ component_name: 'FLUME_HANDLER',
+ display_name: 'Flume Agent',
+ isMaster: false,
+ isClient: false,
+ description: 'Slave component for Flume'
}
]);
http://git-wip-us.apache.org/repos/asf/ambari/blob/90973d3d/ambari-web/app/data/services.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/data/services.js b/ambari-web/app/data/services.js
index b6622a3..f94440b 100644
--- a/ambari-web/app/data/services.js
+++ b/ambari-web/app/data/services.js
@@ -175,3 +175,15 @@ module.exports = [
description: Em.I18n.t('services.storm.description')
}
];
+
+if (App.supports.flume) {
+ var flume = {
+ serviceName: 'FLUME',
+ displayName: 'Flume',
+ isDisabled: false,
+ isSelected: true,
+ canBeSelected: true,
+ isHidden: false
+ };
+ module.exports.push(flume);
+}
[2/2] git commit: AMBARI-5379. Add Flume service to installer UI
configs. (akovalenko)
Posted by ak...@apache.org.
AMBARI-5379. Add Flume service to installer UI configs. (akovalenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/53e0f8da
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/53e0f8da
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/53e0f8da
Branch: refs/heads/trunk
Commit: 53e0f8da2912622d8d8426da59d89182c2dcfcfc
Parents: 90973d3
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Mon Apr 7 21:08:37 2014 +0300
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Mon Apr 7 21:08:37 2014 +0300
----------------------------------------------------------------------
.../app/controllers/wizard/step8_controller.js | 19 ++++++++++++++++++-
ambari-web/app/data/HDP2/site_properties.js | 14 +++++++++++++-
ambari-web/app/data/service_configs.js | 9 +++++++++
3 files changed, 40 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/53e0f8da/ambari-web/app/controllers/wizard/step8_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js
index 2509d54..bb3f5b8 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -1168,7 +1168,8 @@ App.WizardStep8Controller = Em.Controller.extend({
PIG: {site: [], log4j: ['pig']},
FALCON: {site: [{filename:'falcon-startup.properties',isXmlFile: false},{filename:'falcon-runtime.properties',isXmlFile: false}], log4j: []},
TEZ: {site: [{filename:'tez-site',isXmlFile: true}], log4j: []},
- ZOOKEEPER: {site: [], log4j: ['zookeeper']}
+ ZOOKEEPER: {site: [], log4j: ['zookeeper']},
+ FLUME: {site: [], log4j: []}
};
if (App.supports.capacitySchedulerUi) {
@@ -1194,6 +1195,9 @@ App.WizardStep8Controller = Em.Controller.extend({
if (selectedServices.someProperty('serviceName', 'ZOOKEEPER')) {
this.get('serviceConfigTags').pushObject(this.createZooCfgObj());
}
+ if (selectedServices.someProperty('serviceName', 'FLUME')) {
+ this.get('serviceConfigTags').pushObject(this.createFlumeConfObj());
+ }
},
/**
@@ -1423,6 +1427,19 @@ App.WizardStep8Controller = Em.Controller.extend({
},
/**
+ * Create flume.conf Object
+ * @returns {{type: string, tag: string, properties: {}}}
+ */
+ createFlumeConfObj: function () {
+ var configs = this.get('configs').filterProperty('filename', 'flume.conf');
+ var csProperties = {};
+ configs.forEach(function (_configProperty) {
+ csProperties[_configProperty.name] = App.config.escapeXMLCharacters(_configProperty.value);
+ }, this);
+ return {type: 'flume.conf', tag: 'version1', properties: csProperties};
+ },
+
+ /**
* Create site obj for Storm
* Some config-properties should be modified in custom way
* @returns {{type: string, tag: string, properties: {}}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/53e0f8da/ambari-web/app/data/HDP2/site_properties.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/data/HDP2/site_properties.js b/ambari-web/app/data/HDP2/site_properties.js
index 0ced041..9d31d63 100644
--- a/ambari-web/app/data/HDP2/site_properties.js
+++ b/ambari-web/app/data/HDP2/site_properties.js
@@ -1640,7 +1640,19 @@ module.exports =
"filename": "core-site.xml",
"serviceName": "GLUSTERFS",
"category": "General"
- }
+ },
+ /********************************************* flume.conf *****************************/
+ {
+ "id": "site property",
+ "serviceName": "FLUME",
+ "showLabel": false,
+ "isRequired": false,
+ "category": "AdvancedFlumeConf",
+ "displayName": "content",
+ "name": "content",
+ "displayType": "custom",
+ "filename": "flume.conf"
+ }
]
};
http://git-wip-us.apache.org/repos/asf/ambari/blob/53e0f8da/ambari-web/app/data/service_configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/data/service_configs.js b/ambari-web/app/data/service_configs.js
index 22acb91..2ea1958 100644
--- a/ambari-web/app/data/service_configs.js
+++ b/ambari-web/app/data/service_configs.js
@@ -280,6 +280,15 @@ module.exports = [
configs: []
},
{
+ serviceName: 'FLUME',
+ displayName: 'Flume',
+ configCategories: [
+ App.ServiceConfigCategory.create({ name: 'AdvancedFlumeConf', displayName : 'flume.conf', siteFileName: 'flume.conf', canAddProperty: false})
+ ],
+ sites: ['flume.conf'],
+ configs: []
+ },
+ {
serviceName: 'MISC',
displayName: 'Misc',
configsValidator: App.userConfigsValidator,