unknown handler: /select
nsabina opened this issue · 1 comments
I have simple query which I tried with various versions of spark-solr ( I run on Solr 7.6.1)
val items = spark.read.format("solr")
.options(options)
.option("fields",fl)
.load
I am getting the same error but with earlier versions I see generated query strong on debug. Below is the output I get from 3.2.2 client.
I checked solrconfig.xml and I see proper select handle and requestDispatcher .
2019-06-19 14:57:25,817 [main] INFO SolrRelation - Sending q=*:*&rows=5000&qt=/select&fl=actor,album,align_channel_price,artist_name&collection=polaris to SolrRDD using /select with maxRows: None 2019-06-19 14:57:25,831 [main] DEBUG SolrRelation - Converting SolrRDD of type com.lucidworks.spark.rdd.SelectSolrRDD to rows matching schema: StructType(StructField(actor,StringType,true), StructField(album,StringType,true), StructField(align_channel_price,StringType,true), StructField(artist_name,StringType,true)) 2019-06-19 14:57:26,483 [main] INFO SelectSolrRDD - rq = /select, setting query defaults for query = q=*:*&rows=5000&qt=/select&fl=actor,album,align_channel_price,artist_name&collection=polaris uniqueKey = pg_prod_id 2019-06-19 14:57:26,484 [main] INFO SolrQuerySupport$ - Added default sort clause on uniqueKey field pg_prod_id to query q=*:*&rows=5000&qt=/select&fl=actor,album,align_channel_price,artist_name&collection=polaris&distrib=false&start=0&sort=pg_prod_id+asc 2019-06-19 14:57:26,537 [main] ERROR CloudSolrClient - Request to collection polaris failed due to (400) org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://company.com:9091/solr/polaris_shard9_replica_t16: unknown handler: /select, retry? 0 Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://company.com:9091/solr/polaris_shard9_replica_t16: unknown handler: /select
If the field list has any text fields, then we do use select handler. I think the issue here is on the Solr server not working with /select
handler