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.

pyspark anaconda "permission denied"

Solved Go to solution

pyspark anaconda "permission denied"

Explorer

 Hi Community, 

 

I have installed anaconda on Centos6 for using ipython and jupyter notebooks together with spark.

When I run pyspark I get the following error: 

 

java.io.IOException: Cannot run program "/home/hadoop/anaconda/bin/": error=13, Permission denied

This is wired, because I start pyspark on the console with user hadoop and anaconda is in the home directory. 

Also I've set the permissions, so that the user hadoop should be able to execute this. 

 

drwxr-xr-x   3 hadoop hadoop  4096 Aug 16 23:46 bin

Anaconda in general is running and I'm able to execute pyspark using sudo pyspark (but thats not a solution as ipython for root is not available). 

Question: what needs to be set, that the user hadoop is able to run pyspark using anaconda?

 

Thanks!!!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: pyspark anaconda "permission denied"

Explorer

I solved it by myself by installing anaconda again as root in the directory /opt/anaconda and adjusted the environment variables accordingly. This saved my issue.

Cheers 

2 REPLIES 2

Re: pyspark anaconda "permission denied"

Explorer

I solved it by myself by installing anaconda again as root in the directory /opt/anaconda and adjusted the environment variables accordingly. This saved my issue.

Cheers 

Re: pyspark anaconda "permission denied"

Community Manager

I'm happy to see that you resolved the issue. Thank you for updating the post with the solution in case it can assist others. :)



Cy Jervis, Community Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:
Community Guidelines
How to use the forum
Don't have an account?
Coming from Hortonworks? Activate your account here