<?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 spark.streaming.kafka.KafkaUtils error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43724#M37323</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am getting error while importing KafkaUtils class&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scala&amp;gt; import org.apache.spark.streaming.kafka.KafkaUtils&lt;BR /&gt;&amp;lt;console&amp;gt;:13: error: object kafka is not a member of package org.apache.spark.streaming&lt;BR /&gt;import org.apache.spark.streaming.kafka.KafkaUtils&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pom.xml&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;project xmlns="&lt;A href="http://maven.apache.org/POM/4.0.0" target="_blank"&gt;http://maven.apache.org/POM/4.0.0&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;xsi:schemaLocation="&lt;A href="http://maven.apache.org/POM/4.0.0" target="_blank"&gt;http://maven.apache.org/POM/4.0.0&lt;/A&gt; &lt;A href="http://maven.apache.org/xsd/maven-4.0.0.xsd" target="_blank"&gt;http://maven.apache.org/xsd/maven-4.0.0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;groupId&amp;gt;spark&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;spark-kafka&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;1.0-SNAPSHOT&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;packaging&amp;gt;jar&amp;lt;/packaging&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;spark-kafka&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;url&amp;gt;&lt;A href="http://maven.apache.org&amp;lt;/url" target="_blank"&gt;http://maven.apache.org&amp;lt;/url&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;properties&amp;gt;&lt;BR /&gt;&amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;&lt;BR /&gt;&amp;lt;/properties&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;dependencies&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;junit&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;junit&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;3.8.1&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.apache.spark&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;spark-streaming-kafka_2.10&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;1.1.0&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&amp;lt;/dependencies&amp;gt;&lt;BR /&gt;&amp;lt;/project&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyne help.what is wrong in this&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:33:56 GMT</pubDate>
    <dc:creator>MSharma</dc:creator>
    <dc:date>2022-09-16T10:33:56Z</dc:date>
    <item>
      <title>spark.streaming.kafka.KafkaUtils error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43724#M37323</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am getting error while importing KafkaUtils class&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scala&amp;gt; import org.apache.spark.streaming.kafka.KafkaUtils&lt;BR /&gt;&amp;lt;console&amp;gt;:13: error: object kafka is not a member of package org.apache.spark.streaming&lt;BR /&gt;import org.apache.spark.streaming.kafka.KafkaUtils&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pom.xml&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;project xmlns="&lt;A href="http://maven.apache.org/POM/4.0.0" target="_blank"&gt;http://maven.apache.org/POM/4.0.0&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;xsi:schemaLocation="&lt;A href="http://maven.apache.org/POM/4.0.0" target="_blank"&gt;http://maven.apache.org/POM/4.0.0&lt;/A&gt; &lt;A href="http://maven.apache.org/xsd/maven-4.0.0.xsd" target="_blank"&gt;http://maven.apache.org/xsd/maven-4.0.0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;groupId&amp;gt;spark&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;spark-kafka&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;1.0-SNAPSHOT&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;packaging&amp;gt;jar&amp;lt;/packaging&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;spark-kafka&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;url&amp;gt;&lt;A href="http://maven.apache.org&amp;lt;/url" target="_blank"&gt;http://maven.apache.org&amp;lt;/url&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;properties&amp;gt;&lt;BR /&gt;&amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;&lt;BR /&gt;&amp;lt;/properties&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;dependencies&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;junit&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;junit&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;3.8.1&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.apache.spark&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;spark-streaming-kafka_2.10&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;1.1.0&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&amp;lt;/dependencies&amp;gt;&lt;BR /&gt;&amp;lt;/project&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyne help.what is wrong in this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:33:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43724#M37323</guid>
      <dc:creator>MSharma</dc:creator>
      <dc:date>2022-09-16T10:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: spark.streaming.kafka.KafkaUtils error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43725#M37324</link>
      <description>&lt;P&gt;You have a quite old version of Spark there by the way.&lt;/P&gt;&lt;P&gt;You're showing interaction with the shell, but referring to a POM file, which is for a compiled app.&lt;/P&gt;&lt;P&gt;You need to add the JARs to the spark-shell command-line in general to access them.&lt;/P&gt;&lt;P&gt;I think in this old version of Spark the Kafka stuff was actually present in the examples uber jar; maybe just reference that.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 22:43:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43725#M37324</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2016-08-09T22:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: spark.streaming.kafka.KafkaUtils error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43756#M37325</link>
      <description>&lt;P&gt;i have created a depndancy jar file and used that in spark shell with --jars option , it added fine but while importing its gicing this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is this is aversion issue . spark-kafka streaming will work after CDH5.5 only ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:38:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43756#M37325</guid>
      <dc:creator>MSharma</dc:creator>
      <dc:date>2016-08-10T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: spark.streaming.kafka.KafkaUtils error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43757#M37326</link>
      <description>&lt;P&gt;In that case I think it's a version problem. You have a very old version of Spark that may not even have this class. It's nothing to do with CDH per se.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Actually: you shouldn't be packaging Spark with your app at all. And, you should find that this class is already part of the main assembly in more recent Spark versions. What if you omit this entirely and try the import?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I just tried importing this in spark-shell in CDH 5.8 and it was available, without any additional jars.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:43:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43757#M37326</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2016-08-10T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: spark.streaming.kafka.KafkaUtils error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43793#M37327</link>
      <description>&lt;P&gt;Thanks i will move to latest version then.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 04:09:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-streaming-kafka-KafkaUtils-error/m-p/43793#M37327</guid>
      <dc:creator>MSharma</dc:creator>
      <dc:date>2016-08-11T04:09:25Z</dc:date>
    </item>
  </channel>
</rss>

