Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error: can't discover Solr URI. Please specify it explicitly via --solr.

Solved Go to solution

Error: can't discover Solr URI. Please specify it explicitly via --solr.

New Contributor

Receiving the following error message when executing Tutorial #4 (Explore Log Events Interactively).  Can someone help?

 

[cloudera@quickstart flume]$ solrctl --zk 127.0.0.1:2181/solr collection --create live_logs -s 1
Error: can't discover Solr URI. Please specify it explicitly via --solr.

 

-Jeff.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Error: can't discover Solr URI. Please specify it explicitly via --solr.

Master Collaborator

So the correct way to specify the Solr URL would be "--solr http://quickstart.cloudera:8983/solr", but that is equivalent to what solrtctl should do if you don't specify anything in this case. If I stop the solr-server service and try the command I get the exact same error as you, so let's have a look at what errors you can find in /var/log/solr/solr.out or /var/log/solr/catalina*.log. Note that you'll need to run the 'service' commands with 'sudo'.

2 REPLIES 2

Re: Error: can't discover Solr URI. Please specify it explicitly via --solr.

Master Collaborator

Jeff,

 

I'm going to try a few things and see if I can replicate the problem to suggest a solution, but while I'm doing that I suspect this might mean the Solr service is not running. Can you run 'service solr-server status' and see if it is? If you've launched Cloudera Manager then check in Cloudera Manger instead of using the command-line. If it's not running, check the logs in /var/log/solr/ to see if there are any errors you can post, or simply try restarting the service with 'service solr-server restart'.

Highlighted

Re: Error: can't discover Solr URI. Please specify it explicitly via --solr.

Master Collaborator

So the correct way to specify the Solr URL would be "--solr http://quickstart.cloudera:8983/solr", but that is equivalent to what solrtctl should do if you don't specify anything in this case. If I stop the solr-server service and try the command I get the exact same error as you, so let's have a look at what errors you can find in /var/log/solr/solr.out or /var/log/solr/catalina*.log. Note that you'll need to run the 'service' commands with 'sudo'.