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
I want to disable FS and URL snapshots in Elasticsearch 2.x. Essentially I do not want users of the cluster messing around with the filesystem. Users are allowed to configure S3 repositories only. Is there a way to do this today?
In general, it will be much more useful and powerful if plugins in 2.x are also allowed to override default modules as used to be the case in 1.x
I achieved this in 1.x by having a plugin do the following
But 2.x seems to disallow registering same module twice and similar code throws the following error
[2016-03-17 14:40:43,195][ERROR][bootstrap ] Exception
ElasticsearchException[failed to invoke onModule]; nested: InvocationTargetException; nested: IllegalArgumentException[Can't register the same [repository] more than once for [url]];
at org.elasticsearch.plugins.PluginsService.processModule(PluginsService.java:232)
at org.elasticsearch.plugins.PluginsService.processModules(PluginsService.java:217)
at org.elasticsearch.node.Node.(Node.java:198)
at org.elasticsearch.node.Node.(Node.java:128)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.elasticsearch.plugins.PluginsService.processModule(PluginsService.java:229)
... 7 more
Caused by: java.lang.IllegalArgumentException: Can't register the same [repository] more than once for [url]
at org.elasticsearch.common.util.ExtensionPoint$ClassMap.registerExtension(ExtensionPoint.java:104)
at org.elasticsearch.repositories.RepositoryTypesRegistry.registerRepository(RepositoryTypesRegistry.java:39)
at org.elasticsearch.repositories.RepositoriesModule.registerRepository(RepositoriesModule.java:48)
at org.elasticsearch.plugin.cloud.aws.CloudAwsPlugin.onModule(CloudAwsPlugin.java:113)
... 12 more
I want to disable FS and URL snapshots in Elasticsearch 2.x. Essentially I do not want users of the cluster messing around with the filesystem. Users are allowed to configure S3 repositories only. Is there a way to do this today?
In general, it will be much more useful and powerful if plugins in 2.x are also allowed to override default modules as used to be the case in 1.x
I achieved this in 1.x by having a plugin do the following
But 2.x seems to disallow registering same module twice and similar code throws the following error
Filing this feature request based on my question at https://discuss.elastic.co/t/how-to-disable-filesystem-url-snapshots-in-2-x/44776
The text was updated successfully, but these errors were encountered: