crate-mesos-framework icon indicating copy to clipboard operation
crate-mesos-framework copied to clipboard

Running on Mesosphere DC/OS with persistent storage

Open distributorofpain opened this issue 7 years ago • 3 comments

I have a cluster running 1.9.0 and i was trying to get cratedb running but i need to use persistent storage. When running the container pointing to local storage inside the container path, i get an error:

Caused by: java.nio.file.AccessDeniedException: /data/nodes/0

Container Configuration:

 "container": {
    "type": "DOCKER",
    "volumes": [
      {
        "containerPath": "/data/nodes",
        "hostPath": "cratem1",
        "mode": "RW"
      },
      {
        "containerPath": "cratem1",
        "persistent": {
          "size": 10000
        },
        "mode": "RW"
      }

Any ideas on how to get this to work? Should this be done a different way? Simply trying to use the local storage on each agent server which is available to every service by default ( at least thats what i understand that storage to be ).

distributorofpain avatar Jan 17 '18 16:01 distributorofpain

hi @distributorofpain, as stated in the readme this project is unmaintained at the moment and we don't have the know-how in house to work on this. from a cratedb perspective all we know is that cratedb is not able to write to the provided path. there need to be a dedicated data path for crate on every agent host and it needs to writeable by the user that is running the crate container in mesosphere. if you find a solution please let us know, as this could also help other users.

joemoe avatar Jan 19 '18 10:01 joemoe

Looks like this is not a CrateDB problem but a DC/OS configuration issue. The supplied path is not writable. Could you supply the full stack-trace for the AccessDeniedException?

mxm avatar Jan 30 '18 18:01 mxm

https://github.com/crate/docker-crate/issues/101

chaudum avatar Jan 30 '18 19:01 chaudum