You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to install a repo plugin opensearch-plugin install file:repository-s3-2.7.0.zip or opensearch-plugin install file:repository-azure-2.7.0.zip
You'll get an exception on installation:
Exception in thread "main" java.lang.NoClassDefFoundError: org/opensearch/core/xcontent/ToXContentFragment
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at org.opensearch.cli.CommandLoggingConfigurator.configureLoggingWithoutConfig(CommandLoggingConfigurator.java:54)
at org.opensearch.cli.Command.main(Command.java:98)
at org.opensearch.common.settings.KeyStoreCli.main(KeyStoreCli.java:56)
Caused by: java.lang.ClassNotFoundException: org.opensearch.core.xcontent.ToXContentFragment
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
Expected behavior
A clear and concise description of what you expected to happen.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
OS: [e.g. iOS]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Yes, this was built locally using opensearchstaging/ci-runner:ci-runner-centos7-opensearch-build-v2. I could also be doing something as well wrong. However, the flow worked fine up until this commit. Reverting to previous one fixes the issue.
I attempted to build OpenSearch and the 2 plugins from 2.x branch directly with Gradle command, and the native plugins can be installed properly, although I didn't use the docker image you mentioned.
Describe the bug
Looks like Refactor XContent base classes from xcontent to core library broke the installation of the repository plugins.
To Reproduce
Steps to reproduce the behavior:
opensearch-plugin install file:repository-s3-2.7.0.zip
oropensearch-plugin install file:repository-azure-2.7.0.zip
Expected behavior
A clear and concise description of what you expected to happen.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: