Hello,
I’m encountering an issue with OpenSearch KNN plugin. I am getting an error:
java.lang.UnsatisfiedLinkError: no opensearchknn_nmslib in java.library.path: /usr/java/packages/lib
I added the path to this plugin libraries in the definition of my service:
-Djava.library.path=$OPENSEARCH_HOME/plugins/opensearch-knn/lib
But I am getting another error:
/opensearch/plugins/opensearch-knn/lib/libopensearchknn_nmslib.so: libopensearchknn_common.so: cannot open shared object: No such file or directory
The lib is already presents under: opensearch/plugins/opensearch-knn/lib/libopensearchknn_common.so
Thanks for your help
Navneet
2
Please provide the below details:
- Version of Opensearch
- How you started the OpenSearch Service?
- Operating System on which you are trying to run the service?
1 Like
Navneet
4
So you also need to set 2 more variable for K-NN:
- KNN_LIB_DIR=$OPENSEARCH_HOME/plugins/opensearch-knn/lib
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$KNN_LIB_DIR
for k-NN to work.
If you have downloaded the tar.gz file, you can also start the opensearch cluster using
/opensearch-tar-install.sh file.
Documentation that can help: Tarball - OpenSearch documentation
I hope this helps.
1 Like
Thanks a lot. Working well now
1 Like
system
Closed
6
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.