I tried to install additional plugins from command prompt, and think OpenSearch did not well on plugin installation. How would you guys think of? Since i can’t install any plugins to OpenSearch.
Please see the end of the tutorial @amitai did showing install/uninstall procedures.
Taking the Leap: My First Steps in OpenSearch Plugins | Logz.io
It works for sure on OpenSearch.
thank you for showing the blog
i did read and know that it needs when you want to build the plugin as well
for those existing plugin like “repository-s3” that i want to install but always has error
I suggest opening an issue with the details of your problem in Github and it will be answered. You haven’t given any information aside from “has error” which is not very helpful in debugging your problem.
I opened it 2 days ago:
https://github.com/opensearch-project/OpenSearch/issues/951
Can you please have a look at it ?
2 Likes
Here is the doc we put in to help with instructions on installing…
## Installing Plugins
- [Installing Plugins](#installing-plugins)
- [Installing OpenSearch Plugins](#installing-opensearch-plugins)
- [Installing OpenSearch Dashboards Plugins](#installing-opensearch-dashboards-plugins)
### Installing OpenSearch Plugins
Assemble, extract and run OpenSearch `1.0.0` using [Building OpenSearch package](https://github.com/opensearch-project/OpenSearch/blob/main/TESTING.md#creating-packages).
_Example_: For Linux platform.
```
~/ > git clone https://github.com/opensearch-project/OpenSearch.git
~/OpenSearch (main)> git checkout 1.0.0
~/OpenSearch (main)> ./gradlew :distribution:archives:linux-tar:assemble -Dbuild.version_qualifier=beta1 -Dbuild.snapshot=false
~/OpenSearch (main)> tar vfxz distribution/archives/linux-tar/build/distributions/opensearch-1.0.0-linux-x64.tar.gz
~/OpenSearch (main)> cd opensearch-1.0.0
~/OpenSearch/opensearch-1.0.0 (main)> ./bin/opensearch
```
This file has been truncated. show original
But for this problem, seems like the s3 plugin is not independently released which is why its failing to download the artifact.
Hi dear team, I have the same issue while I want to install discovery-gce
Should I use the procedure here : opensearch-plugins/INSTALLING.md at main · opensearch-project/opensearch-plugins · GitHub
Isn’t there an easier way to install plugins as I want to do it automatically in my code?
e.g.
/etc/opensearch/bin/opensearch-plugin install --batch discovery-gce
@maziar110 the core plugins are do not have hosted artifacts. Which is why you cannot install them seamlessly today. Team is working on it:
opened 05:28PM - 12 Jul 21 UTC
closed 08:58PM - 05 Oct 21 UTC
enhancement
v1.1.0
**Is your feature request related to a problem? Please describe.**
Users are fi… nding it hard to install the native plugins as they are not readily available to download when running sh opensearch-plugin install command
**Describe the solution you'd like**
All the internal plugins under /OpenSearch/tree/main/plugins are pre-compiled and hosted on https://artifacts.opensearch.org/releases/plugins/* directory
**Describe alternatives you've considered**
Manually building the plugins on local and making changes to point the install script to use the local version
https://github.com/opensearch-project/OpenSearch/issues/951#issuecomment-878482124
**Reference:**
https://github.com/opensearch-project/OpenSearch/issues/951
For now you can build the plugin from source and install it.
opened 08:06PM - 10 Jul 21 UTC
closed 06:51PM - 13 Jul 21 UTC
bug
Build Libraries & Interfaces
i am having the issue to install repository-s3 plugin in OpenSearch Node with th… e following error:
[opensearch@77afa25bb073 bin]$ sh opensearch-plugin install repository-s3
-> Installing repository-s3
-> Downloading repository-s3 from opensearch
-> Failed installing repository-s3
-> Rolling back repository-s3
-> Rolled back repository-s3
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.opensearch.org/releases/plugins/repository-s3/1.0.0/repository-s3-1.0.0-rc1.zip
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1932)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1528)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.opensearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:438)
at org.opensearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:515)
at org.opensearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:306)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:260)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:237)
at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:99)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
at org.opensearch.cli.Command.main(Command.java:103)
at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)
Anyone has any idea what can i do?
opened 08:06PM - 10 Jul 21 UTC
closed 06:51PM - 13 Jul 21 UTC
bug
Build Libraries & Interfaces
i am having the issue to install repository-s3 plugin in OpenSearch Node with th… e following error:
[opensearch@77afa25bb073 bin]$ sh opensearch-plugin install repository-s3
-> Installing repository-s3
-> Downloading repository-s3 from opensearch
-> Failed installing repository-s3
-> Rolling back repository-s3
-> Rolled back repository-s3
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.opensearch.org/releases/plugins/repository-s3/1.0.0/repository-s3-1.0.0-rc1.zip
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1932)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1528)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.opensearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:438)
at org.opensearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:515)
at org.opensearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:306)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:260)
at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:237)
at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:99)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
at org.opensearch.cli.Command.main(Command.java:103)
at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)
Anyone has any idea what can i do?
1 Like
amitai
October 3, 2021, 9:09am
9
(Just posting for those of you who still want to use this before version 1.1)
If you wish to do this in a docker you can use this Dockerfile:
FROM opensearchproject/opensearch:1.0.0
USER root
ADD https://artifacts.opensearch.org/releases/plugins/repository-s3/1.0.0/repository-s3-1.0.0.zip /usr
RUN chown -R opensearch:opensearch /usr/repository-s3-1.0.0.zip
USER opensearch:opensearch
RUN /usr/share/opensearch/bin/opensearch-plugin install --batch file:///usr/repository-s3-1.0.0.zip
Then run
docker build --tag=opensearch-with-s3-plugin .
And of course, use opensearch-with-s3-plugin
in your docker-compose.yml
.
hajdi
November 2, 2021, 10:07pm
10
Issue is → This repository is private and we cannot access it:
HTTP request sent, awaiting response… 403 Forbidden
If you want customers to use this repository you have to make it public lol…
amitai
November 3, 2021, 10:56am
11
Hi @hajdi !
I am not an AWS employee, I accessed this artifact without any issues.
However, this is an outdated topic - you may use OpenSearch v1.1.0 and s3 plugin should work fine without the workaround
1 Like
dblock
November 8, 2021, 1:03pm
12