<?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: SparkSQL -  org.apache.spark.sql.catalyst.types.StructField fails in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkSQL-org-apache-spark-sql-catalyst-types-StructField/m-p/25507#M5272</link>
    <description>&lt;P&gt;In general, NoSuchMethodError in Java means you compiled against one version of something, and executed against a different version. Check your build.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2015 18:46:44 GMT</pubDate>
    <dc:creator>srowen</dc:creator>
    <dc:date>2015-03-11T18:46:44Z</dc:date>
    <item>
      <title>SparkSQL -  org.apache.spark.sql.catalyst.types.StructField fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkSQL-org-apache-spark-sql-catalyst-types-StructField/m-p/25506#M5271</link>
      <description>&lt;P&gt;I am trying to use certain functionality from SparkSQL ( namely “programmatically specifying a schema” as described in the Spark 1.1.0 documentation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;15/03/10 17:00:16 INFO storage.BlockManagerMaster: Updated info of block broadcast_2_piece0&lt;/P&gt;&lt;P&gt;15/03/10 17:00:16 INFO spark.SparkContext: Created broadcast 2 from broadcast at MSP.scala:52&lt;/P&gt;&lt;P&gt;Exception in thread "main&lt;STRONG&gt;" java.lang.NoSuchMethodError: org.apache.spark.sql.catalyst.types.StructField.&amp;lt;init&lt;/STRONG&gt;&amp;gt;(Ljava/lang/String;Lorg/apache/spark/sql/catalyst/types/DataType;Z)&lt;/P&gt;&lt;P&gt;at MSP$$anonfun$3.apply(MSP.scala:57)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;val schemaString="ATR1,ATTR2,....”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;line 57:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;val&lt;/STRONG&gt; schema =&lt;/P&gt;&lt;P&gt;&amp;nbsp; StructType(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;U&gt;schemaString&lt;/U&gt;&lt;U&gt;.split(&lt;/U&gt;&lt;U&gt;","&lt;/U&gt;&lt;U&gt;)&lt;/U&gt;.map(fieldName =&amp;gt; StructField(fieldName, StringType, &lt;STRONG&gt;true&lt;/STRONG&gt;)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why this fails ? I am using Spark 1.2&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:23:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkSQL-org-apache-spark-sql-catalyst-types-StructField/m-p/25506#M5271</guid>
      <dc:creator>vaskoyordan</dc:creator>
      <dc:date>2022-09-16T09:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: SparkSQL -  org.apache.spark.sql.catalyst.types.StructField fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkSQL-org-apache-spark-sql-catalyst-types-StructField/m-p/25507#M5272</link>
      <description>&lt;P&gt;In general, NoSuchMethodError in Java means you compiled against one version of something, and executed against a different version. Check your build.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2015 18:46:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkSQL-org-apache-spark-sql-catalyst-types-StructField/m-p/25507#M5272</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2015-03-11T18:46:44Z</dc:date>
    </item>
  </channel>
</rss>

