
Note An alternative way of using docker commit is to keep the hue.ini configuration file outside of the docker image and simply mount it inside when starting the container as shown in the Docker How-to.

Now from another terminal use docker ps to identify the Hue container id and commit its state to remember the configuration even after stopping it: docker ps Note As a bonus, feel free to also add a MySql interpreter pointing to the Hue database, it can queries itself with no issues: ]] If you don't have a running HiveServer2, check the development quickstart that demoes how to boot one quickly with (Docker too ):

Then, we add the following block to the and sections so that we can query the Apache Hive instance running in one server we have access to. Note An alternative way to boot a production ready Hue with its own MySQL database is to use the Docker compose. Host= # Use 127.0.0.1 and not localhost if on the same host Here we go with MySQL and fill-up the ] section with the credentials: Now let's open the configuration file: apt-get install -y vimįirst let's make sure that Hue is backed by a relational database supporting transactions like MySQL, PostgreSql or Oracle. This puts us into the /usr/share/hue home folder of the Hue installation. Let's pull and start the latest Hue container and open a shell inside it: docker run -it -p 8888:8888 gethue/hue:latest /bin/bash This one can be started or stopped or replicated multiple times depending on the load or high availability requirements.

Note If you are looking another warehouse than Hive, check out all the other connectors. In this tutorial we configure Hue to use an existing MySQL database and point to an Apache Hive data warehouse that we want to query.
