You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by pp...@apache.org on 2017/04/28 05:20:15 UTC
ambari git commit: AMBARI-20866.Distcp should take a single command
rather than list of arguments to make it easier ot use.(padmapriyanitt)
Repository: ambari
Updated Branches:
refs/heads/trunk 8e61c55ed -> 7fe8fbc96
AMBARI-20866.Distcp should take a single command rather than list of arguments to make it easier ot use.(padmapriyanitt)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7fe8fbc9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7fe8fbc9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7fe8fbc9
Branch: refs/heads/trunk
Commit: 7fe8fbc960313ba019ce2f60320bd789ebb7c77f
Parents: 8e61c55
Author: padmapriyanitt <pa...@gmail.com>
Authored: Fri Apr 28 10:50:21 2017 +0530
Committer: padmapriyanitt <pa...@gmail.com>
Committed: Fri Apr 28 10:50:21 2017 +0530
----------------------------------------------------------------------
.../resources/ui/app/components/distcp-action.js | 15 ++++++++++++++-
.../ui/app/templates/components/distcp-action.hbs | 7 ++++++-
2 files changed, 20 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/7fe8fbc9/contrib/views/wfmanager/src/main/resources/ui/app/components/distcp-action.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/distcp-action.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/distcp-action.js
index e5740e3..f441203 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/distcp-action.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/distcp-action.js
@@ -32,6 +32,19 @@ export default Ember.Component.extend({
this.set("actionModel.configuration.property", Ember.A([]));
}
}.on('init'),
+ distcpCommand : Ember.computed('actionModel.args', {
+ get(key){
+ return this.get('actionModel.args').mapBy('value').join(" ");
+ },
+ set(key, value){
+ this.get('actionModel.args').clear();
+ value.split(" ").forEach(arg => {
+ this.get('actionModel.args').pushObject({value:arg});
+ });
+ return this.get(key);
+ }
+ }),
+
initialize : function(){
this.on('fileSelected',function(fileName){
this.set(this.get('filePathModel'), fileName);
@@ -53,7 +66,7 @@ export default Ember.Component.extend({
},
register (name, context){
this.sendAction('register',name , context);
- },
+ }
}
});
http://git-wip-us.apache.org/repos/asf/ambari/blob/7fe8fbc9/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/distcp-action.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/distcp-action.hbs b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/distcp-action.hbs
index 28e67da..a656413 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/distcp-action.hbs
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/distcp-action.hbs
@@ -18,7 +18,12 @@
<div class="panel panel-default">
<div class="panel-heading">General</div>
<div class="panel-body">
- {{#arg-config args=actionModel.args register="register" title="arg"}}{{/arg-config}}
+ <div class="form-group">
+ <label for="distcp-command" class="control-label col-xs-2">Distcp Arguments</label>
+ <div class="col-xs-7">
+ {{textarea class="form-control query-text-area" value=distcpCommand name="distcp-command" placeholder="Example: -update hdfs://nn1:9820/source/first hdfs://nn1:9820/source/second hdfs://nn2:9820/target"}}
+ </div>
+ </div>
<div class="form-group">
<label for="inputPassword" class="control-label col-xs-2">Java opts</label>
<div class="col-xs-7">