I am writing an elasticsearch plugin which relies on reading data from a file on disk. When I try to access this file in my code, I get the following exception.
I had a similar issue in my elasticsearch RestHandler plugin and I was reading the file content from some url say "http://google.com/content.json" I resolved it via below approach -
`
String url = "http://google.com/content.json";
URL fileUrl = new URL(url);
InputStream is = fileUrl.openStream();
`