Hello,

I have solar installed on my server which is accessed via vpn (putty) to the 
service installed in linux centos eg: 172.16.100.75:8983

but when I need to execute the indexing command line as shown in the examples 
of the reference guide, the following error appears:



[root@centos-sgd solr-8.11.1]# bin/post -c techproducts example/exampledocs/*

/usr/lib/jvm/java-1.8.0-openjdk/bin/java -classpath 
/root/solr-8.11.1/dist/solr-core-8.11.1.jar -Dauto=yes -Dc=techproducts 
-Ddata=files org.apache.solr.util.SimplePostTool example/exampledocs/books.csv 
example/exampledocs/books.json example/exampledocs/gb18030-example.xml 
example/exampledocs/hd.xml example/exampledocs/ipod_other.xml 
example/exampledocs/ipod_video.xml example/exampledocs/manufacturers.xml 
example/exampledocs/mem.xml example/exampledocs/money.xml 
example/exampledocs/monitor2.xml example/exampledocs/monitor.xml 
example/exampledocs/more_books.jsonl example/exampledocs/mp500.xml 
example/exampledocs/post.jar example/exampledocs/sample.html 
example/exampledocs/sd500.xml example/exampledocs/solr-word.pdf 
example/exampledocs/solr.xml example/exampledocs/test_utf8.sh 
example/exampledocs/utf8-example.xml example/exampledocs/vidcard.xml
SimplePostTool version 5.0.0
Posting files to [base] url http://localhost:8983/solr/techproducts/update...
Entering auto mode. File endings considered are 
xml,json,jsonl,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log
POSTing file books.csv (text/csv) to [base]
SimplePostTool: WARNING: Solr returned an error #404 (Not Found) for url: 
http://localhost:8983/solr/techproducts/update
SimplePostTool: WARNING: Response: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404 Not Found</h2>
<table>
<tr><th>URI:</th><td>/solr/techproducts/update</td></tr>
<tr><th>STATUS:</th><td>404</td></tr>
<tr><th>MESSAGE:</th><td>Not Found</td></tr>
<tr><th>SERVLET:</th><td>default</td></tr>
</table>

</body>
</html>

....

According to the official installation documentation

/etc/default/solr.in.sh
SOLR_HOST="172.16.100.75"



Any idea how to fix it? and have it run on http://174.13.159.10:8983 and not on 
http://localhost:8983


On the other hand, when I try to start the service in cloud mode, I get another 
error :



[root@centos-sgd solr]# bin/solr -e cloud
*** [WARN] *** Your open file limit is currently 1024.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in 
your profile or solr.in.sh
*** [WARN] ***  Your Max Processes Limit is currently 63449.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in 
your profile or solr.in.sh

Welcome to the SolrCloud example!

This interactive session will help you launch a SolrCloud cluster on your local 
workstation.
To begin, how many Solr nodes would you like to run in your local cluster? 
(specify 1-4 nodes) [2]:
1
Ok, let's start up 1 Solr nodes for your example SolrCloud cluster.
Please enter the port for node1 [8983]:
8983
Solr home directory /opt/solr/example/cloud/node1/solr already exists.

Starting up Solr on port 8983 using command:
"/opt/solr/bin/solr" start -cloud -p 8983 -s 
"/opt/solr/example/cloud/node1/solr"

*** [WARN] *** Your open file limit is currently 4096.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in 
your profile or solr.in.sh
*** [WARN] ***  Your Max Processes Limit is currently 63449.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in 
your profile or solr.in.sh
WARNING: Starting Solr as the root user is a security risk and not considered 
best practice. Exiting.
         Please consult the Reference Guide. To override this check, start with 
argument '-force'

ERROR: Failed to start Solr using command: "/opt/solr/bin/solr" start -cloud -p 
8983 -s "/opt/solr/example/cloud/node1/solr" Exception : 
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit 
value: 1)

[root@centos-sgd solr]# service solr status

No Solr nodes are running.


But if I execute directly , the service starts


[root@centos-sgd solr]# service solr start
*** [WARN] *** Your open file limit is currently 1024.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in 
your profile or solr.in.sh
*** [WARN] ***  Your Max Processes Limit is currently 4096.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in 
your profile or solr.in.sh
Waiting up to 180 seconds to see Solr running on port 8983 [\]
Started Solr server on port 8983 (pid=1477). Happy searching!
[root@centos-sgd solr]#



Please, help




Saludos.
Solange

Reply via email to