org.apache.solr.common.SolrException: Request [https://HOSTNAME:8983/solr/COLLECTION/schema/fieldtypes?wt=json] failed due to: HTTP/1.1 401 Authentication required: <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>Error 401 Authentication required</title></head><body><h2>HTTP ERROR 401</h2><p>Problem accessing /solr/COLLECTION/schema/fieldtypes. Reason:<pre> Authentication required</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/></body></html>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by risdenk
, 1 year ago
Request [https://HOSTNAME:8983/solr/COLLECTION/schema/fieldtypes?wt=json] failed due to: HTTP/1.1 401 Authentication required: <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>Error 401 Authentication required
via GitHub by patelrishabh
, 9 months ago
Request [http://127.0.0.1:64163/solr/testSampleIndex/admin/luke?numTerms=0&wt=json] failed due to: HTTP/1.1 500 Server Error: {"responseHeader":{"status":500,"QTime":1},"error":{"msg":"/Users/Github/spark-solr/target/java-solrcloud-1486452025248
org.apache.solr.common.SolrException: Request [https://HOSTNAME:8983/solr/COLLECTION/schema/fieldtypes?wt=json] failed due to: HTTP/1.1 401 Authentication required: <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>Error 401 Authentication required</title></head><body><h2>HTTP ERROR 401</h2><p>Problem accessing /solr/COLLECTION/schema/fieldtypes. Reason:<pre> Authentication required</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/></body></html>
at com.lucidworks.spark.util.SolrJsonSupport$.doJsonRequest(SolrJsonSupport.scala:92)
at com.lucidworks.spark.util.SolrJsonSupport$.getJson(SolrJsonSupport.scala:73)
at com.lucidworks.spark.util.SolrJsonSupport$.getJson(SolrJsonSupport.scala:34)
at com.lucidworks.spark.util.SolrQuerySupport$.getFieldTypeToClassMap(SolrQuerySupport.scala:474)
at com.lucidworks.spark.util.SolrQuerySupport$.getFieldTypes(SolrQuerySupport.scala:258)
at com.lucidworks.spark.util.SolrQuerySupport$.getFieldTypes(SolrQuerySupport.scala:254)
at com.lucidworks.spark.util.SolrRelationUtil$.getBaseSchema(SolrRelationUtil.scala:35)
at com.lucidworks.spark.SolrRelation.(SolrRelation.scala:83)
at solr.DefaultSource.createRelation(DefaultSource.scala:26)
at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:170)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:146)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.