You can upgrade from Impala 1.4.1 to Impala 2.2.0 on MapR. Version 2.2.0 of Impala for MapR introduces some new features.
Before you upgrade, verify that the system you upgrade on meets the prerequisites listed in the section Before You Begin and then complete the steps listed in the section Upgrading to Impala 2.2.0.
Before You Begin
Impala 2.2.0 for MapR has the following system requirements:
- MapR version 5.0.0
- Hive 1.2
- HBase 98.x.
- RedHat or CentOS version 6.x/7
If you want to upgrade to Impala 2.2.0 and you are currently running Impala 1.4.1 on MapR version 4.1.0 (or earlier) with Hive 0.13, you must complete the following steps in the order specified before you begin the upgrade process:
Upgrade the MapR core package on all nodes to version 5.0.0. For upgrade information, see Upgrading With the MapR Installer.
- Upgrade to Hive 1.2 and HBase 98.x. For upgrade information, see Upgrading Hive and Upgrading HBase.
- Verify that your system meets the required prerequisites. See Installing Impala for a list of prerequisites.
If your system meets all of the requirements, continue to the next section, Upgrading to Impala 2.2.0.
Upgrading to Impala 2.2.0.
To upgrade to the current version of Impala, complete the following steps:
Step 1: Stop Impala Services
Complete the following steps to stop the Impala service, Statestore and Catalog instances:
Run the following command to stop the Impala services on each Impala node:
Run the following command to stop Impala the Statestore instances:
Run the following command to stop the Impala Catalog instances:
Step 2: Upgrade Impala
Complete the following steps to upgrade Impala:
mapr-impalapackage on all Impala nodes in the cluster:
/opt/mapr/impala/impala-<version>/conf/env.sh, complete the following steps:
Verify that the Statestore address is set to the address where you plan to run the Statestore service.
Change the Catalog service address to the address where you plan to run the Catalog service.
Refer to Additional Impala Configuration Options for a list of other options that you can modify in
hive-site.xmlhas the following property configured on all nodes:
To upgrade the statestore service, issue the following command:
Install the catalog service using the following command:
It is recommended (not required) that you install the catalog service on the same node as the statestore service.
To upgrade the impala server, issue the following command:
configure.shto refresh the node configuration.
Step 3: Start Impala Services
Complete the following steps to start the Impala service, Statestore and Catalog instances:
Run the following command to start the Impala Statestore service on the designated host in the cluster:
Run the following command to start the Catalog service on the designated host in the cluster:
Issue the following command to start the Impala service on each Impala node:
Check the Impala log files for errors if the services do not start successfully. You can locate log files in the following Impala installation directory on each node: