My Oracle Support Banner

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 NOVEMBER 08, 2019

Applies to:

Big Data Appliance Integrated Software - Version 3.0.1 and later
x86_64

Symptoms

NOTE: In the examples that follow, user details, cluster names, hostnames, directory paths, filenames, etc. represent a fictitious sample (and are used to provide an illustrative example only). Any similarity to actual persons, or entities, living or dead, is purely coincidental and not intended in any manner.

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

# java -Durl=http://bdanode02.example.com:<PORT><PATH>/update -jar post.jar <FILE>.csv
SimplePostTool version 1.5
Posting files to base url http://bdanode02.example.com:<PORT>/<PATH>update using content-type application/xml.
POSTing file <FILE>.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:<PORT>/<PATH>/update..
SimplePostTool: WARNING: Solr returned an error #404 Not Found for url http://bdanode02.example.com:<PORT>/<PATH>/update?commit=true
Time spent: 0:00:00.408

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.