Code Monkey home page Code Monkey logo

Comments (9)

mdoering avatar mdoering commented on July 19, 2024

The hdfs locktype only works in solr cloud which we use at GBIF. It should have been removed from the solrconfig.xml in this docker step: https://github.com/mskyttner/clb-docker/blob/master/solr/Dockerfile#L37

from clb-docker.

mskyttner avatar mskyttner commented on July 19, 2024

@mdoering that step seems execute in the branch #9, yet we still get an issue when accessing /species/search, and it should be possible to replicate this issue using that branch using "firefox http://clb.docker/species/search". We now get:

org.apache.solr.common.SolrException: SolrCore 'checklistbank' is not available due to init failure: Unrecognized lockType: hdfs

We tried to modify the solrconfig.xml file by removing these lines: https://github.com/gbif/checklistbank/blob/master/checklistbank-solr/src/main/resources/solr/checklistbank/conf/solrconfig.xml#L6-L10

This removed a warning for the solr logs but did not solve the issue. Any advice?

from clb-docker.

mdoering avatar mdoering commented on July 19, 2024

The problematic line to be removed is https://github.com/gbif/checklistbank/blob/master/checklistbank-solr/src/main/resources/solr/checklistbank/conf/solrconfig.xml#L34

from clb-docker.

mskyttner avatar mskyttner commented on July 19, 2024

Yes, and that seems to have worked, we verified that the sed command removes it in this step (https://github.com/mskyttner/clb-docker/blob/master/solr/Dockerfile#L37) using this command:

root@solr:/opt/solr# grep hdfs server/solr/checklistbank/conf/solrconfig.xml

But we still get that error message....

from clb-docker.

mskyttner avatar mskyttner commented on July 19, 2024

@mdoering - the solrconfig.xml has no "hdfs" string in it - something else we should check?

This works:

firefox http://clb.docker/species?name=Vulpes%20vulpes

Not this:

firefox http://clb.docker/species/search?q=Vulpes+vulpes

from clb-docker.

mdoering avatar mdoering commented on July 19, 2024

The first URL is a call to the db only, the 2nd uses solr. Something hosed but no idea what that is without properly debugging the installation. Trying to find some time to do that soon

from clb-docker.

mskyttner avatar mskyttner commented on July 19, 2024

@mdoering Thanks for having a look! For what it is worth, this command gives nothing in the solr container: root@solr:/opt/solr/server/solr# grep -r hdfs * so it doesn't seem to be anything in text config files there? Could it be something inside a jar?

from clb-docker.

mdoering avatar mdoering commented on July 19, 2024

could you check the file from within the solr UI? that shows the actual config in use. maybe it gets it from somewhere else...

from clb-docker.

mskyttner avatar mskyttner commented on July 19, 2024

I couldn't find anything in the solr UI, I did a Ctrl+F on all the tabs I could find in the UI on "hdfs". The stack trace when I get http://clb.docker/species/search?q=Vulpes+vulpes says:

org.apache.solr.common.SolrException: Unrecognized lockType: hdfs
	at org.apache.solr.core.StandardDirectoryFactory.createLockFactory(StandardDirectoryFactory.java:74)
	at org.apache.solr.core.CachingDirectoryFactory.get(CachingDirectoryFactory.java:349)
	at org.apache.solr.core.SolrCore.getNewIndexDir(SolrCore.java:301)
	at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:516)

Could it be some default setting or something kicking in then?

from clb-docker.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.