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

Registering the HDP 2.4.3 Repo

After you have prepared your cluster for the upgrade, you need to register the HDP 2.4.3 repo. This requires you to perform the following steps:

  1. Update the install.properties file to migrate the database credentials properties and POLICYMGR_EXTERNAL-URL property from HDP 2.3. to HDP 2.4.3.

  2. Change ownership of /etc/ranger/admin/conf/ and /etc/ranger/usersync/conf/ to ranger:ranger:

    chown -R ranger:ranger /etc/ranger/admin/conf/
  3. Install the Ranger Admin component. Be sure to set the JAVA_HOME environment variable if it is not already set.

    cd /usr/hdp/current/ranger-admin/
    
    cp  ews/webapp/WEB-INF/classes/conf.dist/ranger-admin-site.xml
             ews/webapp/WEB-INF/classes/conf/
    
    cp  ews/webapp/WEB-INF/classes/conf.dist/ranger-admin-default-site.xml
            ews/webapp/WEB-INF/classes/conf/
    
    cp  ews/webapp/WEB-INF/classes/conf.dist/security-applicationContext.xml
            ews/webapp/WEB-INF/classes/conf/
    
    ./setup.sh
  4. This should successfully install the Ranger Admin component.

  5. Start the Ranger Admin component.

    service ranger-admin start
  6. You must now configure and setup the Ranger UserSync component by migrating the properties from the HDP 2.3 install.properties file (POLICY_MGR_URL, SYNC_SOURCE and LDAP/AD properties.

  7. Install the Ranger UserSync component. Be sure to set the JAVA_HOME component if it is not already set.

    cd /usr/hdp/current/ranger-usersync/
    
    ./setup.sh
  8. Start the Ranger UserSync component.

    service ranger-usersync start