Skip to content

Unable to load elasticsearch class #213

Open
@gvsrini

Description

@gvsrini

I am trying to run this code:

            var es_reader = spark.Read()
                            .Format("org.elasticsearch.spark.sql")
                            .Option("inferSchema", "true")
                            .Option("es.read.field.as.array.include", "tags")
                            .Option("es.nodes", "myelasticsearch:9200")
                            .Option("es.net.http.auth.user", "elastic")
                            .Option("es.net.http.auth.pass", "mypass");

                           var security_df = es_reader.Load("my-index/");
[JvmBridge] java.lang.ClassNotFoundException: Failed to find data source: org.elasticsearch.spark.sql. Please find packages at http://spark.apache.org/third-party-projects.html

This same code is working in Jupyter. I have no clue what's going on.... Can someone help me pls

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions