Configure and Start Apache Accumulo
Before you can upgrade Apache Accumulo, you must have first upgraded your HDP components to the latest version (in this case, 2.3.6). This section assumes that you have already upgraded your components for HDP 2.3.6. If you have not already completed these steps, return to Getting Ready to Upgrade and Upgrade 2.1 Components for instructions on how to upgrade your HDP components to 2.3.6.
Note | |
---|---|
The |
Upon upgrade from HDP 2.1 to HDP-2.3.6, Accumulo automatically changes the HDFS and ZooKeeper data stored on Accumulo. This change is not backward compatible, and HDP 2.1 will not run on this updated data.
After upgrading from HDP 2.1 to HDP-2.3.6, Accumulo automatically upgrades the internal metadata, notably the data in ZooKeeper, when the Accumulo Master for HDP-2.3.6 first starts. This change is not backward compatible and HDP 2.1 will no longer run against the data.
Prior to performing the following steps, you need to initialize Accumulo. See Initialization.
You must replace your configuration after upgrading. Copy
/etc/accumulo/conf
from the template to the conf directory in Accumulo hosts.In HDP-2.3.6, the instance.dfs.dir and instance.dfs.uri properties are deprecated with the instance.volumes property. If it does not already exist, add the instance.volumes property to the accumulo-site.xml file. Do not remove the instance.dfs.dir and instance.dfs.uri properties. You can extrapolate the value for the instance.volumes property from the instance.dfs.dir and instance.dfs.uri properties.
For example:
<property> <name>instance.dfs.dir</name> <value>/accumulo</value> </property> <property> <name>instance.dfs.uri</name> <value>hdfs://my_namenode:8020</value> </property> <property> <name>instance.volumes</name> <value>hdfs://my_namenode:8020/accumulo</value> </property>
Start the services:
su - accumulo -c "/usr/hdp/current/accumulo-master/bin/start-server.sh `hostname` master" su - accumulo -c "/usr/hdp/current/accumulo-master/bin/start-server.sh `hostname` tserver" su - accumulo -c "/usr/hdp/current/accumulo-master/bin/start-server.sh `hostname` gc" su - accumulo -c "/usr/hdp/current/accumulo-master/bin/start-server.sh `hostname` tracer" su - accumulo -c "/usr/hdp/current/accumulo-master/bin/start-server.sh `hostname` monitor"
Check that the processes are running
ps -ef | grep accumulo
or visit http://<hostname>:50095 in your browser