<?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 :32: error: value format is not a member of org.apache.spark.sql.DataFrame in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128830#M18264</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying Lab 4 - Spark Risk Factor Analysis, in almost the last step I executed this command:&lt;/P&gt;&lt;PRE&gt;risk_factor_spark.write.orc("risk_factor_spark")&lt;/PRE&gt;&lt;P&gt;It throws the following error:&lt;/P&gt;&lt;P&gt;:32: error: value format is not a member of org.apache.spark.sql.DataFrame&lt;/P&gt;&lt;P&gt;Please could you help me solve this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:02:43 GMT</pubDate>
    <dc:creator>juan_perez_ferr</dc:creator>
    <dc:date>2022-09-16T10:02:43Z</dc:date>
    <item>
      <title>:32: error: value format is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128830#M18264</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying Lab 4 - Spark Risk Factor Analysis, in almost the last step I executed this command:&lt;/P&gt;&lt;PRE&gt;risk_factor_spark.write.orc("risk_factor_spark")&lt;/PRE&gt;&lt;P&gt;It throws the following error:&lt;/P&gt;&lt;P&gt;:32: error: value format is not a member of org.apache.spark.sql.DataFrame&lt;/P&gt;&lt;P&gt;Please could you help me solve this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:02:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128830#M18264</guid>
      <dc:creator>juan_perez_ferr</dc:creator>
      <dc:date>2022-09-16T10:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: :32: error: value format is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128831#M18265</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2635/juanperezferrer.html" nodeid="2635"&gt;@Juan Manuel Perez&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If you are using Spark &amp;gt;= 1.4 try the following command&lt;/P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;risk_factor_spark.write.format("orc").save("risk_factor_spark")&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sat, 06 Feb 2016 16:31:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128831#M18265</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-06T16:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: :32: error: value format is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128832#M18266</link>
      <description>&lt;P&gt;Thanks for your answer Geoffrey.&lt;/P&gt;&lt;P&gt;I'm using version 2.3.2.&lt;/P&gt;&lt;P&gt;After running the command &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;risk_factor_spark.write.format("orc").save("risk_factor_spark")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I just can see several messages, but one of them says the following:&lt;/P&gt;&lt;P&gt;INFO DefaultWriterContainer: Using output committer class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
org.apache.hadoop.security.AccessControlException: &lt;STRONG&gt;Permission denied: user=root, access=WRITE, inode="/user/root/risk_factor_spark/_temporary/0":hdfs:hdfs:drwxr-xr-x&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Reading in the comments I saw something similar from Özgür Akdemirci, and tried the answer from Peter Lasne:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;there was no /user directory for my user in HDFS, so I also had to do 
this: “sudo -u admin hdfs dfs -mkdir /user/” and “sudo -u admin hdfs dfs
 -chown :hdfs /user/”.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it didn't work. Do I need to set more permissions?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 02:01:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128832#M18266</guid>
      <dc:creator>juan_perez_ferr</dc:creator>
      <dc:date>2016-02-08T02:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: :32: error: value format is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128833#M18267</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2635/juanperezferrer.html" nodeid="2635"&gt;@Juan Manuel Perez&lt;/A&gt; &lt;/P&gt;&lt;P&gt;hdfs dfs -chown -R root:hdfs /user/root&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 02:19:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128833#M18267</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-08T02:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: :32: error: value format is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128834#M18268</link>
      <description>&lt;P&gt;Hi Neeraj, &lt;/P&gt;&lt;P&gt;When I try to assign the permissions it sends an error saying that /user/root folder doesn't exist, I'm newbie in Hadoop and Linux commands, but if I understand well, this one is assigning the permissions in the HDFS not in the linux system. Reviewing HDFS the &lt;STRONG&gt;/user/root&lt;/STRONG&gt; folder doesn't exist since I'm logged in with &lt;STRONG&gt;admin&lt;/STRONG&gt; user but the &lt;STRONG&gt;/user/admin&lt;/STRONG&gt; folder is there.&lt;/P&gt;&lt;P&gt;I ran again the Spark commands but this time from the web interface &lt;A href="http://localhost:4200" target="_blank"&gt;http://localhost:4200&lt;/A&gt; (previously I was using a console) and it worked, seems that every time that I use the console with ssh root@localhost, Spark assumes that the Hadoop user is root, not admin.&lt;/P&gt;&lt;P&gt;I'm wondering how can I impersonate the user in spark shell different from root when running the scripts.&lt;/P&gt;&lt;P&gt;Thanks anyway! this help me figuring out what was the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 03:55:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128834#M18268</guid>
      <dc:creator>juan_perez_ferr</dc:creator>
      <dc:date>2016-02-08T03:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: :32: error: value format is not a member of org.apache.spark.sql.DataFrame</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128835#M18269</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2635/juanperezferrer.html" nodeid="2635"&gt;@Juan Manuel Perez&lt;/A&gt;&lt;P&gt;login as root in your server&lt;/P&gt;&lt;P&gt;su - hdfs&lt;/P&gt;&lt;P&gt;hdfs dfs -mkdir -p /user/root&lt;/P&gt;&lt;P&gt;hdfs dfs -chown -R root:hdfs /user/root&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 01:39:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/32-error-value-format-is-not-a-member-of-org-apache-spark/m-p/128835#M18269</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-13T01:39:50Z</dc:date>
    </item>
  </channel>
</rss>

