when I create solr core:
bin/solr create -c my_core
I get the following error:
ERROR: Solr requires authentication for http://localhost:8983/solr/admin/info/system. Please supply valid credentials. HTTP code=401
even I had logged in into solr admin panel. is there any way to provide my credential info with the create
command?
Even if it is an old question. Just for reference in case somebody like me looks for the answer in the future.
In my case of Solr 6 setting the following two environment variables did the job:
export SOLR_AUTH_TYPE='basic'
export SOLR_AUTHENTICATION_OPTS='-Dbasicauth=username:password'
Now I was able to issue 'bin/solr create ...' etc. from the same console session