# Execute Tensorflow model in elasticsearch rescore plugin

**URL:** <https://discuss.elastic.co/t/execute-tensorflow-model-in-elasticsearch-rescore-plugin/303545>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [April 28, 2022, 5:17pm UTC](https://discuss.elastic.co/t/execute-tensorflow-model-in-elasticsearch-rescore-plugin/303545 "2022-04-28T17:17:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwin91kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashwin91kumar/32/98900_2.png) [@ashwin91kumar](https://discuss.elastic.co/u/ashwin91kumar)\
**Post date:** [April 28, 2022, 5:17pm UTC](https://discuss.elastic.co/t/execute-tensorflow-model-in-elasticsearch-rescore-plugin/303545/1 "2022-04-28T17:17:39Z")

</div>

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.

```auto
{"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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 26, 2022, 5:18pm UTC](https://discuss.elastic.co/t/execute-tensorflow-model-in-elasticsearch-rescore-plugin/303545/2 "2022-05-26T17:18:27Z")

</div>

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