[
https://issues.apache.org/jira/browse/RANGER-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15343906#comment-15343906
]
Myungsun commented on RANGER-1049:
----------------------------------
add my ranger hdfs service config properties
username: [email protected] <-kerberos user
password: rangerhdfs
Namenode URL: hdfs://mycluster
Authorization Enabled: no
Authentication Type: Kerberos
Hadoop.security.auth_to_local: RULE:[2:$1@$0]([rn]m@.*)s/.*/yarn/
RULE:[2:$1@$0](jhs@.*)s/.*/mapred/ RULE:[2:$1@$0]([nd]n@.*)s/.*/hdfs/
RULE:[2:$1@$0](hm@.*)s/.*/hbase/ RULE:[2:$1@$0](rs@.*)s/.*/hbase/
DEFAULT
dfs.datanode.kerberos.principal: hdfs/[email protected]
dfs.namenode.kerberos.principal: hdfs/[email protected]
dfs.secondary.namenode.principal: hdfs/[email protected]
RPC Protection Type: Authentication
Common Name for Certificate: -
Add New Configurations : blank
> Testing connection at a Kerberos server
> ---------------------------------------
>
> Key: RANGER-1049
> URL: https://issues.apache.org/jira/browse/RANGER-1049
> Project: Ranger
> Issue Type: Bug
> Components: admin, plugins
> Affects Versions: 0.5.3
> Environment: CenOS6.7/zookeeper3.4.6/hadoop2.7.1/Ranger0.5.3
> Reporter: Myungsun
> Priority: Minor
>
> Hi~
> The Ranger's HDFS connection test failed in a Kerberos Server.
> Of course, I refer to this [RANGER-399]
> Please Give your help
> ## Ranger ERROR xa_portal.log ##
> 2016-06-22 17:17:20,327 [timed-executor-pool-0] INFO
> org.apache.ranger.plugin.client.BaseClient (BaseClient.java:100) - Init
> Login: using username/password
> 2016-06-22 17:17:20,339 [timed-executor-pool-0] ERROR
> apache.ranger.services.hdfs.client.HdfsResourceMgr (HdfsResourceMgr.java:48)
> - <== HdfsResourceMgr.testConnection Error:
> org.apache.ranger.plugin.client.HadoopException: Unable to login to Hadoop
> environment [hadoop]
> 2016-06-22 17:17:20,339 [timed-executor-pool-0] ERROR
> org.apache.ranger.services.hdfs.RangerServiceHdfs (RangerServiceHdfs.java:59)
> - <== RangerServiceHdfs.validateConfig
> Error:org.apache.ranger.plugin.client.HadoopException: Unable to login to
> Hadoop environment [hadoop]
> 2016-06-22 17:17:20,339 [timed-executor-pool-0] ERROR
> org.apache.ranger.biz.ServiceMgr$TimedCallable (ServiceMgr.java:434) -
> TimedCallable.call: Error:org.apache.ranger.plugin.client.HadoopException:
> Unable to login to Hadoop environment [hadoop]
> 2016-06-22 17:17:20,339 [timed-executor-pool-0] DEBUG
> org.apache.ranger.biz.ServiceMgr$TimedCallable (ServiceMgr.java:442) - <==
> TimedCallable: validate config for service[hadoop]: wait time[0 ms],
> execution time [12 ms]
> 2016-06-22 17:17:20,339 [http-bio-6080-exec-5] DEBUG
> org.apache.ranger.common.TimedExecutor (TimedExecutor.java:92) -
> TimedExecutor: Caught exception[java.util.concurrent.ExecutionException] for
> callable[validate config for service[hadoop]]:
> detail[org.apache.ranger.plugin.client.HadoopException: Unable to login to
> Hadoop environment [hadoop]]. Re-throwing...
> 2016-06-22 17:17:20,340 [http-bio-6080-exec-5] ERROR
> org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:120) - ==>
> ServiceMgr.validateConfig Error:java.util.concurrent.ExecutionException:
> org.apache.ranger.plugin.client.HadoopException: Unable to login to Hadoop
> environment [hadoop]
> 2016-06-22 17:17:20,340 [http-bio-6080-exec-5] DEBUG
> org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:125) - ==>
> ServiceMgr.validateConfig for Response:
> (VXResponse={org.apache.ranger.view.VXResponse@1cf17880statusCode={1}
> msgDesc={Unable to connect repository with given config for hadoop}
> messageList={[VXMessage={org.apache.ranger.view.VXMessage@311e2a58name={null}
> rbKey={null} message={Unable to connect repository with given config for
> hadoop} objectId={null} fieldName={null} }]} })
> #### Ranger HDFS ####
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)