title: Initialize Cloudera Hive Docker Container With Data
body: <p>I am running the Cloudera suite in a Docker Container using the image described here: <a href="https://hub.docker.com/r/cloudera/quickstart/" rel="nofollow noreferrer">https://hub.docker.com/r/cloudera/quickstart/</a></p>
  
  <p>I have the following configuration:</p>
  
  <p><strong>Dockerfile</strong></p>
  
  <pre><code>FROM cloudera/quickstart:latest
  </code></pre>
  
  <p><strong>Docker Compose file</strong></p>
  
  <pre><code>version: '3.1'
  services:
  
    db-hive:
      container_name: mobydq-test-db-hive
      image: mobydq-test-db-hive
      restart: always
      build:
        context: .
        dockerfile: ./db-hive/Dockerfile
      expose:
        - 10000
      networks:
        - default
      hostname: quickstart.cloudera
      privileged: true
      tty: true
      command: ["/usr/bin/docker-quickstart"]
  
  networks:
    default:
      external:
        name: mobydq-network
  </code></pre>
  
  <p>When the container start, I would like it creates automatically a new database, a table and populates it with data. What would be the best way to do that?</p>