Wednesday, 15 July 2015

connection from "spring data solr" to solr in openshift timeout -



connection from "spring data solr" to solr in openshift timeout -

i facing issue connecting spring info solr solr running on openshift.

<solr:solr-server id="solrserver" url="http://solr-dashapramathi.rhcloud.com/" /> <bean id="solrtemplate" class="org.springframework.data.solr.core.solrtemplate" scope="singleton"> <constructor-arg ref="solrserver" /> </bean>

is configuration. have tried url "http://solr-dashapramathi.rhcloud.com/#/dashapramathi" running solr 4.10.1 on openshift.

the error below:

ioexception occured when talking server at: http://solr-dashapramathi.rhcloud.com/dashapramathi; nested exception org.apache.solr.client.solrj.solrserverexception: ioexception occured when talking server at: http://solr-dashapramathi.rhcloud.com/dashapramathi

caused by:

org.springframework.data.solr.uncategorizedsolrexception: ioexception occured when talking server at: http://solr-dashapramathi.rhcloud.com/dashapramathi; nested exception org.apache.solr.client.solrj.solrserverexception: ioexception occured when talking server at: http://solr-dashapramathi.rhcloud.com/dashapramathi @ org.springframework.data.solr.core.solrtemplate.execute(solrtemplate.java:136) @ org.springframework.data.solr.core.solrtemplate.savebean(solrtemplate.java:175) @ org.springframework.data.solr.core.solrtemplate.savebean(solrtemplate.java:169) @ org.springframework.data.solr.repository.support.simplesolrrepository.save(simplesolrrepository.java:149)

caused by: org.apache.http.conn.connecttimeoutexception: connect solr-dashapramathi.rhcloud.com:80 timed out @ org.apache.http.conn.scheme.plainsocketfactory.connectsocket(plainsocketfactory.java:129)

could please help me?

judging documentation listed here http://docs.spring.io/spring-data/solr/docs/1.2.4.release/reference/html/solr.repositories.html looks tries connect through port 8993 why would receiving timeout.

openshift allows external connections made 80,8080,443,8443. within gear connections can alter things connect more ports per next openshift doc https://help.openshift.com/hc/en-us/articles/202185874.

spring solr openshift

No comments:

Post a Comment