Hello,
II'm having this error while accessing and writing in HDFS via Java program:
org.apache.hadoop.security.authentication.util.KerberosName$NoMatchingRule: No rules applied rlopez@PRE.FINTONIC.COM
However, I enabled my Tusted Realm to HDFS and auth_to_local option. This is what I configure:
<property>
<name>hadoop.security.auth_to_local</name>
<value>RULE:[1:$1@$0](.*@\QPRE.FINTONIC.COM\E$)s/@\QPRE.FINTONIC.COM\E$//
RULE:[2:$1@$0](.*@\QPRE.FINTONIC.COM\E$)s/@\QPRE.FINTONIC.COM\E$//
DEFAULT</value>
</property>
This is the configuration of my code to read my principal and keytab:
HDFSWriter.kerberosPrincipal=hdfs/clouderapre-mgr.fintonic.com@PRE.FINTONIC.COM
HDFSWriter.kerberosUser=rlopez@PRE.FINTONIC.COM
HDFSWriter.kerberosKeyTab=/home/raquel/rlopez.keytab
How can I solve this problem?