skip to Main Content

I am able to get a working instance of Dremio on Docker, but, I would like to persist the data on the container on my local.

I tried the approach mentioned in this post, and crafted my own version of the docker run query, but upon running the following:

docker run --rm -v "/home/ubuntu/dremio/data/lib:/var/lib/dremio" -v "/home/ubuntu/dremio/data/localFiles:/localFiles" -v "/home/ubuntu/dremio/data/:/opt/dremio/data" -p 9047:9047 -p 31010:31010 -p 45678:45678 dremio/dremio-oss

It shows the following error when run in non-detached mode:

Dremio is exiting. Failure while starting services.
java.io.IOException: path /opt/dremio/data is not writable.

Any help would be appreciated.

2

Answers


  1. Try running the command with sudo, probably you don’t have the privileges to execute this.

    Login or Signup to reply.
  2. Using the following Docker Compose file – docker-compose.yml – I was able to persist data from a Dremio container:

    version: '3'
    
    services:
      dremio:
        image: dremio/dremio-oss
        hostname: dremio
        volumes:
          - /absolute-path/dremio/data:/opt/dremio/data
          - /absolute-path/dremio/lib:/var/lib/dremio
          - /absolute-path/dremio/local:/localFiles
        ports:
          - "9047:9047"   # Web UI (HTTP)
          - "31010:31010" # ODBC/JDBC clients
          - "32010:32010" # Apache Arrow Flight clients
    

    I launched Dremio using the ‘docker-compose up’ command.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search