You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by sn...@apache.org on 2014/11/13 11:05:46 UTC

incubator-argus git commit: ARGUS-180:Added ability to specify hadoop.rpc.protection in HDFS repo page

Repository: incubator-argus
Updated Branches:
  refs/heads/master eba80f704 -> f446cbe9b


ARGUS-180:Added ability to specify hadoop.rpc.protection in HDFS repo page

Signed-off-by: sneethiraj <sn...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/f446cbe9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/f446cbe9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/f446cbe9

Branch: refs/heads/master
Commit: f446cbe9bf330028a5a2aa3780ae8097e4e70c98
Parents: eba80f7
Author: vperiasamy <vp...@hortonworks.com>
Authored: Thu Nov 13 04:58:53 2014 -0500
Committer: sneethiraj <sn...@apache.org>
Committed: Thu Nov 13 05:05:22 2014 -0500

----------------------------------------------------------------------
 security-admin/src/main/webapp/scripts/models/VXAsset.js     | 1 +
 .../src/main/webapp/scripts/views/asset/AssetForm.js         | 8 +++++++-
 .../src/main/webapp/templates/asset/AssetForm_tmpl.html      | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/f446cbe9/security-admin/src/main/webapp/scripts/models/VXAsset.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/models/VXAsset.js b/security-admin/src/main/webapp/scripts/models/VXAsset.js
index 1d66fe6..685d7fd 100644
--- a/security-admin/src/main/webapp/scripts/models/VXAsset.js
+++ b/security-admin/src/main/webapp/scripts/models/VXAsset.js
@@ -103,6 +103,7 @@ define(function(require){
 			datanode : "dfs.datanode.kerberos.principal",
 			namenode : "dfs.namenode.kerberos.principal",
 			secNamenode : "dfs.secondary.namenode.kerberos.principal",
+			hadoopRpcProtection : "hadoop.rpc.protection",
 			//hive
 			driverClassName : "jdbc.driverClassName",
 			url	: "jdbc.url",

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/f446cbe9/security-admin/src/main/webapp/scripts/views/asset/AssetForm.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/asset/AssetForm.js b/security-admin/src/main/webapp/scripts/views/asset/AssetForm.js
index 51e5ac3..0db1aa3 100644
--- a/security-admin/src/main/webapp/scripts/views/asset/AssetForm.js
+++ b/security-admin/src/main/webapp/scripts/views/asset/AssetForm.js
@@ -128,6 +128,11 @@ define(function(require){
 					fieldClass : "hdfs",
 					editorAttrs :{'class':'stretchTextInput'}
 				},
+				hadoopRpcProtection : {
+					title		: this.model.propertiesNameMap.hadoopRpcProtection,//'hadoop.rpc.protection',
+					fieldClass : "hdfs",
+					editorAttrs :{'class':'stretchTextInput'}
+				},
 				driverClassName : {
 					fieldClass : "hive",
 					title : this.model.propertiesNameMap.driverClassName,//'xalogin.jdbc.driverClassName'
@@ -231,7 +236,7 @@ define(function(require){
 			switch(parseInt(this.model.get('assetType'))){
 				case XAEnums.AssetType.ASSET_HDFS.value :
 					attrs = ['userName','passwordKeytabfile','fsDefaultName' ,'authorization', 'authentication', 'auth_to_local', 'datanode', 'namenode', 'secNamenode',
-								'commonnameforcertificate'];
+					         'hadoopRpcProtection', 'commonnameforcertificate'];
 					break;
 				case XAEnums.AssetType.ASSET_HIVE.value :
 					attrs = ['userName','passwordKeytabfile','driverClassName', 'url','commonnameforcertificate'];
@@ -304,6 +309,7 @@ define(function(require){
 					this.fields.datanode.$el.hide();
 					this.fields.namenode.$el.hide();
 					this.fields.secNamenode.$el.hide();
+					this.fields.hadoopRpcProtection.$el.hide();
 					this.fields.rpcEngine.$el.hide();
 					this.fields.rpcProtection.$el.hide();
 					this.fields.commonnameforcertificate.$el.hide();

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/f446cbe9/security-admin/src/main/webapp/templates/asset/AssetForm_tmpl.html
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/templates/asset/AssetForm_tmpl.html b/security-admin/src/main/webapp/templates/asset/AssetForm_tmpl.html
index f860056..3e24abc 100644
--- a/security-admin/src/main/webapp/templates/asset/AssetForm_tmpl.html
+++ b/security-admin/src/main/webapp/templates/asset/AssetForm_tmpl.html
@@ -38,6 +38,7 @@
 		<div class="" data-fields="datanode"></div>
 		<div class="" data-fields="namenode"></div>
 		<div class="" data-fields="secNamenode"></div>
+		<div class="" data-fields="hadoopRpcProtection"></div>
 		<div class="" data-fields="driverClassName"></div>
 		<div class="" data-fields="url"></div>
 		<div class="" data-fields="masterKerberos"></div>