Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 04-28-2018 04:37 PM
Hi,
I'm using spark2 in Zeppelin. (HDP 2.6.4)
I'm loading a csv file with spark.read
val test = spark.read .option("header", "false") .option("delimiter", ",") .option("inferSchema", "true") .csv("file:///root/share/test.csv")/root/share/ is a shared folder from host to docker container (virtualbox).
it has privileges like dwxrwxr---
Because of the shared folder, I cannot chmod 777 on it (or maybe someone knows how to do this...)
Anyways, spark comes back with a permission denied on this forlder/file.
Questions:
1. when running such a spark2 request in zeppelin, which permissions are applied?
2. How can I "elevate" these permissions to root (so that access can be made to any folder)
Thnaks a lot for your help!
Created 04-30-2018 01:57 PM
Answers inline:
1. when running such a spark2 request in zeppelin, which permissions are applied?
Answer > The application will run as zeppelin user, so all access will be performed as zeppelin
2. How can I "elevate" these permissions to root (so that access can be made to any folder)
Answer > This is generally not a good idea. I suggest you create a folder with proper access permissions somewhere else. Maybe under opt. Like this:
mkdir /opt/share
chmod 777 /opt/share
and use that one instead of /root which is the home directory for the root user.
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created 04-30-2018 01:57 PM
Answers inline:
1. when running such a spark2 request in zeppelin, which permissions are applied?
Answer > The application will run as zeppelin user, so all access will be performed as zeppelin
2. How can I "elevate" these permissions to root (so that access can be made to any folder)
Answer > This is generally not a good idea. I suggest you create a folder with proper access permissions somewhere else. Maybe under opt. Like this:
mkdir /opt/share
chmod 777 /opt/share
and use that one instead of /root which is the home directory for the root user.
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created 05-03-2018 01:27 PM
@Arnaud Bohelay Please let me know the above has helped answer your question. Thanks.