You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2017/12/30 20:11:00 UTC

[jira] [Created] (SPARK-22929) Short name for "kafka" doesn't work in pyspark with packages

Michael Armbrust created SPARK-22929:
----------------------------------------

             Summary: Short name for "kafka" doesn't work in pyspark with packages
                 Key: SPARK-22929
                 URL: https://issues.apache.org/jira/browse/SPARK-22929
             Project: Spark
          Issue Type: Bug
          Components: Structured Streaming
    Affects Versions: 2.2.0
            Reporter: Michael Armbrust
            Priority: Critical


When I start pyspark using the following command:
{code}
bin/pyspark --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.2.0
{code}

The following throws an error:
{code}
spark.read.format("kakfa")...

py4j.protocol.Py4JJavaError: An error occurred while calling o35.load.
: java.lang.ClassNotFoundException: Failed to find data source: kakfa. Please find packages at http://spark.apache.org/third-party-projects.html
{code}

The following does work:
{code}
spark.read.format("org.apache.spark.sql.kafka010.KafkaSourceProvider")...
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org