Hello All,
I am trying to get the opensearch-anomaly-detection working. But it is not showing under Opensearch Plugins.
However, when I list the installed plugins, I see it in the list:
# /usr/share/wazuh-indexer/bin/opensearch-plugin list
/usr/share/wazuh-indexer/bin/opensearch-env: line 89: cd: /usr/share/wazuh-indexer/config: No such file or directory
opensearch-alerting
opensearch-anomaly-detection
opensearch-asynchronous-search
opensearch-cross-cluster-replication
opensearch-index-management
opensearch-job-scheduler
opensearch-knn
opensearch-observability
opensearch-performance-analyzer
opensearch-reports-scheduler
opensearch-security
opensearch-sql
Tried reinstalling it, however it failed.
# /usr/share/wazuh-indexer/bin/opensearch-plugin install opensearch-anomaly-detection = 1.2.4
/usr/share/wazuh-indexer/bin/opensearch-env: line 89: cd: /usr/share/wazuh-indexer/config: No such file or directory
-> Installing opensearch-anomaly-detection
-> Failed installing opensearch-anomaly-detection
-> Rolling back opensearch-anomaly-detection
-> Rolled back opensearch-anomaly-detection
A tool for managing installed opensearch plugins
Non-option arguments:
command
Option Description
------ -----------
-E <KeyValuePair> Configure a setting
-h, --help Show help
-s, --silent Show minimal output
-v, --verbose Show verbose output
ERROR: Unknown plugin opensearch-anomaly-detection
# /usr/share/wazuh-indexer/bin/opensearch-plugin install
https://repo.pintexx.com/testing/community/x86_64/opensearch-anomaly-detection-plugin-1.2.4.0-1-x86_64.pkg.tar.zst.sig/usr/share/wazuh-indexer/bin/opensearch-env: line 89: cd: /usr/share/wazuh-indexer/config: No such file or directory
-> Installing
https://repo.pintexx.com/testing/community/x86_64/opensearch-anomaly-detection-plugin-1.2.4.0-1-x86_64.pkg.tar.zst.sig-> Downloading
https://repo.pintexx.com/testing/community/x86_64/opensearch-anomaly-detection-plugin-1.2.4.0-1-x86_64.pkg.tar.zst.sig[=================================================] 100%
-> Failed installing
https://repo.pintexx.com/testing/community/x86_64/opensearch-anomaly-detection-plugin-1.2.4.0-1-x86_64.pkg.tar.zst.sig-> Rolling back
https://repo.pintexx.com/testing/community/x86_64/opensearch-anomaly-detection-plugin-1.2.4.0-1-x86_64.pkg.tar.zst.sig-> Rolled back
https://repo.pintexx.com/testing/community/x86_64/opensearch-anomaly-detection-plugin-1.2.4.0-1-x86_64.pkg.tar.zst.sigException in thread "main" java.nio.file.NoSuchFileException: /usr/share/wazuh-indexer/plugins/.installing-13416911816619194048/plugin-descriptor.properties
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218)
at java.base/java.nio.file.Files.newByteChannel(Files.java:375)
at java.base/java.nio.file.Files.newByteChannel(Files.java:426)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
at java.base/java.nio.file.Files.newInputStream(Files.java:160)
at org.opensearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:229)
at org.opensearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:799)
at org.opensearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:858)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:263)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:237)
at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
at org.opensearch.cli.Command.main(Command.java:101)
at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)
Can anyone show me how to get opensearch-anomaly-detection working under Opensearch Plugins.