Skip to content

Commit

Permalink
Update due to changes in Accumulo 2.0.0-SNAPSHOT (#5)
Browse files Browse the repository at this point in the history
* Accumulo 2.0 requires Hadoop 3.x
* Use HADOOP_HOME rather than HADOOP_PREFIX for Hadoop 3.x
* Converted accumulo-site.xml to accumulo.properties
  • Loading branch information
mikewalch committed Sep 11, 2018
1 parent c8cdc21 commit 009edf9
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 63 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Expand Up @@ -22,9 +22,9 @@ ARG HADOOP_VERSION
ARG HADOOP_USER_NAME
ARG ZOOKEEPER_VERSION

ENV HADOOP_VERSION ${HADOOP_VERSION:-2.7.4}
ENV HADOOP_VERSION ${HADOOP_VERSION:-3.1.1}
ENV HADOOP_USER_NAME ${HADOOP_USER_NAME:-accumulo}
ENV ZOOKEEPER_VERSION ${ZOOKEEPER_VERSION:-3.4.9}
ENV ZOOKEEPER_VERSION ${ZOOKEEPER_VERSION:-3.4.13}
ENV ACCUMULO_VERSION 2.0.0-SNAPSHOT

ENV APACHE_DIST_URLS \
Expand Down Expand Up @@ -66,11 +66,11 @@ RUN mv /tmp/accumulo-$ACCUMULO_VERSION /opt/accumulo

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

ADD ./accumulo-site.xml /opt/accumulo/conf
ADD ./accumulo.properties /opt/accumulo/conf
ADD ./log4j-service.properties /opt/accumulo/conf
ADD ./log4j-monitor.properties /opt/accumulo/conf

ENV HADOOP_PREFIX /opt/hadoop
ENV HADOOP_HOME /opt/hadoop
ENV ZOOKEEPER_HOME /opt/zookeeper
ENV ACCUMULO_HOME /opt/accumulo
ENV PATH "$PATH:$ACCUMULO_HOME/bin"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -62,14 +62,14 @@ docker run accumulo classpath

# Run Accumulo using Docker

Before you can run Accumulo services in Docker, you will need to install Accumulo, configure `accumulo-site.xml`,
and initialize your instance with `--upload-accumulo-site`. This will upload configuration to Zookeeper and limit
Before you can run Accumulo services in Docker, you will need to install Accumulo, configure `accumulo.properties`,
and initialize your instance with `--upload-accumulo-props`. This will upload configuration to Zookeeper and limit
how much configuration needs to be set on the command line.

```bash
$ accumulo init --upload-accumulo-site
$ accumulo init --upload-accumulo-props
...
Uploading properties in accumulo-site.xml to Zookeeper. Properties that cannot be set in Zookeeper will be skipped:
Uploading properties in accumulo.properties to Zookeeper. Properties that cannot be set in Zookeeper will be skipped:
Skipped - instance.secret = <hidden>
Skipped - instance.volumes = hdfs://localhost:8020/accumulo
Skipped - instance.zookeeper.host = localhost:2181
Expand Down
55 changes: 0 additions & 55 deletions accumulo-site.xml

This file was deleted.

39 changes: 39 additions & 0 deletions accumulo.properties
@@ -0,0 +1,39 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This is the main configuration file for Apache Accumulo. Available configuration properties can be
# found in the Accumulo documentation on the Accumulo project website (https://accumulo.apache.org/)
# Link for Accumulo 2.0: https://accumulo.apache.org/docs/2.0/administration/properties

## Sets location in HDFS where Accumulo will store data
instance.volumes=hdfs://localhost:8020/accumulo

## Sets location of Zookeepers
instance.zookeeper.host=localhost:2181

## Change secret before initialization. All Accumulo servers must have same secret
instance.secret=DEFAULT

## Set to false if 'accumulo-util build-native' fails
tserver.memory.maps.native.enabled=true

## Trace user
trace.user=root

## Trace password
trace.password=secret

## Search for available port if default is unavailable
tserver.port.search=true

0 comments on commit 009edf9

Please sign in to comment.