Single Node Accumulo Instance On Docker
This work is based on https://github.com/medined/docker-accumulo - Thanks :-)
If you are using boot2docker, then you might want to up the memory and storage space.
boot2docker init -m 8192 -s 32768On 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
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=1Check the value using:
sysctl vm.swappinessdocker build -t mraad/accumulo .docker run --name accumulo -i -t -P mraad/accumulo /bin/bash/etc/start-all.sh/etc/stop-all.shdocker port accumulo | sort -t / -nIn this line sample 50070/tcp -> 0.0.0.0:49161, 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
| SERVICE | URL | 
|---|---|
| YARN | http://docker-ip:exposed-8088 | 
| HDFS | http://docker-ip:exposed-50070 | 
| ACCUMULO | http://docker-ip:exposed-50095 | 
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
!METADATA
mytable
trace
root@accumulo mytable> insert row1 colf colq value1
root@accumulo mytable> scan
row1 colf:colq []    value1
root@accumulo mytable> exit