Deployment Architecture

Permission denied for hunk job

sayalidesai04
Explorer

Hi,

I am trying to connect to remote HDFS through Hunk.
I have created an ERP and virtual index.
I am able to run a simple search query and get the results like-' index=testhadoopindex '

But when I am trying to run any other query like- ' index=testhadoopindex | stats count by monthyear ' , I am getting an error like

10-28-2014 04:07:13.003 ERROR ERP.Testhadoop - SetupCommandHandler - org.apache.hadoop.security.AccessControlException: Permission denied: user=hkuser, access=WRITE, inode="hunk":hduser:supergroup:rwxrwxr-x

My Hunk is installed in VM using hkuser and hduser is the user on remote HDFS.

Can you please help?

1 Solution

Ledion_Bitincka
Splunk Employee
Splunk Employee

The user that Hunk is running as (hkuser in your case) needs to have read/write permission to the working directory - here's a link to the docs explaining the necessary permissions.

The simplest solution would be execute the following command as hduser (ie change the ownership of that dir to hkuser)

hadoop fs -chown hkuser hdfs://nnhost:port/path/to/working/dir 

View solution in original post

Ledion_Bitincka
Splunk Employee
Splunk Employee

The user that Hunk is running as (hkuser in your case) needs to have read/write permission to the working directory - here's a link to the docs explaining the necessary permissions.

The simplest solution would be execute the following command as hduser (ie change the ownership of that dir to hkuser)

hadoop fs -chown hkuser hdfs://nnhost:port/path/to/working/dir 

sayalidesai04
Explorer

Thank you .That worked.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...