Upgrading HDP Manually
Also available as:
PDF
loading table of contents...

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.4.0). This section assumes that you have already upgraded your components for HDP 2.4.0. 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.4.0.

[Note]Note

The su commands in this section use "accumulo" to represent the Accumulo Service user. If you are using another name for your Accumulo Service user, you will need to substitute your Accumulo Service user name for "accumulo" in each of the su commands.

Upon upgrade from HDP 2.1 to HDP-2.4.0, 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.4.0, Accumulo automatically upgrades the internal metadata, notably the data in ZooKeeper, when the Accumulo Master for HDP-2.4.0 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.

  1. You must replace your configuration after upgrading. Copy /etc/accumulo/conf from the template to the conf directory in Accumulo hosts.

  2. In HDP-2.4.0, 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>
  3. 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"
  4. Check that the processes are running

    ps -ef | grep accumulo

    or visit http://<hostname>:50095 in your browser