Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Where we configure the credential in PutHDFS processor in Apache NiFi

Where we configure the credential in PutHDFS processor in Apache NiFi

Contributor

I have configured a path in PutHDFS its throwing an authentication error

LOG:

2017-03-03 01:52:29,200 DEBUG [IPC Client (1496249304) connection to dnn01.com/10.4.151.88:8020 from root] org.apache.hadoop.ipc.Client IPC Client (1496249304) connection to dnn01.com/10.4.151.88:8020 from root got value #39976 2017-03-03 01:52:29,201 TRACE [Timer-Driven Process Thread-7] org.apache.hadoop.ipc.ProtobufRpcEngine 105: Exception <- dnn01.com/10.4.151.88:8020: create {org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=root, access=WRITE, inode="/raw/externaltbls/falcon/testing/.1PUGETSLA_PO810.P0125.EDIINV.P20150125.107.20160304025143629.gz":hdfs:hdfs:drwxrwxr-x at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:292)

2017-03-03 01:52:29,201 ERROR [Timer-Driven Process Thread-7] o.apache.nifi.processors.hadoop.PutHDFS PutHDFS[id=015a1010-9c64-1ed3-c39b-d19ab2dfe19b] Failed to write to HDFS due to org.apache.nifi.processor.exception.ProcessException: IOException thrown from PutHDFS[id=015a1010-9c64-1ed3-c39b-d19ab2dfe19b]: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/raw/externaltbls/falcon/testing/.1PUGETSLA_PO810.P0125.EDIINV.P20150125.107.20160304025143629.gz":hdfs:hdfs:drwxrwxr-x at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:292)

2 REPLIES 2

Re: Where we configure the credential in PutHDFS processor in Apache NiFi

It looks like your NiFi service is running as the 'root' user on the local system, and has no permissions to write to HDFS as that user. You probably need to run NiFi as a user which also has read/write permissions to HDFS in the directories you want to work with - if you are in a more complex setup involving Kerberos and LDAP etc. then share some details and we can provide more assistance.

Re: Where we configure the credential in PutHDFS processor in Apache NiFi

Contributor

Thank you for your response @Dan Chaffelson.

we are not using any complex system like Kerberos, LDAP etc. I am running NiFi on a linux system where I logged in as root user.

There is another path where I am able to write to HDFS but as soon as I change the path in HDFS to some other then issue appears.

To me it seems like an authentication issue, but where do we configure to instruct NiFi to write as root user?

Don't have an account?
Coming from Hortonworks? Activate your account here