Elasticsearch Rest High Level Client throws java.lang.ArrayStoreException

Hello Team,

I'm using elasticsearch v7.3.1 with elasticsearch-spark-20_2.11. While submitting the application via spark-submit it throws java.lang.ArrayStoreException. Stake-trace as below

Exception in thread "main" java.lang.ArrayStoreException: org.apache.http.HttpHost
at java.util.stream.Nodes$FixedNodeBuilder.accept(Nodes.java:1222)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:545)
at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)

I couldn't encountered any version issue in httpclient/httpcore.

Could you please help?

checked the other thread. But nothing worked.

Kindly help.

Dependency tree is below

[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< com.company.unitname:elasticsearch-spark-ingest >----------------
[INFO] Building elasticsearch-spark-ingest 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ elasticsearch-spark-ingest ---
[INFO] com.company.unitname:elasticsearch-spark-ingest:jar:0.0.1-SNAPSHOT
[INFO] +- org.apache.spark:spark-core_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | +- com.sun.jersey:jersey-core:jar:1.19.4:provided
[INFO] | +- org.apache.avro:avro:jar:1.7.7:provided
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:provided
[INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:provided
[INFO] | | +- com.thoughtworks.paranamer:paranamer:jar:2.3:provided
[INFO] | | - org.apache.commons:commons-compress:jar:1.4.1:provided
[INFO] | | - org.tukaani:xz:jar:1.0:provided
[INFO] | +- org.apache.avro:avro-mapred:jar:hadoop2:1.7.7:provided
[INFO] | | +- org.apache.avro:avro-ipc:jar:1.7.7:provided
[INFO] | | - org.apache.avro:avro-ipc:jar:tests:1.7.7:provided
[INFO] | +- com.twitter:chill_2.11:jar:0.8.4:provided
[INFO] | | - com.esotericsoftware:kryo-shaded:jar:3.0.3:provided
[INFO] | | +- com.esotericsoftware:minlog:jar:1.3.0:provided
[INFO] | | - org.objenesis:objenesis:jar:2.1:provided
[INFO] | +- com.twitter:chill-java:jar:0.8.4:provided
[INFO] | +- org.apache.xbean:xbean-asm5-shaded:jar:4.4:provided
[INFO] | +- org.apache.hadoop:hadoop-client:jar:2.7.0-mapr-1808:provided
[INFO] | | +- org.apache.hadoop:hadoop-common:jar:2.7.0-mapr-1808:provided
[INFO] | | | +- com.mapr.hadoop:maprfs:jar:6.1.0-mapr:provided
[INFO] | | | +- commons-cli:commons-cli:jar:1.2:provided
[INFO] | | | +- xmlenc:xmlenc:jar:0.52:provided
[INFO] | | | +- commons-httpclient:commons-httpclient:jar:3.1:provided
[INFO] | | | +- commons-io:commons-io:jar:2.4:provided
[INFO] | | | +- commons-collections:commons-collections:jar:3.2.2:provided
[INFO] | | | +- javax.servlet.jsp:jsp-api:jar:2.1:provided
[INFO] | | | +- commons-configuration:commons-configuration:jar:1.6:provided
[INFO] | | | | +- commons-digester:commons-digester:jar:1.8:provided
[INFO] | | | | | - commons-beanutils:commons-beanutils:jar:1.7.0:provided
[INFO] | | | | - commons-beanutils:commons-beanutils-core:jar:1.8.0:provided
[INFO] | | | +- com.google.code.gson:gson:jar:2.2.4:provided
[INFO] | | | +- org.apache.hadoop:hadoop-auth:jar:2.7.0-mapr-1808:provided
[INFO] | | | | - org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15:provided
[INFO] | | | | +- org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15:provided
[INFO] | | | | +- org.apache.directory.api:api-asn1-api:jar:1.0.0-M20:provided
[INFO] | | | | - org.apache.directory.api:api-util:jar:1.0.0-M20:provided
[INFO] | | | +- org.apache.curator:curator-client:jar:2.7.1:provided
[INFO] | | | - org.apache.htrace:htrace-core:jar:3.1.0-incubating:provided
[INFO] | | +- org.apache.hadoop:hadoop-hdfs:jar:2.7.0-mapr-1808:provided
[INFO] | | | +- org.mortbay.jetty:jetty-util:jar:6.1.26:provided
[INFO] | | | - xerces:xercesImpl:jar:2.9.1:provided
[INFO] | | | - xml-apis:xml-apis:jar:1.3.04:provided
[INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-app:jar:2.7.0-mapr-1808:provided
[INFO] | | | +- org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.7.0-mapr-1808:provided
[INFO] | | | | +- org.apache.hadoop:hadoop-yarn-client:jar:2.7.0-mapr-1808:provided
[INFO] | | | | - org.apache.hadoop:hadoop-yarn-server-common:jar:2.7.0-mapr-1808:provided
[INFO] | | | - org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.7.0-mapr-1808:provided
[INFO] | | +- org.apache.hadoop:hadoop-yarn-api:jar:2.7.0-mapr-1808:provided
[INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.7.0-mapr-1808:provided
[INFO] | | | - org.apache.hadoop:hadoop-yarn-common:jar:2.7.0-mapr-1808:provided
[INFO] | | | +- javax.xml.bind:jaxb-api:jar:2.2.2:provided
[INFO] | | | | - javax.xml.stream:stax-api:jar:1.0-2:provided
[INFO] | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.13:provided
[INFO] | | | - org.codehaus.jackson:jackson-xc:jar:1.9.13:provided
[INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.7.0-mapr-1808:provided
[INFO] | | - org.apache.hadoop:hadoop-annotations:jar:2.7.0-mapr-1808:provided
[INFO] | +- com.mapr.security:mapr-security-web:jar:6.1.0-mapr:provided
[INFO] | +- org.apache.spark:spark-launcher_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | +- org.apache.spark:spark-kvstore_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | | - org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:provided
[INFO] | +- org.apache.spark:spark-network-common_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | +- org.apache.spark:spark-network-shuffle_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | +- org.apache.spark:spark-unsafe_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | +- net.java.dev.jets3t:jets3t:jar:0.9.4:provided
[INFO] | | +- javax.activation:activation:jar:1.1.1:provided
[INFO] | | +- org.bouncycastle:bcprov-jdk15on:jar:1.52:provided
[INFO] | | - com.jamesmurty.utils:java-xmlbuilder:jar:1.1:provided
[INFO] | | - net.iharder:base64:jar:2.3.8:provided
[INFO] | +- org.apache.curator:curator-recipes:jar:2.7.1:provided
[INFO] | | +- org.apache.curator:curator-framework:jar:2.7.1:provided
[INFO] | | +- org.apache.zookeeper:zookeeper:jar:3.4.6:provided
[INFO] | | - com.google.guava:guava:jar:16.0.1:provided
[INFO] | +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
[INFO] | +- org.apache.commons:commons-lang3:jar:3.5:provided
[INFO] | +- org.apache.commons:commons-math3:jar:3.4.1:provided
[INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:provided
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.16:provided
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.16:provided
[INFO] | +- org.slf4j:slf4j-log4j12:jar:1.7.16:provided
[INFO] | +- com.ning:compress-lzf:jar:1.0.3:provided
[INFO] | +- org.xerial.snappy:snappy-java:jar:1.1.2.6:provided
[INFO] | +- org.lz4:lz4-java:jar:1.4.0:provided
[INFO] | +- com.github.luben:zstd-jni:jar:1.3.2-2:provided
[INFO] | +- org.roaringbitmap:RoaringBitmap:jar:0.5.11:provided
[INFO] | +- commons-net:commons-net:jar:2.2:provided
[INFO] | +- org.json4s:json4s-jackson_2.11:jar:3.2.11:provided
[INFO] | | - org.json4s:json4s-core_2.11:jar:3.2.11:provided
[INFO] | | +- org.json4s:json4s-ast_2.11:jar:3.2.11:provided
[INFO] | | - org.scala-lang:scalap:jar:2.11.0:provided
[INFO] | | - org.scala-lang:scala-compiler:jar:2.11.0:provided
[INFO] | | - org.scala-lang.modules:scala-xml_2.11:jar:1.0.1:provided
[INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.22.2:provided
[INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:provided
[INFO] | | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:provided
[INFO] | | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:provided
[INFO] | | | - org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:provided
[INFO] | | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:provided
[INFO] | | - org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:provided
[INFO] | | - org.javassist:javassist:jar:3.18.1-GA:provided
[INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.22.2:provided
[INFO] | | +- javax.annotation:javax.annotation-api:jar:1.2:provided
[INFO] | | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.22.2:provided
[INFO] | | - org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:provided
[INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.22.2:provided
[INFO] | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.22.2:provided

[INFO] | | - javax.validation:validation-api:jar:1.1.0.Final:provided
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.22.2:provided
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.22.2:provided
[INFO] | +- io.netty:netty-all:jar:4.1.17.Final:provided
[INFO] | +- io.netty:netty:jar:3.9.9.Final:provided
[INFO] | +- com.clearspring.analytics:stream:jar:2.7.0:provided
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.1.5:provided
[INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:3.1.5:provided
[INFO] | +- io.dropwizard.metrics:metrics-json:jar:3.1.5:provided
[INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:3.1.5:provided
[INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.11:jar:2.6.7.1:provided
[INFO] | | +- org.scala-lang:scala-reflect:jar:2.11.8:provided
[INFO] | | - com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.7.9:provided
[INFO] | +- org.apache.ivy:ivy:jar:2.4.0:provided
[INFO] | +- oro:oro:jar:2.0.8:provided
[INFO] | +- net.razorvine:pyrolite:jar:4.13:provided
[INFO] | +- net.sf.py4j:py4j:jar:0.10.7:provided
[INFO] | +- org.apache.spark:spark-tags_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | +- org.apache.commons:commons-crypto:jar:1.0.0:provided
[INFO] | - org.spark-project.spark:unused:jar:1.0.0:provided
[INFO] +- org.apache.spark:spark-sql_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | +- com.univocity:univocity-parsers:jar:2.5.9:provided
[INFO] | +- org.apache.spark:spark-sketch_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | +- org.apache.spark:spark-catalyst_2.11:jar:2.3.1-mapr-1808:provided
[INFO] | | +- org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.4:provided
[INFO] | | +- org.codehaus.janino:janino:jar:3.0.8:provided
[INFO] | | +- org.codehaus.janino:commons-compiler:jar:3.0.8:provided
[INFO] | | - org.antlr:antlr4-runtime:jar:4.7:provided
[INFO] | +- org.apache.orc:orc-core:jar:nohive:1.4.4:provided
[INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:provided
[INFO] | | +- commons-lang:commons-lang:jar:2.6:provided
[INFO] | | - io.airlift:aircompressor:jar:0.8:provided
[INFO] | +- org.apache.orc:orc-mapreduce:jar:nohive:1.4.4:provided
[INFO] | +- org.apache.parquet:parquet-column:jar:1.8.3:provided
[INFO] | | +- org.apache.parquet:parquet-common:jar:1.8.3:provided
[INFO] | | - org.apache.parquet:parquet-encoding:jar:1.8.3:provided
[INFO] | +- org.apache.parquet:parquet-hadoop:jar:1.8.3:provided
[INFO] | | +- org.apache.parquet:parquet-format:jar:2.3.1:provided
[INFO] | | - org.apache.parquet:parquet-jackson:jar:1.8.3:provided
[INFO] | - org.apache.arrow:arrow-vector:jar:0.8.0:provided
[INFO] | +- org.apache.arrow:arrow-format:jar:0.8.0:provided
[INFO] | +- org.apache.arrow:arrow-memory:jar:0.8.0:provided
[INFO] | - com.vlkan:flatbuffers:jar:1.2.0-3f79e055:provided
[INFO] +- org.elasticsearch:elasticsearch-spark-20_2.11:jar:7.3.1:compile
[INFO] | - org.scala-lang:scala-library:jar:2.11.8:compile
[INFO] - com.company.unitname:elasticsearch-connector:jar:0.0.1-SNAPSHOT:compile
[INFO] +- org.springframework:spring-context:jar:5.2.7.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.7.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:5.2.7.RELEASE:compile
[INFO] | +- org.springframework:spring-core:jar:5.2.7.RELEASE:compile
[INFO] | | - org.springframework:spring-jcl:jar:5.2.7.RELEASE:compile
[INFO] | - org.springframework:spring-expression:jar:5.2.7.RELEASE:compile
[INFO] +- org.elasticsearch.client:elasticsearch-rest-high-level-client:jar:7.3.1:compile
[INFO] | +- org.elasticsearch:elasticsearch:jar:7.3.1:compile
[INFO] | | +- org.elasticsearch:elasticsearch-core:jar:7.3.1:compile
[INFO] | | +- org.elasticsearch:elasticsearch-secure-sm:jar:7.3.1:compile
[INFO] | | +- org.elasticsearch:elasticsearch-x-content:jar:7.3.1:compile
[INFO] | | | +- org.yaml:snakeyaml:jar:1.17:compile
[INFO] | | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.8.11:compile
[INFO] | | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.8.11:compile
[INFO] | | | - com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.8.11:compile
[INFO] | | +- org.elasticsearch:elasticsearch-geo:jar:7.3.1:compile
[INFO] | | +- org.apache.lucene:lucene-core:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-analyzers-common:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-backward-codecs:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-grouping:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-highlighter:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-join:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-memory:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-misc:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-queries:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-queryparser:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-sandbox:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-spatial:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-spatial-extras:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:8.1.0:compile
[INFO] | | +- org.apache.lucene:lucene-suggest:jar:8.1.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-cli:jar:7.3.1:compile
[INFO] | | | - net.sf.jopt-simple:jopt-simple:jar:5.0.2:compile
[INFO] | | +- com.carrotsearch:hppc:jar:0.7.2:compile
[INFO] | | +- joda-time:joda-time:jar:2.9.9:compile
[INFO] | | +- com.tdunning:t-digest:jar:3.2:compile
[INFO] | | +- org.hdrhistogram:HdrHistogram:jar:2.1.9:compile
[INFO] | | - org.elasticsearch:jna:jar:4.5.1:compile
[INFO] | +- org.elasticsearch.client:elasticsearch-rest-client:jar:7.3.1:compile
[INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.5.8:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.11:compile
[INFO] | | +- org.apache.httpcomponents:httpasyncclient:jar:4.1.4:compile
[INFO] | | +- org.apache.httpcomponents:httpcore-nio:jar:4.4.11:compile
[INFO] | | - commons-codec:commons-codec:jar:1.10:compile
[INFO] | +- org.elasticsearch.plugin:parent-join-client:jar:7.3.1:compile
[INFO] | +- org.elasticsearch.plugin:aggs-matrix-stats-client:jar:7.3.1:compile
[INFO] | +- org.elasticsearch.plugin:rank-eval-client:jar:7.3.1:compile
[INFO] | - org.elasticsearch.plugin:lang-mustache-client:jar:7.3.1:compile
[INFO] | - com.github.spullara.mustache.java:compiler:jar:0.9.3:compile
[INFO] +- org.springframework.data:spring-data-elasticsearch:jar:4.0.1.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:5.2.7.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:2.3.1.RELEASE:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.11.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.0:compile
[INFO] | | - com.fasterxml.jackson.core:jackson-annotations:jar:2.6.7:compile
[INFO] | - org.slf4j:slf4j-api:jar:1.7.26:compile
[INFO] +- org.springframework:spring-web:jar:5.2.7.RELEASE:compile
[INFO] +- org.springframework:spring-dao:jar:2.0.8:compile
[INFO] | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | - commons-logging:commons-logging:jar:1.1:compile
[INFO] | +- log4j:log4j:jar:1.2.17:compile
[INFO] | +- logkit:logkit:jar:1.0.1:compile
[INFO] | +- avalon-framework:avalon-framework:jar:4.1.3:compile
[INFO] | - javax.servlet:servlet-api:jar:2.3:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.2:compile
[INFO] - org.apache.logging.log4j:log4j-to-slf4j:jar:2.9.1:compile
[INFO] - org.apache.logging.log4j:log4j-api:jar:2.9.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.