Command Line Upgrade
Also available as:
PDF
loading table of contents...

Configure and Start Apache Accumulo

[Note]Note

The su commands in this section use "accumulo" to represent the Accumulo Service user. If you are using another name for your Apache Accumulo Service user, you 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.5.3, Accumulo automatically changes the HDFS and ZooKeeper data stored on Accumulo. This change is not backward compatible, and HDP 2.1 does not run on this updated data.

After upgrading from HDP 2.1 to HDP-2.5.3, Accumulo automatically upgrades the internal metadata, notably the data in ZooKeeper, when the Accumulo Master for HDP-2.5.3 first starts. This change is not backward compatible and HDP 2.1 no longer runs 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.5.3, 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