Using @dadoonet's article on how to make an ingest plugin in Elasticsearch 5.6, I want to be able to use Duke in a ES plugin.
Basically, I integrated Duke-core to the ingest plugin I am programming. The main goal is to link external data with the indexed ES data.
To link the data, I import a portion of the ES data using an ES RestClient then I link it with the new data.
When I am working with my IDE (IntelliJ) and doing tests with the ESIntegTestCase class, I have no problems but when I install it on a ES server, this error appears:
[2017-12-22T15:30:20,912][INFO ][o.e.c.r.a.AllocationService] [HO5QnH2] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[miniduke], [.kibana]] ...]). [2017-12-22T15:30:30,655][INFO ][o.e.c.m.MetaDataDeleteIndexService] [HO5QnH2] [miniduke/AtTI84rKQ22aCVPwo67vlQ] deleting index [2017-12-22T15:30:48,313][ERROR][MiniDuke Processor ] java.security.AccessControlException: access denied ("java.net.NetPermission" "getProxySelector") [2017-12-22T15:30:48,343][INFO ][o.e.c.m.MetaDataCreateIndexService] [HO5QnH2] [miniduke] creating index, cause [auto(bulk api)], templates , shards /, mappings  [2017-12-22T15:30:48,448][INFO ][o.e.c.m.MetaDataMappingService] [HO5QnH2] [miniduke/74bgexIoR4q8d4UT7x9xhQ] create_mapping [hello]
My first thought is that I can't access data from a RestClient because it's sort of an "external connection".
What do you think ?
Is there another way of accessing ES's data within a plugin ?