2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# No Code Upgrade (In-Place Migration Guide)
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Summary of changes
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								With the No Code metadata initiative, we've introduced various major changes:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								1.  New Ebean Aspect table (metadata_aspect_v2) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								2.  New Elastic Indices (*entityName*index_v2) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								3.  New edge triples. (Remove fully qualified classpaths from nodes &  edges) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								4.  Dynamic DataPlatform entities (no more hardcoded DataPlatformInfo.json) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								5.  Dynamic Browse Paths (no more hardcoded browse path creation logic) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								6.  Addition of Entity Key aspects, dropped requirement for strongly-typed Urns. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								7.  Addition of @Entity , @Aspect , @Searchable , @Relationship  annotations to existing models. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Because of these changes, it is required that your persistence layer be migrated after the NoCode containers have been
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								deployed.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								For more information about the No Code Update, please see [no-code-modeling ](./no-code-modeling.md ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Migration strategy
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								We are merging these breaking changes into the main branch upfront because we feel they are fundamental to subsequent
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								changes, providing a more solid foundation upon which exciting new features will be built upon. We will continue to
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								offer limited support for previous verions of DataHub.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This approach means that companies who actively deploy the latest version of DataHub will need to perform an upgrade to
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								continue operating DataHub smoothly.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Upgrade Steps
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### Step 1: Pull & deploy latest container images
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								It is important that the following containers are pulled and deployed simultaneously:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  datahub-frontend-react 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  datahub-gms 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  datahub-mae-consumer 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  datahub-mce-consumer 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#### Docker Compose Deployments
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								From the `docker`  directory:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```aidl
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 16:25:17 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								docker-compose down --remove-orphans & &  docker-compose pull & &  docker-compose -p datahub up --force-recreate
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#### Helm
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Deploying latest helm charts will upgrade all components to version 0.8.0. Once all the pods are up and running, it will
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								run the datahub-upgrade job, which will run the above docker container to migrate to the new sources.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### Step 2: Execute Migration Job
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 17:54:17 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								#### Docker Compose Deployments - Preserve Data
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								If you do not care about migrating your data, you can refer to the Docker Compose Deployments - Lose All Existing Data
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								section below.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 17:54:17 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To migrate existing data, the easiest option is to execute the `run_upgrade.sh`  script located under `docker/datahub-upgrade/nocode` .
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								cd docker/datahub-upgrade/nocode
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								./run_upgrade.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Using this command, the default environment variables will be used (`docker/datahub-upgrade/env/docker.env` ). These assume
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								that your deployment is local &  that you are running MySQL. If this is not the case, you'll need to define your own environment variables to tell the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								upgrade system where your DataHub containers reside and run 
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To update the default environment variables, you can either
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								1.  Change `docker/datahub-upgrade/env/docker.env`  in place and then run one of the above commands OR 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								2.  Define a new ".env" file containing your variables and execute `docker pull acryldata/datahub-upgrade && docker run acryldata/datahub-upgrade:latest -u NoCodeDataMigration`  
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 11:30:06 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To see the required environment variables, see the [datahub-upgrade ](../../docker/datahub-upgrade/README.md )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								documentation.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To run the upgrade against a database other than MySQL, you can use the `-a dbType=<db-type>`  argument.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Execute 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								./docker/datahub-upgrade.sh -u NoCodeDataMigration -a dbType=POSTGRES
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								where dbType can be either `MYSQL` , `MARIA` , `POSTGRES` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 17:54:17 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								#### Docker Compose Deployments - Lose All Existing Data
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This path is quickest but will wipe your DataHub's database.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 17:54:17 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								If you want to make sure your current data is migrated, refer to the Docker Compose Deployments - Preserve Data section above.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								If you are ok losing your data and re-ingesting, this approach is simplest.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# make sure you are on the latest
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								git checkout master
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								git pull origin master
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# wipe all your existing data and turn off all processes
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								./docker/nuke.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# spin up latest datahub
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								./docker/quickstart.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# re-ingest data, for example, to ingest sample data:
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								./docker/ingestion/ingestion.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								After that, you will be ready to go.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 17:54:17 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 00:18:41 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								##### How to fix the "listening to port 5005" issue
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Fix for this issue have been published to the acryldata/datahub-upgrade:head tag. Please pull latest master and rerun
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								the upgrade script.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								However, we have seen cases where the problematic docker image is cached and docker does not pull the latest version. If
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								the script fails with the same error after pulling latest master, please run the following command to clear the docker
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								image cache.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								docker images -a | grep acryldata/datahub-upgrade | awk '{print $3}' | xargs docker rmi -f
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#### Helm Deployments
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Upgrade to latest helm charts by running the following after pulling latest master.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```(shell)
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 15:13:32 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								helm upgrade datahub datahub/
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 15:13:32 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								In the latest helm charts, we added a datahub-upgrade-job, which runs the above mentioned docker container to migrate to
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								the new storage layer. Note, the job will fail in the beginning as it waits for GMS and MAE consumer to be deployed with
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								the NoCode code. It will rerun until it runs successfully.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Once the storage layer has been migrated, subsequent runs of this job will be a noop.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### Step 3 (Optional): Cleaning Up
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Warning: This step clears all legacy metadata. If something is wrong with the upgraded metadata, there will no easy way to 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								re-run the migration. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								This step involves removing data from previous versions of DataHub. This step should only be performed once you've
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								validated that your DataHub deployment is healthy after performing the upgrade. If you're able to search, browse, and
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								view your Metadata after the upgrade steps have been completed, you should be in good shape.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								In advanced DataHub deployments, or cases in which you cannot easily rebuild the state stored in DataHub, it is strongly
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 11:30:06 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								advised that you do due diligence prior to running cleanup. This may involve manually inspecting the relational
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								tables (metadata_aspect_v2), search indices, and graph topology.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#### Docker Compose Deployments
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The easiest option is to execute the `run_clean.sh`  script located under `docker/datahub-upgrade/nocode` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								cd docker/datahub-upgrade/nocode
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								./run_clean.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Using this command, the default environment variables will be used (`docker/datahub-upgrade/env/docker.env` ). These assume
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								that your deployment is local. If this is not the case, you'll need to define your own environment variables to tell the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								upgrade system where your DataHub containers reside.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-23 13:49:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To update the default environment variables, you can either
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								1.  Change `docker/datahub-upgrade/env/docker.env`  in place and then run one of the above commands OR 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								2.  Define a new ".env" file containing your variables and execute 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								   `docker pull acryldata/datahub-upgrade && docker run acryldata/datahub-upgrade:latest -u NoCodeDataMigrationCleanup` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-04-26 23:02:02 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To see the required environment variables, see the [datahub-upgrade ](../../docker/datahub-upgrade/README.md )
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								documentation
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#### Helm Deployments
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 15:13:32 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Assuming the latest helm chart has been deployed in the previous step, datahub-cleanup-job-template cronJob should have
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								been created. You can check by running the following:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								kubectl get cronjobs
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								You should see an output like below:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								NAME                                   SCHEDULE     SUSPEND   ACTIVE   LAST SCHEDULE   AGE
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								datahub-datahub-cleanup-job-template   * *  * *  *    True      0        < none >           12m
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Note that the cronJob has been suspended. It is intended to be run in an adhoc fashion when ready to clean up. Make sure
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								the migration was successful and DataHub is working as expected. Then run the following command to run the clean up job:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								kubectl create job --from=cronjob/< < release-name > >-datahub-cleanup-job-template datahub-cleanup-job
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Replace release-name with the name of the helm release. If you followed the kubernetes guide, it should be "datahub".
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 13:24:33 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Support
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-04 00:18:41 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The Acryl team will be on standby to assist you in your migration. Please
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								join [#release-0_8_0 ](https://datahubspace.slack.com/archives/C0244FHMHJQ ) channel and reach out to us if you find
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								trouble with the upgrade or have feedback on the process. We will work closely to make sure you can continue to operate
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								DataHub smoothly.