Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error while running "Install necessary types into your Purview instance by running the following commands in Bash." #238

Open
rahul7thube opened this issue May 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@rahul7thube
Copy link

Describe the bug
We are installing/configuring Purview ADB Lineage Solution Accelerator for our Dev Purview account in connector only deployment mode. While executing the post installation step3 "Install necessary types into your Purview instance by running the following commands in Bash." we are getting below error.

Post installation Step 3: (Executed from cloud bash shell)
purview_endpoint="https://<enter_purview_account_name>.purview.azure.com"
TENANT_ID="<TENANT_ID>"
CLIENT_ID="<CLIENT_ID>"
CLIENT_SECRET="<CLIENT_SECRET>"

acc_purview_token=$(curl https://login.microsoftonline.com/$TENANT_ID/oauth2/token --data "resource=https://purview.azure.net&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&grant_type=client_credentials" -H Metadata:true -s | jq -r '.access_token')
purview_type_resp_custom_type=$(curl -s -X POST $purview_endpoint/catalog/api/atlas/v2/types/typedefs
-H "Authorization: Bearer $acc_purview_token"
-H "Content-Type: application/json"
-d @Custom_Types.json )

echo $purview_type_resp_custom_type

====================================================================================
Error:
{"requestId":"35a7792a-dad5-4ba5-b5c5-d0a84904ce58","errorCode":"ATLAS-400-00-01A","errorMessage":"invalid parameters: invalid payload, expect schemaAttributes in purview_custom_connector_generic_column should be list of string, but found: data_type"}

======================================================================================
Additional details:

  1. we are using latest release tag for cloning the git repo.
    git clone -b 2.3.1 https://github.com/microsoft/Purview-ADB-Lineage-Solution-Accelerator.git
  2. Also we tried to clone repo from old versions but the Custom_Types.json is same for all versions

Please let us know if you need any further information

@rahul7thube rahul7thube added the bug Something isn't working label May 29, 2024
@kunr0747
Copy link

Hello, we are facing same issue, expecting a fix as soon as possible.

@rvalente-bi4all
Copy link

I had the same issue and, after looking into "deployment/infra/Custom_Types.json" file and Apache Atlas documentation found a fix.
Just change "schemaAttributes": "data_type" to "schemaAttributes": "[\"data_type\"]".
Hope that solves the problem!

@davidkhala
Copy link

pending merge of #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants