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/confMake an Accumulo data directory:
su hdfshadoop fs -mkdir -p /apps/accumuloThe 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 hdfshadoop fs -chmod -R 700 /apps/accumuloChange ownership of the data directory to the Accumulo user and group.
su hdfshadoop fs -chown -R accumlo:accumulo /apps/accumuloThe 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/javaRemove the text prior to "export" and add the path to your JAVA_HOME. For example:
export JAVA_HOME=/usr/hadoop-jdk1.7.0_67If 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/zookeeperRemove the text prior to "export" and add the path to your ZOOKEEPER_HOME. For example:
export ZOOKEEPER_HOME=/usr/hdp/current/zookeeper-client/conf

