----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/65790/#review198585 -----------------------------------------------------------
- update pom.xml to enable build of this utility from the root - this utility deals with only export; consider naming the utilty something like 'migration-export'. tools/atlas-migration-utility/src/main/java/org/apache/atlas/migration/EmptyNotification.java Lines 29 (patched) <https://reviews.apache.org/r/65790/#comment278789> EmptyNotification ==> NoOpNotification tools/atlas-migration-utility/src/main/java/org/apache/atlas/migration/EmptyNotificationChangeListener.java Lines 31 (patched) <https://reviews.apache.org/r/65790/#comment278790> EmptyNotificationChangeListener ==> NoOpNotificationChangeListener tools/atlas-migration-utility/src/main/java/org/apache/atlas/migration/MigrationApp.java Lines 23 (patched) <https://reviews.apache.org/r/65790/#comment278791> If this tool only handles export, consider folding "MigrationApp" into "Exporter" i.e. move the main() method to Exporter. tools/atlas-migration-utility/src/main/resources/export-request.json Lines 1 (patched) <https://reviews.apache.org/r/65790/#comment278792> contents of "export-request.json" and "migration-export-request.json" are the same. Consider removing one of these files. - Madhan Neethiraj On March 1, 2018, 11:09 p.m., Ashutosh Mestry wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/65790/ > ----------------------------------------------------------- > > (Updated March 1, 2018, 11:09 p.m.) > > > Review request for atlas, Apoorv Naik, Madhan Neethiraj, and Ruchi Solani. > > > Bugs: ATLAS-2461 > https://issues.apache.org/jira/browse/ATLAS-2461 > > > Repository: atlas > > > Description > ------- > > **Background** > The data migration utility allows for exporting data from an Atlas instance > without the server running. This is important as it will prevent Atlas from > processing any requests. > > **Approach** > The migration is a new utility that will perform export of data using a > pre-defined export request file. > > The approach used by this application: > - Create an application context (_migrationContext.xml_). This context, > prevents instantiation of number of classes, most notably _webapp_, > _notifications_, _listeners_. > - Create _ImportService_ using Spring's framework classes. > > Here are the pieces: > - _MigrationApp_: Contains _main_. It is the entry point for the app. > - _Exporter_: Contains plumbing needed to use the new _migrationContext.xml_ > and create _ApplicationContext_ for use. > - Dengenerate classes _EmptyNotification_, _EmptyNotificationChangeListener_. > These are necessary to launch the application in a way that no notifications > are sent out. > - _atlas_migration.py_ Creates environment for the app to execute. It > launches the application. > - _migration-export-request.json_ This can be modified for environments that > do not have latest improvements to _Export_. > - _README_: Instructions on usage. > > **Build** > The project maven's assembly building plugin. The build will create a ZIP > file with the necessary files. > > _mvn install package_ generates a ZIP file in _target_ directory. > > **Usage (from README)** > - Use Ambari to turn shutdown Atlas. > - Unzip contents of the ZIP to a directory on the server using: 'unzip > atlas-migration-kit.zip' > - cd atlas-migration-kit > - Run 'python atlas_migration.py'. Use 'python atlas_migration.py > <path-file.zip>' to export to a specific file. > - To watch the progress: 'tail -f /var/log/atlas/application.log'. > > > Diffs > ----- > > > notification/src/test/java/org/apache/atlas/notification/AbstractNotificationTest.java > 655252cb > > repository/src/main/java/org/apache/atlas/repository/userprofile/UserProfileService.java > a428b92e > tools/atlas-migration-utility/pom.xml PRE-CREATION > tools/atlas-migration-utility/src/assembly/bin.xml PRE-CREATION > > tools/atlas-migration-utility/src/main/java/org/apache/atlas/migration/EmptyNotification.java > PRE-CREATION > > tools/atlas-migration-utility/src/main/java/org/apache/atlas/migration/EmptyNotificationChangeListener.java > PRE-CREATION > > tools/atlas-migration-utility/src/main/java/org/apache/atlas/migration/Exporter.java > PRE-CREATION > > tools/atlas-migration-utility/src/main/java/org/apache/atlas/migration/MigrationApp.java > PRE-CREATION > tools/atlas-migration-utility/src/main/resources/README PRE-CREATION > tools/atlas-migration-utility/src/main/resources/atlas_migration.py > PRE-CREATION > tools/atlas-migration-utility/src/main/resources/export-request.json > PRE-CREATION > > tools/atlas-migration-utility/src/main/resources/migration-export-request.json > PRE-CREATION > tools/atlas-migration-utility/src/main/resources/migrationContext.xml > PRE-CREATION > > > Diff: https://reviews.apache.org/r/65790/diff/3/ > > > Testing > ------- > > **Unit tests** > None. > > **Functional tests** > Exports from existing clusters. > > > File Attachments > ---------------- > > Migration Utility > > https://reviews.apache.org/media/uploaded/files/2018/02/24/e8090ed0-13b6-4253-a59c-d3f2098943af__atlas-migration-kit-0.8.3-SNAPSHOT-bin.zip > > > Thanks, > > Ashutosh Mestry > >