[ 
https://issues.apache.org/jira/browse/AMBARI-15919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gaurav Nagar updated AMBARI-15919:
----------------------------------
    Description: 
It is critical that we provide a way to migrate instance data and view data 
information between versions of views. We need to support the following use 
case:

- New version of view is instantiated. Since instance specific data will not be 
available to the new instance of the view (if the version has changed), there 
needs to be a way of migrating existing information over to the new view 
instance.
- The Ambari view framework needs to provide a facility to invoke call back 
handlers (of sorts) to allow the view itself to handle the migration from and 
older version to the current version.

An example...

After a view instance (X1) is created (say from XView 1.0.0), a view might use 
instance data and/or datastore data. When a new view is released (say from 
XView 2.0.0), an ambari admin will want to create a new instance (X2) and 
migrate the data from the existing instance (X1). Ambari should provide a 
mechanism to perform this migration.

1) The ambari admin creates new instance X2 in the admin interface.
2) The ambari admin can select to migrate data from an existing instance.
3) The ambari admin initiates the migration of instance and datastore. The 
ambari views framework starts the processing of instance + datastore data 
movement (copying) to the new X2 instance scope.
4) The framework should call into a hook in the view in case any changes are 
needed to the X1 info before they saved in the new X2 instance.

  was:Users will update Hive/Pig View jars multiple times during upgarde, they 
cannot lose any data. The view will need to implement specific data migration 
call back handler that the ambari view framework will invoke.


> Migrate instance specific data from one version to another.
> -----------------------------------------------------------
>
>                 Key: AMBARI-15919
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15919
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Gaurav Nagar
>            Assignee: Gaurav Nagar
>             Fix For: 2.4.0
>
>
> It is critical that we provide a way to migrate instance data and view data 
> information between versions of views. We need to support the following use 
> case:
> - New version of view is instantiated. Since instance specific data will not 
> be available to the new instance of the view (if the version has changed), 
> there needs to be a way of migrating existing information over to the new 
> view instance.
> - The Ambari view framework needs to provide a facility to invoke call back 
> handlers (of sorts) to allow the view itself to handle the migration from and 
> older version to the current version.
> An example...
> After a view instance (X1) is created (say from XView 1.0.0), a view might 
> use instance data and/or datastore data. When a new view is released (say 
> from XView 2.0.0), an ambari admin will want to create a new instance (X2) 
> and migrate the data from the existing instance (X1). Ambari should provide a 
> mechanism to perform this migration.
> 1) The ambari admin creates new instance X2 in the admin interface.
> 2) The ambari admin can select to migrate data from an existing instance.
> 3) The ambari admin initiates the migration of instance and datastore. The 
> ambari views framework starts the processing of instance + datastore data 
> movement (copying) to the new X2 instance scope.
> 4) The framework should call into a hook in the view in case any changes are 
> needed to the X1 info before they saved in the new X2 instance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to