Ranger HDFS plugin fails post-HDFS HA migration
Policy creation failures in the cm_hdfs Ranger plugin occur after
enabling HDFS High Availability because Cloudera Manager does not
automatically update the NameNode URL to the HA nameservice. You can troubleshoot this
issue.
When a cluster is switched to HDFS High Availability (HA) using the Cloudera Manager
wizard, the Namenode URL in the cm_hdfs Ranger plugin configuration
is not automatically updated.
-
It remains pointed to a single NameNode (for example,
hdfs://server.example.com:8020) instead of updating to the new HA NameService (for example,hdfs://nameservice01). -
Re-running the Setup Ranger Plugin Service process from Cloudera Manager does not fix or overwrite this value.
Once HDFS is in HA mode, attempting to create any new policy in the
cm_hdfs plugin fails. The Ranger UI throws the following error
because it cannot communicate with the active NameNode:
ranger org.apache.ranger.plugin.client.HadoopException: listFilesInternal: Unable to get listing of files for directory /*] from Hadoop environment [cm_hdfs]
