Executing Solr Command from Command Line on a BDA node or on a BDA Client Fails with "Solr returned an error #401 Unauthorized" (Doc ID 1920998.1)

Last updated on OCTOBER 10, 2014

Applies to:

Big Data Appliance Integrated Software - Version 3.0.1 and later
x86_64

Symptoms

Executing a Solr command on the command line on a BDA node fails in the following way:

# java -Durl=http://bdanode02.example.com:8983/solr/collection1/update -jar post.jar books.csv
SimplePostTool version 1.5
Posting files to base url http://bdanode02.example.com:8983/solr/collection1/update using content-type application/xml..
POSTing file books.csv
SimplePostTool: WARNING: Solr returned an error #401 Unauthorized
SimplePostTool: WARNING: IOException while reading response: java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
1 files indexed.
COMMITting Solr index changes to http://bdanode02.example.com:8983/solr/collection1/update..
SimplePostTool: WARNING: Solr returned an error #404 Not Found for url http://bdanode02.example.com:8983/solr/collection1/update?commit=true
Time spent: 0:00:00.408

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms