Manually deploy Knox topology
The AM2CM tool does not migrate the Knox topologies automatically. You must manually deploy the knox topologies after migration..
- Take backup of knox topology file topology_1.xml under /tmp
- Migrate to the CDP Private Cloud Base cluster
-
To convert the Knox topology into the provider and descriptor file formats, run
the following command:
/usr/hdp/7.1.4.0-187/knox/bin/knoxcli.sh convert-topology
--path /tmp/topology_1.xml
--provider-name topology_1-provider.json
--descriptor-name topology_1-descriptor.json
This generates files in the /etc/knox/7.1.4.0-187/0/descriptors/topology_1-provider.json and /etc/knox/7.1.4.0-187/0/shared-providers/topology_1.json. - Copy the provider file from /etc/knox/7.1.4.0-187/0/descriptors/topology_1-provider.json to /var/lib/knox/gateway/conf/shared-providers
- Give permissions to the copied provider file chown knox:hadoop topology_1-provider.json
- Copy the descriptor file from /etc/knox/7.1.4.0-187/0/shared-providers/topology_1.json to /var/lib/knox/gateway/conf/descriptors
-
Give permissions to the copied descriptor file chown knox:hadoop
topology_1.json
This generates knox topology file with configured descriptor name as topology_1.xml under the /var/lib/knox/gateway/conf/topologies directory.