Execute Tensorflow model in elasticsearch rescore plugin

Hi Everyone,

I'm trying to execute a Tensorflow model. I'm running into the below security issues and unable to provide execute permission for JavaCpp. Is there way to execute TF2 models in Elasticsearch plugin.

{"type": "server", "timestamp": "2022-03-30T05:20:24,651Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "e6e8408b71d6", "message": "Warning: Could not access /tmp/elasticsearch-13006996324781882142/.javacpp-elasticsearch/cache: access denied (\"java.io.FilePermission\" \"/tmp/elasticsearch-13006996324781882142/.javacpp-elasticsearch/cache\" \"execute\")", "cluster.uuid": "Q6WYwECtS-Sgw1oiGw6b0Q", "node.id": "FuZEytaRTpuMi5H5l4MHmw"  }
{"type": "server", "timestamp": "2022-03-30T05:20:24,653Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "e6e8408b71d6", "message": "Warning: Could not access /usr/share/elasticsearch/.javacpp/cache: access denied (\"java.io.FilePermission\" \"/usr/share/elasticsearch/.javacpp/cache\" \"read\")", "cluster.uuid": "Q6WYwECtS-Sgw1oiGw6b0Q", "node.id": "FuZEytaRTpuMi5H5l4MHmw"  }
{"type": "server", "timestamp": "2022-03-30T05:20:24,653Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "e6e8408b71d6", "message": "Warning: Could not access /tmp/elasticsearch-13006996324781882142/.javacpp-elasticsearch/cache: access denied (\"java.io.FilePermission\" \"/tmp/elasticsearch-13006996324781882142/.javacpp-elasticsearch/cache\" \"execute\")", "cluster.uuid": "Q6WYwECtS-Sgw1oiGw6b0Q", "node.id": "FuZEytaRTpuMi5H5l4MHmw"  }
{"type": "server", "timestamp": "2022-03-30T05:20:24,661Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "e6e8408b71d6", "message": "Warning: Could not create an instance of SecurityManager: access denied (\"java.lang.RuntimePermission\" \"createSecurityManager\")", "cluster.uuid": "Q6WYwECtS-Sgw1oiGw6b0Q", "node.id": "FuZEytaRTpuMi5H5l4MHmw"  }
{"type": "server", "timestamp": "2022-03-30T05:20:24,663Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "e6e8408b71d6", "message": "Warning: Could not access /usr/share/elasticsearch/.javacpp/cache: access denied (\"java.io.FilePermission\" \"/usr/share/elasticsearch/.javacpp/cache\" \"read\")", "cluster.uuid": "Q6WYwECtS-Sgw1oiGw6b0Q", "node.id": "FuZEytaRTpuMi5H5l4MHmw"  }
{"type": "server", "timestamp": "2022-03-30T05:20:24,664Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "e6e8408b71d6", "message": "Warning: Could not access /tmp/elasticsearch-13006996324781882142/.javacpp-elasticsearch/cache: access denied (\"java.io.FilePermission\" \"/tmp/elasticsearch-13006996324781882142/.javacpp-elasticsearch/cache\" \"execute\")", "cluster.uuid": "Q6WYwECtS-Sgw1oiGw6b0Q", "node.id": "FuZEytaRTpuMi5H5l4MHmw"}

Thanks.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.