Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ FROM centos:7
RUN yum install -y java-1.8.0-openjdk-devel make gcc-c++ wget
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk

ARG ACCUMULO_VERSION=2.0.0-alpha-1
ARG HADOOP_VERSION=3.1.1
ARG ZOOKEEPER_VERSION=3.4.13
ARG ACCUMULO_VERSION=2.0.0
ARG HADOOP_VERSION=3.2.1
ARG ZOOKEEPER_VERSION=3.6.0
ARG HADOOP_USER_NAME=accumulo
ARG ACCUMULO_FILE=
ARG HADOOP_FILE=
Expand Down Expand Up @@ -58,9 +58,9 @@ RUN set -eux; \
cp "/tmp/$HADOOP_FILE" "hadoop.tar.gz"; \
fi; \
if [ -z "$ZOOKEEPER_FILE" ]; then \
download "zookeeper.tar.gz" "zookeeper/zookeeper-$ZOOKEEPER_VERSION/zookeeper-$ZOOKEEPER_VERSION.tar.gz"; \
download "zookeeper.tar.gz" "zookeeper/zookeeper-$ZOOKEEPER_VERSION/apache-zookeeper-$ZOOKEEPER_VERSION-bin.tar.gz"; \
else \
cp "/tmp/$ZOOKEEPER_FILE" "zookeeper.tar.gz"; \
cp "/tmp/$ZOOKEEPER_FILE" "apache-zookeeper.tar.gz"; \
fi; \
if [ -z "$ACCUMULO_FILE" ]; then \
download "accumulo.tar.gz" "accumulo/$ACCUMULO_VERSION/accumulo-$ACCUMULO_VERSION-bin.tar.gz"; \
Expand All @@ -73,11 +73,14 @@ RUN tar xzf hadoop.tar.gz -C /tmp/
RUN tar xzf zookeeper.tar.gz -C /tmp/

RUN mv /tmp/hadoop-$HADOOP_VERSION /opt/hadoop
RUN mv /tmp/zookeeper-$ZOOKEEPER_VERSION /opt/zookeeper
RUN mv /tmp/apache-zookeeper-$ZOOKEEPER_VERSION-bin /opt/zookeeper
RUN mv /tmp/accumulo-$ACCUMULO_VERSION /opt/accumulo

RUN /opt/accumulo/bin/accumulo-util build-native

# The below line is required for Accumulo 2.0 to work with ZK 3.5 & above. This will not be needed for Accumulo 2.1
RUN sed -i 's/\${ZOOKEEPER_HOME}\/\*/\${ZOOKEEPER_HOME}\/\*\:\${ZOOKEEPER_HOME}\/lib\/\*/g' /opt/accumulo/conf/accumulo-env.sh

ADD ./accumulo.properties /opt/accumulo/conf
ADD ./log4j-service.properties /opt/accumulo/conf
ADD ./log4j-monitor.properties /opt/accumulo/conf
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Apache Accumulo Docker Image

**This is currently a work in progress that depends on unreleased features of Accumulo and will not be ready
for use until after Accumulo 2.0.0 is released.** Sometime after Accumulo 2.0.0 is released this project
will make its first release. Eventually, this will project will create a `apache/accumulo` image at DockerHub.
This is the first release of this project. Eventually, this project will create an `apache/accumulo` image at DockerHub.
Until then, you will need to build your own image. The master branch of this repo creates a Docker image for
Accumulo 2.0+. If you want to create a Docker image for Accumulo 1.9, there is a
[1.9 branch](https://github.com/apache/accumulo-docker/tree/1.9) for that.
Expand All @@ -18,9 +16,9 @@ While it is easier to pull from DockerHub, the image will default to the softwar

| Software | Version |
|-------------|---------------|
| [Accumulo] | 2.0.0-alpha-1 |
| [Hadoop] | 3.1.1 |
| [Zookeeper] | 3.4.13 |
| [Accumulo] | 2.0.0 |
| [Hadoop] | 3.2.1 |
| [ZooKeeper] | 3.6.0 |

If these versions do not match what is running on your cluster, you should consider building
your own image with matching versions. However, Accumulo must be 2.0.0+. Below are instructions for
Expand Down Expand Up @@ -140,4 +138,4 @@ of tablet servers that you want to run.

[Accumulo]: https://accumulo.apache.org/
[Hadoop]: https://hadoop.apache.org/
[Zookeeper]: https://zookeeper.apache.org/
[ZooKeeper]: https://zookeeper.apache.org/