Migrate Ambari View instance data
Migrating data from one view to another is useful when a new view version is released and you want to use data from the previous version in the newer version.
For example, consider a case to migrate from view
Migrating view data between instances is supported only for Hive, Pig and Tez views.
INSTANCE A(the source view instance) to view
INSTANCE B(the target view instance).
In this case, you run the following command:
curl -v -u admin:admin -X PUT -H "X-Requested-By:1" http://AMBARI_SERVER_HOST:8080/api/v1/views/VIEW_NAME/versions/TARGET_VIEW_VERSION/instances/INSTANCEB/migrate/SOURCE_VIEW_VERSION/INSTANCEA
The command values are as follows:
- AMBARI_SERVER_HOST is the Ambari Server host name or IP address.
VIEW_NAMEis the name of the view.
TARGET_VIEW_VERSIONis the version of the target view.
SOURCE_VIEW_VERSIONis the version of the source view.
For example, if you are migrating from version 1.0.0 to 1.0.1, your
SOURCE_VIEW_VERSIONis 1.0.0 and