Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIH in solrcloud(Apache Solr Operator) mode with Solr 8.11.2 #35

Open
iampranabroy opened this issue Aug 26, 2022 · 8 comments
Open

DIH in solrcloud(Apache Solr Operator) mode with Solr 8.11.2 #35

iampranabroy opened this issue Aug 26, 2022 · 8 comments

Comments

@iampranabroy
Copy link

Is there any documentation on DIH in SolrCloud mode for version > 8.11.0

Is data-import-handler-8.10.0.jar the only lib we need to include in solrconfig.xml? I don't see any data-import-handler-extras jar

We are trying to use DIH with SolrCloud(Apache Solr Operator) on EKS.

@iampranabroy
Copy link
Author

Hello, @rohitbemax @rmuir @jdyer1 @uschindler @markrmiller - Would you have any pointers on this? thanks in advance

@odiloRugamba
Copy link

Hello @iampranabroy did you figure this out?

@iampranabroy
Copy link
Author

Hey @odiloRugamba - We used the default bundled DIH with solr image and used it like below in the solrconfig.xml file.

<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-.*\.jar" />

But the documentation on DIH use with SolrCloud mode would definitely help.

@mHz28
Copy link

mHz28 commented Nov 4, 2022

Hey @odiloRugamba - We used the default bundled DIH with solr image and used it like below in the solrconfig.xml file.

<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-.*\.jar" />

But the documentation on DIH use with SolrCloud mode would definitely help.

I've used this when I attempted to use DIH on SolrCloud: https://solr.apache.org/guide/8_11/package-manager.html

However, when I made a mistake, need to change package repo uri, replace packages, etc I have not figured how to do it other than rebuilding the servers...

@ghost
Copy link

ghost commented Mar 23, 2023

@iampranabroy did you manage to fix this problem? I'm trying to do the same but not successfull so far. I get The following errors:
Always:
ERROR: Full Import failed

WARN: Could not read DIH properties from /configs/<COLLECTION_NAME>/dataimport.properties : class org.apache.zookeeper.KeeperException$NoNodeException

Sometimes:
JdbcDataSource was not closed prior to finalize(),&#8203; indicates a bug -- POSSIBLE RESOURCE LEAK!!!

In our old setup, which is Solr 8.11.2 in normal mode, a separate sqljdbc.jar is used, however I don't know why and if this also should be used in Cloud mode.

@iampranabroy
Copy link
Author

Hey @ilivss - As mentioned we have used the default DIH provided till version 8.xx

<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-.*\.jar" />

For your problem, it looks more like an issue with the config. Can you check if the config is loaded and when you create the collection, you are using that config to create the collection? When DIH runs for the first time, if all properties/configs are correct, it should create dataimport.properties file.

Also, can you check if you are able to load your custom sqldriver. jar from the solrconfig.xml properties file?
Example: If you sqldriver.jar is in tmp/solr/lib path by using.

<lib dir="/tmp/solr/lib/" regex="sqldriver.jar" />

@ghost
Copy link

ghost commented Apr 6, 2023

I read your comment too late unfortunately. for the time being I just deployed Solr 8.11.2 standalone mode in a normal Azure VM. Anyway thanks for your help! @iampranabroy

@mkhludnev
Copy link
Contributor

can we close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants