Public Repository

Last pushed: a year ago
Short Description
Installation of Apache HAWQ and Apache Hadoop in standalone mode
Full Description

Check if the image has been loaded
[ root@host ~]$ docker images

Start a docker container
[ root@host ~]$ docker run --privileged -d -ti -e "container=docker" -v /sys/fs/cgroup:/sys/fs/cgroup <image-id> /usr/sbin/init

Check if the container has been loaded
[ root@host ~]$ docker ps -a

Start an interactive shell
[ root@host ~]$ docker exec -it <container-id> bash

NOW THIS WILL OPEN THE SHELL OF THE DOCKER CONTAINER
Emulate bigdata user
[ root@dockerhost ~]$ su bigdata

Start HDFS
[ bigdata@dockerhost ~]$ start-dfs.sh

Go to the Hawq Directory
[ bigdata@dockerhost ~]$ cd /home/bigdata/hawq/hawq-2.0.0/

Source the greenplum_path.sh file
[ bigdata@dockerhost ~]$ source greenplum_path.sh

Start the HAWQ Cluster
[ bigdata@dockerhost ~]$ hawq start cluster

Test the hawq Shell
[ bigdata@dockerhost ~]$ psql -d postgres

This should open a shell as follows:

psql (8.2.15)
Type "help" for help.

postgres=#

Docker Pull Command
Owner
akshays