Accumulo provides example configurations that you can modify. Copy all files from one of the examples folders in /etc/accumulo/conf/examples to /etc/accumulo/conf.
For example, you would use the following command to copy all files in the /etc/accumulo/conf/examples/512MB/standalone folder to the /etc/accumulo/conf folder:
cp /etc/accumulo/conf/examples/512MB/standalone/* /etc/accumulo/conf
Make an Accumulo data directory:
su hdfs
hadoop fs -mkdir -p /apps/accumulo
The example configuration files include an accumulo-site.xml file. Add the following property to this file to reference the Accumulo data directory:
<property> <name>instance.volumes</name> <value>hdfs://namenode:port/apps/accumulo</value> </property>
For example:
<property> <name>instance.volumes</name> <value>hdfs://node-1.example.com:8020/apps/accumulo</value> </property>
Change permissions to restrict access to the data directory to the accumulo user:
su hdfs
hadoop fs -chmod -R 700 /apps/accumulo
Change ownership of the data directory to the Accumulo user and group.
su hdfs
hadoop fs -chown -R accumlo:accumulo /apps/accumulo
The example configuration files also include an accumulo-env.xml file.
If JAVA_HOME is not defined in the environment, you should specify it by editing the following line of code in the accumulo-env.xml file:
test -z "$JAVA_HOME" && export JAVA_HOME=/path/to/java
Remove the text prior to "export" and add the path to your JAVA_HOME. For example:
export JAVA_HOME=/usr/hadoop-jdk1.7.0_67
If ZOOKEEPER_HOME is not defined in the environment, you should specify it by editing the following line of code in the accumulo-env.xml file:
test -z "$ZOOKEEPER_HOME" && export ZOOKEEPER_HOME=/path/to/zookeeper
Remove the text prior to "export" and add the path to your ZOOKEEPER_HOME. For example:
export ZOOKEEPER_HOME=/usr/hdp/current/zookeeper-client/conf