Upgrade Looker OCF Connector to Version 1.4.1¶
Alation Cloud Service Applies to Alation Cloud Service instances of Alation
Customer Managed Applies to customer-managed instances of Alation
Before upgrading the Looker OCF Connector to version 1.4.1 or later from an older version, users must execute this migration script. The script should be run one time, prior to the connector upgrade. This migration ensures the transfer of all curated information on the catalog pages of Looker objects from your previous connector version to the Looker OCF Connector 1.4.1.
Note
Users who initially install the Looker connector version 1.4.1 or above do not need to perform this migration. The script is only required if you are upgrading the connector from a previous version.
On Looker OCF Connector versions before 1.4.1, Looker reports were extracted as new reports in Alation if these reports had been updated in Looker. The previously extracted version of the report and the associated curation information was removed from the catalog. The Looker OCF connector version 1.4.1 uses a different model of storing report IDs and fixes this issue. However, migration of the previously extracted metadata is required to ensure that the new connector version inherits the curation information on previously extracted Looker reports.
Scope of Migration¶
This migration will ensure that the following catalog metadata is preserved after the connector upgrade:
Built-in and custom fields
Object Sets and People Sets—For example, Stewards
Rich text fields
Descriptions
Trust Flags (Endorse, Warn, and Deprecate)
Tags
Stars
Article and conversation mentions
Migrate Curated Data¶
Perform the following steps to migrate the curated data of a cataloged Looker report in preparation for the connector upgrade:
Note
There will be no downtime while performing this migration.
Before migration, ensure that you have the latest valid Alation backup.
We recommend taking screenshots of the Looker catalog pages that contain curation information. These screenshots can be used as reference after the connector upgrade to validate that all curation information is successfully migrated.
Copy the Looker migration script that you received from Alation to the
/tmp
directory on the Alation host. If you use the example below, replace <ssh-user> with your username.scp looker_migration.pyc <ssh-user>@{alation-instance-ip}:/tmpUse SSH to connect to the Alation host.
Run the following command to stage the migration script in the one_off_scripts directory:
sudo cp /tmp looker_migration.pyc /opt/alation/alation/opt/alation/django/rosemeta/one_off_scriptsEnter the Alation shell.
sudo /etc/init.d/alation shellNavigate to the one_off_scripts directory.
cd opt/alation/django/rosemeta/one_off_scripts/Change the user to
alation
:sudo su alationFind the source ID of the Looker BI source. The source ID of a source can be viewed in the browser URL when you view the source catalog page. In the example below, the source ID is 9.
Example: htpps://qualified_domain_name/bi/v2/server/9/
Run the migration script with the command below.
python looker_migration.pyc -s <Looker source ID>The following message will be displayed once the migration is complete: updated report id’s, exiting the script.
Exit the shell.
exit
Check the connector logs for any errors once the script execution is complete. If you find any errors in executing the script, contact Alation Support.
Upgrade the Looker OCF connector to version 1.4.1 once the migration script execution is successful. Refer to Upgrade Connector for more information.
Perform a full extraction to restore the curated data on the upgraded connector version.
Make sure that the curation data was migrated successfully.