<?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: Permissions issue Spark R in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permissions-issue-Spark-R/m-p/192059#M65444</link>
    <description>&lt;P&gt;Did the job, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 14:23:26 GMT</pubDate>
    <dc:creator>ed_day</dc:creator>
    <dc:date>2017-07-26T14:23:26Z</dc:date>
    <item>
      <title>Permissions issue Spark R</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permissions-issue-Spark-R/m-p/192057#M65442</link>
      <description>&lt;P&gt;In Rstudio I do:&lt;/P&gt;&lt;PRE&gt;library(sparklyr)
library(dplyr)
Sys.setenv(SPARK_HOME="/usr/hdp/current/spark2-client") # got from ambari spark2 configs
config &amp;lt;- spark_config()
sc &amp;lt;- spark_connect(master = "yarn-client", config = config, version = '2.1.0')&lt;/PRE&gt;&lt;P&gt;which gives:&lt;/P&gt;&lt;PRE&gt; Failed during initialize_connection: org.apache.hadoop.security.AccessControlException: Permission denied: user=ed, access=WRITE, inode="/user/ed/.sparkStaging/application_1500959138473_0003":admin:hadoop:drwxr-xr-x
&lt;/PRE&gt;&lt;P&gt;normally I fix this sort of problem with:&lt;/P&gt;&lt;PRE&gt;HADOOP_USER_NAME=hdfs hadoop fs -put &lt;/PRE&gt;&lt;P&gt;but I do not know how to do this in R.&lt;/P&gt;&lt;P&gt;I thought maybe change ed's user and group to hdfs:&lt;/P&gt;&lt;PRE&gt;ed@master:~$ hdfs dfs -ls /user
Found 11 items
drwx------   - accumulo  hdfs            0 2017-05-14 15:38 /user/accumulo
drwxr-xr-x   - admin     hadoop          0 2017-06-27 06:52 /user/admin
drwxrwx---   - ambari-qa hdfs            0 2017-06-02 10:46 /user/ambari-qa
drwxr-xr-x   - admin     hadoop          0 2017-06-02 11:00 /user/ed
drwxr-xr-x   - hbase     hdfs            0 2017-05-14 15:35 /user/hbase
drwxr-xr-x   - hcat      hdfs            0 2017-05-14 15:44 /user/hcat
drwxr-xr-x   - hdfs      hdfs            0 2017-06-20 12:43 /user/hdfs
drwxr-xr-x   - hive      hdfs            0 2017-05-14 15:44 /user/hive
drwxrwxr-x   - oozie     hdfs            0 2017-05-14 15:46 /user/oozie
drwxrwxr-x   - spark     hdfs            0 2017-05-14 15:40 /user/spark
drwxr-xr-x   - zeppelin  hdfs            0 2017-07-24 09:29 /user/zeppelin&lt;/PRE&gt;&lt;P&gt;but I am worried as it is currently admin/hadoop and admin is how I log into Ambari. So I do not want to mess up other stuff.&lt;/P&gt;&lt;P&gt;Any help is much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 17:33:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permissions-issue-Spark-R/m-p/192057#M65442</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-07-25T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions issue Spark R</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permissions-issue-Spark-R/m-p/192058#M65443</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hey you don't need to worry about the admin user stuff as I can see you have the "/user/admin" directory present in the HDFS with owner "admin".&lt;/P&gt;&lt;P&gt;Just go to HDFS, login to hdfs user and change the ownership of directory for 'ed' as,&lt;/P&gt;&lt;PRE&gt;# su hdfs
# hdfs dfs -chown ed:hdfs /user/ed&lt;/PRE&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 18:29:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permissions-issue-Spark-R/m-p/192058#M65443</guid>
      <dc:creator>nshelke</dc:creator>
      <dc:date>2017-07-25T18:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions issue Spark R</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permissions-issue-Spark-R/m-p/192059#M65444</link>
      <description>&lt;P&gt;Did the job, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 14:23:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permissions-issue-Spark-R/m-p/192059#M65444</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-07-26T14:23:26Z</dc:date>
    </item>
  </channel>
</rss>

