Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Error while starting the shard under Node1 as guided by documentation.

asn_177
Level 4
Level 4

I am following the guidelines on http://docs.adobe.com/docs/en/aem/6-0/deploy/upgrade/queries-and-indexing.html to set up remote solr search server.

I have set up the recommended configuration and after creating aemsolr1/node1 and aemsolr2/node2 folders I am trying to start the first shard by using 

    
java -Xmx2g -Dbootstrap_confdir=./cfg/oak/conf -Dcollection.configName=myconf -DzkRun -DnumShards=2 -jar start.jar

 

However this gives error "

[coreLoadExecutor-6-thread-1] ERROR org.apache.solr.core.CoreContainer  û Error creating core [
oak]: Could not load conf for core oak: Plugin init failure for [schema.xml] fieldType "pint": Error
 loading class 'solr.IntField'. Schema file is /configs/myconf/schema.xml
org.apache.solr.common.SolrException: Could not load conf for core oak: Plugin init failure for [sch
ema.xml] fieldType "pint": Error loading class 'solr.IntField'. Schema file is /configs/myconf/schem
a.xml

 

I have attached the entire log.

 

Kindly let me know what I am doing incorrectly.

1 Accepted Solution
Peter_Puzanovs
Correct answer by
Community Advisor
Community Advisor

Hey,

Good, checked java code, this error means that you are pointing to the non existing path .e.g your zoo.cfg does not exist in the directory you are pointing it to...

File configFile = new File(path); LOG.info("Reading configuration from: " + configFile); try { if (!configFile.exists()) { throw new IllegalArgumentException(configFile.toString() + " file is missing"); } }

Thanks,

Peter

View solution in original post

5 Replies
Peter_Puzanovs
Community Advisor
Community Advisor

Hey,

 

You are using Solr 5.x which is latest release? 

Docs(http://docs.adobe.com/docs/en/aem/6-0/deploy/upgrade/queries-and-indexing.html), do not mention the Solr version expected for the docs to work, but in Solr 5.x 'solr.IntField' has been deprecated(https://issues.apache.org/jira/browse/SOLR-5936).

Please update your fieldtypes to latest 5.x release types as you see it desired available types(https://cwiki.apache.org/confluence/display/solr/Field+Types+Included+with+Solr), alternatively you can downgrade your Solr server to 4.8.0 and then this demo would work as it's supposed to.

Thanks,

Peter

asn_177
Level 4
Level 4

Thanks ...Removed them...however now it gives another error...it actually looks for solr home i.e. solr/home in solr installation.

and then looks for solr//zoo.cfg   -- entire log attached.

"2932 [main] ERROR org.apache.solr.servlet.SolrDispatchFilter  û Could not start Solr. Check solr/hom
e property and the logs
2971 [main] ERROR org.apache.solr.core.SolrCore  û null:org.apache.solr.common.SolrException: org.ap
ache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing solr//zoo.cfg
        at org.apache.solr.cloud.SolrZkServer.parseConfig(SolrZkServer.java:96)
        at org.apache.solr.core.ZkContainer.initZooKeeper(ZkContainer.java:123)
        at org.apache.solr.core.ZkContainer.initZooKeeper(ZkContainer.java:67)
        at org.apache.solr.core.CoreContainer.load(CoreContainer.java:216)
        at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:189"

Peter_Puzanovs
Correct answer by
Community Advisor
Community Advisor

Hey,

Good, checked java code, this error means that you are pointing to the non existing path .e.g your zoo.cfg does not exist in the directory you are pointing it to...

File configFile = new File(path); LOG.info("Reading configuration from: " + configFile); try { if (!configFile.exists()) { throw new IllegalArgumentException(configFile.toString() + " file is missing"); } }

Thanks,

Peter

View solution in original post

asn_177
Level 4
Level 4

yes ..the documentation on http://docs.adobe.com/docs/en/aem/6-0/deploy/upgrade/queries-and-indexing.html
 asks to Copy the following folders from the example instance to the two shard folders (aemsolr1\node1 and aemsolr2\node2😞

  • contexts
  • etc
  • lib
  • resources
  • scripts
  • solr-webapp
  • webapps
  • start.jar

 the zoo config file is inside aemsolr1\node1\cfg\zoo.cfg

however the solr on start looks for  a solr\zoo.cfg file .. the documentation does not ask to create a solr folder .The how the solr starter supposed to find the zoo.cfg file ?

pasted below is screenshot of contents of my aemsolr1\node1\ directory.

 

Peter_Puzanovs
Community Advisor
Community Advisor

Change solr.xml, set hostContext to point into cfg instead of solr ?

Full list of available options(https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml)