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

Reply via email to