Unable to get listing of files for directory [/]

2016-10-12 Thread Lune Silver
Hello !

I enabled yesterday the plugin HDFS with Ranger 0.5 on HDP 2.3.4.7.
In Ranger UI, in the hdfs repository definition (with all the parameters
for the repository), when I click on "test connection", I have an error
message saying that the test failed.

And in the xa_portal.log, I can see the following error message :
###
2016-10-12 09:43:29,030 [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 get listing of
files for directory [/] from Hadoop environment [_hadoop].
###

I'm wondering what could be the problem with this ?

Best regards.

Lune.


Questions on properties for the hdfs repository

2016-10-12 Thread Lune Silver
Hello !

I'm using Ranger embedded with HDP 2.3.4.7  (this is Ranger 0.5)
I have some kerberized clusters.

On two clusters A1 and A2, I don't have namenode HA.
On two other clusters, B1 and B2, I have namenodo HA.

My first question concerns the property dfs.datanode.kerberos.principal.
I don't have any datanode on the namenode and I don't have any dn principal
on the namenode.
What is the usage of this property please ?

My second question concerns the property
dfs.secondary.namenode.kerberos.principal.
In this one, I must set the value of the secondary namenode, which is
useful only when namenode is not HA.
Which value do I need to set here when namenode HA is enabled ?

My third question concerns the property dfs.namenode.kerberos.principal.
In this property, I saw that ambari wrote the host for one of the namenode.
But what will happen if I have two namenodes in HA ? This principal won't
potentially have the right value it there is a namenode failover.
If the dfs.namenode.kerberos.principal contains the passive namenode, will
Ranger check the value of dfs.secondary.namenode.kerberos.principal to see
if it found the active namenode ?

What Ranger do with these principal properties please ?

Best regards.

Lune.