Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
HDFS-13532
-
None
Description
Router is usingĀ HDFSPolicyProvider. We can't add new protocol in this class for router, its better to create in policy provider for Router.
// Set service-level authorization security policy if (conf.getBoolean(HADOOP_SECURITY_AUTHORIZATION, false)) { this.adminServer.refreshServiceAcl(conf, new HDFSPolicyProvider()); }
I got this issue when I am verified HDFS-14079 with secure cluster.
./bin/hdfs dfsrouteradmin -ls / ls: Protocol interface org.apache.hadoop.hdfs.protocolPB.RouterAdminProtocol is not known. org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): Protocol interface org.apache.hadoop.hdfs.protocolPB.RouterAdminProtocol is not known. at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1520) at org.apache.hadoop.ipc.Client.call(Client.java:1466)