Skip to content
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

BatchSize and Coalesce, Index Millions of Documents -- #304

Open
neprasad opened this issue Aug 8, 2020 · 0 comments
Open

BatchSize and Coalesce, Index Millions of Documents -- #304

neprasad opened this issue Aug 8, 2020 · 0 comments

Comments

@neprasad
Copy link

neprasad commented Aug 8, 2020

Hi --

During the Spark-SolrJ index with below configuration on 70MM parquet datasets, throws this error --
"java.lang.NoClassDefFoundError: org/apache/commons/httpclient/NoHttpResponseException+details"

any help is appreciated on configuration on Solr side?

val numBatchSize = "5000"
val numCoalSize = 100
var writeToSolrOpts = Map("zkhost" -> zkHost, "collection" -> solrCollection, "batch_size" -> numBatchSize)
data.coalesce(numCoalSize).write.format("solr").options(writeToSolrOpts).mode(SaveMode.Overwrite).save
commit(zkHost, solrCollection)

java.lang.NoClassDefFoundError: org/apache/commons/httpclient/NoHttpResponseException
at com.lucidworks.spark.util.SolrSupport$.shouldRetry(SolrSupport.scala:422)
at com.lucidworks.spark.util.SolrSupport$.sendBatchToSolr(SolrSupport.scala:388)
at com.lucidworks.spark.util.SolrSupport$.sendBatchToSolrWithRetry(SolrSupport.scala:348)
at com.lucidworks.spark.util.SolrSupport$$anonfun$indexDocs$1.apply(SolrSupport.scala:327)
at com.lucidworks.spark.util.SolrSupport$$anonfun$indexDocs$1.apply(SolrSupport.scala:316)
at org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$28.apply(RDD.scala:935)
at org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$28.apply(RDD.scala:935)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2121)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2121)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
at org.apache.spark.scheduler.Task.run(Task.scala:121)
at org.apache.spark.executor.Executor$TaskRunner$$anonfun$11.apply(Executor.scala:407)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1408)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:413)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant