-
Notifications
You must be signed in to change notification settings - Fork 73
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
Check if ml-commons plugin is installed in the Cluster #480
Comments
In order to have ml-common dependency check for neural search plugin during OpenSearch cluster plugin installation, I tried to add After this change, it causes jar hell from org.opensearch.plugins.PluginsService.checkBundleJarHell:
k-NN and ML each ship Guava JAR, leading to jar-hell check failure. Because OpenSearch sees two copies of com.google.common.*, it fails with a jar-hell error. Unfortunately, I tried to relocate Guava in our own plugin, but it still leads to same jar hell from k-NN and ML. Besides I don't find any method to disable jarhell check within plugin level. That might be the reason previously only k-NN plugin is added in the extendedPlugin list. |
Here are a few alternatives to defining both k-NN and ml-common in the
It's important to note that the I believe using |
Was discussing about this and we probably can also do a verification upon plugin installation of neural, and check if ml+knn are already installed. Tho this approach would need to inject scripts for both nix* and Windows env so might not be the best idea. Thanks. |
What is the bug?
Neural-search is using ml-commons APIs here. There can be a case when the cluster doesn't have ml-commons installed and can return in failure of these APIs on neural-search side.
How can one reproduce the bug?
What is the expected behavior?
A check should be added in build.gradle here for ml-commons plugin.
What is your host/environment?
Ubuntu
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: