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>

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via GitHub by risdenk
    ,
  • via GitHub by patelrishabh
    ,
  • Stack trace

    • 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.<init>(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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.