You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Will ferrer <wf...@xfire.com> on 2015/03/28 03:00:01 UTC

New To Solr, getting error using the quick start guide

Hi

I am new to solr and trying to run through the quick start guide (
http://lucene.apache.org/solr/quickstart.html).

The installation seems fine but then I run:

bin/solr start -e cloud -noprompt

I get:

Welcome to the SolrCloud example!


Starting up 2 Solr nodes for your example SolrCloud cluster.

Starting up SolrCloud node1 on port 8983 using command:

solr start -cloud -s example/cloud/node1/solr -p 8983


Waiting to see Solr listening on port 8983 [|]
Started Solr server on port 8983 (pid=15536). Happy searching!



Starting node2 on port 7574 using command:

solr start -cloud -s example/cloud/node2/solr -p 7574 -z localhost:9983


Waiting to see Solr listening on port 7574 [/]
Started Solr server on port 7574 (pid=15798). Happy searching!


Then I run in another console, because this one is still occupied with solr:

bin/post -c gettingstarted docs/


I get:

java -classpath /usr/lib/solr-5.0.0/dist/solr-core-5.0.0.jar -Dauto=yes
-Dc=gettingstarted -Ddata=files -Drecursive=yes
org.apache.solr.util.SimplePostTool docs/
SimplePostTool version 5.0.0
Posting files to [base] url
http://localhost:8983/solr/gettingstarted/update...
Entering auto mode. File endings considered are
xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log
Entering recursive mode, max depth=999, delay=0s
Indexing directory docs (3 files, depth=0)
POSTing file quickstart.html (text/html) to [base]/extract
SimplePostTool: FATAL: Connection error (is Solr running at
http://localhost:8983/solr/gettingstarted/update ?):
java.net.ConnectException: Connection timed out


Mean while, in the console that I used to start solr I get:

WARN  - 2015-03-27 18:41:15.077; org.apache.solr.util.SolrCLI; Request to
http://localhost:8983/solr/admin/info/system failed due to: Connection
refused, sleeping for 5 seconds before re-trying the request ...
Exception in thread "main" java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:214)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:160)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:136)
at org.apache.solr.util.SolrCLI.getJson(SolrCLI.java:512)
at org.apache.solr.util.SolrCLI.getJson(SolrCLI.java:456)
at org.apache.solr.util.SolrCLI.getJson(SolrCLI.java:466)
at org.apache.solr.util.SolrCLI.getZkHost(SolrCLI.java:1113)
at
org.apache.solr.util.SolrCLI$CreateCollectionTool.runTool(SolrCLI.java:1155)
at org.apache.solr.util.SolrCLI.main(SolrCLI.java:203)


SolrCloud example running, please visit http://localhost:8983/solr

The console then exits from the process.

I can open http://localhost:8983/solr/admin/info/system in my web browser
and it has an xml file.

http://localhost:8983/solr/gettingstarted/update in my web browser gives me:

HTTP ERROR 404

Problem accessing /solr/gettingstarted/update. Reason:

    Not Found

Powered by Jetty://


http://localhost:8983/solr/#/ shows data in my web browser, but the cloud
tab is empty under graph.

Any advice any one give me to get me started here with the product would be
very appreciated.

All the best.

Will Ferrer

Re: New To Solr, getting error using the quick start guide

Posted by Will ferrer <wf...@xfire.com>.
Hi Swawn.

Thanks so much for the response. I will do so more tests on this and send
more info in the next day or 2, maybe that will illuminate something.  I
hope you are having a great weekend.

All the best.

Will Ferrer

On Sat, Mar 28, 2015 at 10:28 AM, Shawn Heisey <ap...@elyograg.org> wrote:

> On 3/27/2015 8:00 PM, Will ferrer wrote:
> > I am new to solr and trying to run through the quick start guide (
> > http://lucene.apache.org/solr/quickstart.html).
> >
> > The installation seems fine but then I run:
> >
> > bin/solr start -e cloud -noprompt
>
> You are starting the cloud example with no prompts.
>
> > http://localhost:8983/solr/#/ shows data in my web browser, but the
> cloud
> > tab is empty under graph.
> >
> > Any advice any one give me to get me started here with the product would
> be
> > very appreciated.
>
> The console log that you included with your message said nothing about
> creating the gettingstarted collection, but when I try the command you
> used on the following setups, it creates the collection every time:
>
> *) Linux, from the tags/lucene_solr_5_0_0 source.
> *) Windows 8.1, from the binary 5.0.0 download.
> *) Linux, from the branch_5x source.
>
> Here's my console log from the first item above - Solr built from the
> tags/lucene_solr_5_0_0 source:
>
> ---------------
>
> elyograg@sauron:~/asf/lucene_solr_5_0_0/solr$ bin/solr -e cloud -noprompt
>
> Welcome to the SolrCloud example!
>
>
> Starting up 2 Solr nodes for your example SolrCloud cluster.
> Creating Solr home directory
> /home/elyograg/asf/lucene_solr_5_0_0/solr/example/cloud/node1/solr
> Cloning Solr home directory
> /home/elyograg/asf/lucene_solr_5_0_0/solr/example/cloud/node1 into
> /home/elyograg/asf/lucene_solr_5_0_0/solr/example/cloud/node2
>
> Starting up SolrCloud node1 on port 8983 using command:
>
> solr start -cloud -s example/cloud/node1/solr -p 8983
>
>
> Waiting to see Solr listening on port 8983 [/]
> Started Solr server on port 8983 (pid=13260). Happy searching!
>
>
> Starting node2 on port 7574 using command:
>
> solr start -cloud -s example/cloud/node2/solr -p 7574 -z localhost:9983
>
>
> Waiting to see Solr listening on port 7574 [/]
> Started Solr server on port 7574 (pid=13419). Happy searching!
>
>   Connecting to ZooKeeper at localhost:9983
> Uploading
>
> /home/elyograg/asf/lucene_solr_5_0_0/solr/server/solr/configsets/data_driven_schema_configs/conf
> for config gettingstarted to ZooKeeper at localhost:9983
>
> Creating new collection 'gettingstarted' using command:
>
> http://166.70.79.221:7574/solr/admin/collections?action=CREATE&name=gettingstarted&numShards=2&replicationFactor=2&maxShardsPerNode=2&collection.configName=gettingstarted
>
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":6869},
>   "success":{"":{
>       "responseHeader":{
>         "status":0,
>         "QTime":6387},
>       "core":"gettingstarted_shard1_replica2"}}}
>
>
>
> SolrCloud example running, please visit http://localhost:8983/solr
>
>
> elyograg@sauron:~/asf/lucene_solr_5_0_0/solr$
>
> ---------------
>
> I don't know why it's not creating the collection for you, unless maybe
> you are running a different version built from older source code or
> something.
>
> Thanks,
> Shawn
>
>

Re: New To Solr, getting error using the quick start guide

Posted by Shawn Heisey <ap...@elyograg.org>.
On 3/27/2015 8:00 PM, Will ferrer wrote:
> I am new to solr and trying to run through the quick start guide (
> http://lucene.apache.org/solr/quickstart.html).
> 
> The installation seems fine but then I run:
> 
> bin/solr start -e cloud -noprompt

You are starting the cloud example with no prompts.

> http://localhost:8983/solr/#/ shows data in my web browser, but the cloud
> tab is empty under graph.
> 
> Any advice any one give me to get me started here with the product would be
> very appreciated.

The console log that you included with your message said nothing about
creating the gettingstarted collection, but when I try the command you
used on the following setups, it creates the collection every time:

*) Linux, from the tags/lucene_solr_5_0_0 source.
*) Windows 8.1, from the binary 5.0.0 download.
*) Linux, from the branch_5x source.

Here's my console log from the first item above - Solr built from the
tags/lucene_solr_5_0_0 source:

---------------

elyograg@sauron:~/asf/lucene_solr_5_0_0/solr$ bin/solr -e cloud -noprompt

Welcome to the SolrCloud example!


Starting up 2 Solr nodes for your example SolrCloud cluster.
Creating Solr home directory
/home/elyograg/asf/lucene_solr_5_0_0/solr/example/cloud/node1/solr
Cloning Solr home directory
/home/elyograg/asf/lucene_solr_5_0_0/solr/example/cloud/node1 into
/home/elyograg/asf/lucene_solr_5_0_0/solr/example/cloud/node2

Starting up SolrCloud node1 on port 8983 using command:

solr start -cloud -s example/cloud/node1/solr -p 8983


Waiting to see Solr listening on port 8983 [/]
Started Solr server on port 8983 (pid=13260). Happy searching!


Starting node2 on port 7574 using command:

solr start -cloud -s example/cloud/node2/solr -p 7574 -z localhost:9983


Waiting to see Solr listening on port 7574 [/]
Started Solr server on port 7574 (pid=13419). Happy searching!

  Connecting to ZooKeeper at localhost:9983
Uploading
/home/elyograg/asf/lucene_solr_5_0_0/solr/server/solr/configsets/data_driven_schema_configs/conf
for config gettingstarted to ZooKeeper at localhost:9983

Creating new collection 'gettingstarted' using command:
http://166.70.79.221:7574/solr/admin/collections?action=CREATE&name=gettingstarted&numShards=2&replicationFactor=2&maxShardsPerNode=2&collection.configName=gettingstarted

{
  "responseHeader":{
    "status":0,
    "QTime":6869},
  "success":{"":{
      "responseHeader":{
        "status":0,
        "QTime":6387},
      "core":"gettingstarted_shard1_replica2"}}}



SolrCloud example running, please visit http://localhost:8983/solr


elyograg@sauron:~/asf/lucene_solr_5_0_0/solr$

---------------

I don't know why it's not creating the collection for you, unless maybe
you are running a different version built from older source code or
something.

Thanks,
Shawn