<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Spark 2 in zeppelin cannot access local files due to permissions in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-in-zeppelin-cannot-access-local-files-due-to/m-p/181226#M77799</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78226/arnaud.html" nodeid="78226"&gt;@Arnaud Bohelay&lt;/A&gt; Please let me know the above has helped answer your question.  Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 20:27:36 GMT</pubDate>
    <dc:creator>falbani</dc:creator>
    <dc:date>2018-05-03T20:27:36Z</dc:date>
    <item>
      <title>Spark 2 in zeppelin cannot access local files due to permissions</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-in-zeppelin-cannot-access-local-files-due-to/m-p/181224#M77797</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using spark2 in Zeppelin. (HDP 2.6.4)&lt;BR /&gt;I'm loading a csv file with spark.read&lt;/P&gt;&lt;PRE&gt;val test = spark.read      .option("header", "false")  .option("delimiter", ",")  .option("inferSchema", "true")  .csv("file:///root/share/test.csv")&lt;/PRE&gt;&lt;P&gt;/root/share/ is a shared folder from host to docker container (virtualbox).&lt;BR /&gt;it has privileges like dwxrwxr---&lt;/P&gt;&lt;P&gt;Because of the shared folder, I cannot chmod 777 on it (or maybe someone knows how to do this...)&lt;/P&gt;&lt;P&gt;Anyways, spark comes back with a permission denied on this forlder/file.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;1. when running such a spark2 request in zeppelin, which permissions are applied?&lt;BR /&gt;2. How can I "elevate" these permissions to root (so that access can be made to any folder)&lt;/P&gt;&lt;P&gt;Thnaks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 23:37:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-in-zeppelin-cannot-access-local-files-due-to/m-p/181224#M77797</guid>
      <dc:creator>arnaud1</dc:creator>
      <dc:date>2018-04-28T23:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2 in zeppelin cannot access local files due to permissions</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-in-zeppelin-cannot-access-local-files-due-to/m-p/181225#M77798</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78226/arnaud.html" nodeid="78226"&gt;@Arnaud Bohelay&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Answers inline:&lt;/P&gt;&lt;P&gt;1. when running such a spark2 request in zeppelin, which permissions are applied? &lt;/P&gt;&lt;P&gt; Answer &amp;gt; The application will run as zeppelin user, so all access will be performed as zeppelin&lt;/P&gt;&lt;P&gt;2. How can I "elevate" these permissions to root (so that access can be made to any folder)&lt;/P&gt;&lt;P&gt;Answer &amp;gt; This is generally not a good idea. I suggest you create a folder with proper access permissions somewhere else. Maybe under opt. Like this:&lt;/P&gt;&lt;P&gt;mkdir /opt/share&lt;/P&gt;&lt;P&gt;chmod 777 /opt/share&lt;/P&gt;&lt;P&gt;and use that one instead of /root which is the home directory for the root user. &lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 20:57:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-in-zeppelin-cannot-access-local-files-due-to/m-p/181225#M77798</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-04-30T20:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2 in zeppelin cannot access local files due to permissions</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-in-zeppelin-cannot-access-local-files-due-to/m-p/181226#M77799</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78226/arnaud.html" nodeid="78226"&gt;@Arnaud Bohelay&lt;/A&gt; Please let me know the above has helped answer your question.  Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 20:27:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-in-zeppelin-cannot-access-local-files-due-to/m-p/181226#M77799</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-05-03T20:27:36Z</dc:date>
    </item>
  </channel>
</rss>

