New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElasticSearch+Spark in Java: error: package org.elasticsearch.spark.java.api does not exist #678

Closed
Make42 opened this Issue Jan 28, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@Make42

Make42 commented Jan 28, 2016

I want to read from ElasticSearch into Spark according to https://www.elastic.co/guide/en/elasticsearch/hadoop/master/spark.html#spark-read-java

however I get the error

error: package org.elasticsearch.spark.java.api does not exist

and I get it using

    <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch-hadoop</artifactId>
        <version>2.1.2</version>
    </dependency>

or

    <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch-spark_2.10</artifactId>
        <version>2.2.0-rc1</version>
    </dependency>

Am I missing another dependency? Is there no Java support anymore?

@Make42 Make42 changed the title from error: package org.elasticsearch.spark.java.api does not exist to ElasticSearch+Spark in Java: error: package org.elasticsearch.spark.java.api does not exist Jan 28, 2016

@fmyblack

This comment has been minimized.

Show comment
Hide comment
@fmyblack

fmyblack Jan 29, 2016

I found the true package is org.elasticsearch.spark.rdd.api.java, you can read from open source.

fmyblack commented Jan 29, 2016

I found the true package is org.elasticsearch.spark.rdd.api.java, you can read from open source.

@costin

This comment has been minimized.

Show comment
Hide comment
@costin

costin Jan 29, 2016

Member

Fixed now in master. It was a mistake, the correct package is org.elasticsearch.spark.rdd.api.java

Member

costin commented Jan 29, 2016

Fixed now in master. It was a mistake, the correct package is org.elasticsearch.spark.rdd.api.java

costin added a commit that referenced this issue Jan 29, 2016

[DOC] Correct package import mistake
fix #678

(cherry picked from commit f2fc01e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment