Public | Automated Build

Last pushed: a year ago
Short Description
Accumulo docker image with configured accumulo proxy
Full Description

Single Node Accumulo Instance On Docker

This work is based on and - Thanks :-)

If you are using boot2docker, then you might want to up the memory and storage space.

boot2docker init -m 8192 -s 32768

On Windows, the C: drive is mounted on the linux host as /c. Copy this folder onto your C: drive so you can cd /c/accumulo-docker

vm.swappiness and docker

The vm.swappiness system parameter has to be set in the docker host OS to be inherited by the Accumulo container.

If you are using boot2docker then boot2docker ssh to login to the host OS.

sudo sysctl -w vm.swappiness=0
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1

Check the value using:

sysctl vm.swappiness

Build the container image

docker build -t systems/accumulo .

Run the container

docker run --name accumulo -p 42424:42424 -i -t -P systems/accumulo /bin/bash

Start accumulo proxy


Start Zookeeper, YARN, HDFS and Accumulo


Stop Accumulo, HDFS, YARN and Zookeeper


See all exposed ports

docker port accumulo | sort -t / -n

In this line sample 50070/tcp ->, the internal port 50070 is mapped to 49161 on the host OS.

If you are using boot2docker, get the host OS IP using boot2docker ip

YARN http://docker-ip:exposed-8088
HDFS http://docker-ip:exposed-50070
ACCUMULO http://docker-ip:exposed-50095

Sample Accumulo session in the container

bash-4.1# accumulo shell -u root -p secret

Shell - Apache Accumulo Interactive Shell
- version: 1.5.2
- instance name: accumulo
- instance id: 57fdffe2-5a38-48dd-934f-5d2db507027d
- type 'help' for a list of available commands
root@accumulo> createtable mytable
root@accumulo mytable> tables
root@accumulo mytable> insert row1 colf colq value1
root@accumulo mytable> scan
row1 colf:colq []    value1
root@accumulo mytable> exit

Extra References

Docker Pull Command
Source Repository

Comments (0)