ARGUS-180:Added ability to specify hadoop.rpc.protection in HDFS repo page Signed-off-by: sneethiraj <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/c75662e8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/c75662e8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/c75662e8 Branch: refs/heads/ranger-0.4 Commit: c75662e8ff1100f613dc7410c529b2d203bb5db8 Parents: 0895239 Author: vperiasamy <[email protected]> Authored: Thu Nov 13 04:58:53 2014 -0500 Committer: sneethiraj <[email protected]> Committed: Sun Dec 7 01:13:46 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-ranger/blob/c75662e8/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-ranger/blob/c75662e8/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-ranger/blob/c75662e8/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>
