HUB
Sign inSign up
accumulo-proxy logo

systems/accumulo-proxy

By systems

•Updated over 6 years ago

Accumulo docker image with configured accumulo proxy

Image
0

2.0K

systems/accumulo-proxy repository overview

⁠Single Node Accumulo⁠ Instance On Docker

This work is based on https://github.com/medined/docker-accumulo⁠ and https://github.com/mraad/accumulo-docker⁠ - 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
/etc/start-proxy.sh
⁠Start Zookeeper, YARN, HDFS and Accumulo
/etc/start-all.sh
⁠Stop Accumulo, HDFS, YARN and Zookeeper
/etc/stop-all.sh
⁠See all exposed ports
docker port accumulo | sort -t / -n

In 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

⁠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
!METADATA
mytable
trace
root@accumulo mytable> insert row1 colf colq value1
root@accumulo mytable> scan
row1 colf:colq []    value1
root@accumulo mytable> exit
⁠Extra References

Tag summary

Content type

Image

Digest

Size

823.9 MB

Last updated

over 6 years ago

docker pull systems/accumulo-proxy