To keep the same metadata and user data when upgrading, use the directory settings and database settings in the cluster properties file of the version you are upgrading from for the base of the new cluster properties file.
Using the existing HDP cluster properties file, make the following changes:
For HDP 1.3 to HDP 2.1:
Change
JOBTRACKER_HOST
toRESOURCEMANAGER_HOST
(leave the definition the same).(Optional) Add a definition for
CLIENT_HOSTS
.(Optional) Add a definition for
KNOX_HOST
.(Optional) Add a definition for
STORM_NIMBUS
.(Optional) Add a definition for
STORM_SUPERVISORS
.(Optional) Add a definition for
FALCON_HOSTS
.Change
HA_NAMENODE_HOST
toNN_HA_STANDBY_NAMENODE_HOST
if you are upgrading a High Availability clusterAdd a definition for
DB_PORT
. (Default port for derby is1527.)(Required) Add a definition for
IS_TEZ
.(Required) Add a definition for
IS_PHOENIX
.
For upgrade from HDP 2.0 to HDP 2.1:
(Optional) Add a definition for
KNOX_HOST
.(Optional) Add a definition for
STORM_NIMBUS
.(Optional) Add a definition for
STORM_SUPERVISORS
.(Optional) Add a definition for
FALCON_HOSTS
.Add a definition for
DB_PORT
. (Default port for derby is1527.)(Required) Add a definition for
IS_TEZ
.(Required) Add a definition for
IS_PHOENIX
.For High Availability clusters, update the HA properties as follows:
Change
HA_NAMENODE_HOST
toNN_HA_STANDBY_NAMENODE_HOST
.Change
HA_JOURNALNODE_HOSTS
toNN_HA_JOURNALNODE_HOSTS
.Change
HA_CLUSTER_NAME
toNN_HA_CLUSTER_NAME
.Change
HA_JOURNALNODE_EDITS_DIR
toNN_HA_JOURNALNODE_EDITS_DIR
Save the new cluster.properties
file to use with the
installer.