mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-24 14:08:45 +00:00
Fixing Metadata indexing issue (#3580)
This commit is contained in:
parent
5cacd33e2e
commit
9a620c380d
@ -21,4 +21,5 @@ until curl -s -f -o /dev/null "http://localhost:8585/api/v1/tables/name/bigquery
|
||||
printf '.'
|
||||
sleep 2
|
||||
done
|
||||
curl -u "admin:admin" --data '{"dag_run_id":"es_index_1"}' -H "Content-type: application/json" -X POST http://localhost:8080/api/v1/dags/index_metadata/dagRuns
|
||||
tput setaf 2; echo "✔ OpenMetadata is up and running"
|
||||
@ -42,12 +42,10 @@ if [ ! -z "${LOAD_SAMPLE}" ]; then
|
||||
AIRFLOW_CREDENTIALS="${AIRFLOW_ADMIN_USER}:${AIRFLOW_ADMIN_PASSWORD}"
|
||||
(while ! wget -O /dev/null -o /dev/null http://localhost:8080; do sleep 5; done; sleep 5; curl -u "${AIRFLOW_CREDENTIALS}" --data '{"dag_run_id":"sample_data_1"}' -H "Content-type: application/json" -X POST http://localhost:8080/api/v1/dags/sample_data/dagRuns) &
|
||||
(while ! wget -O /dev/null -o /dev/null $OPENMETADATA_SERVER/api/v1/tables/name/bigquery_gcp.shopify.fact_sale; do sleep 5; done; sleep 7; curl -u "${AIRFLOW_CREDENTIALS}" --data '{"dag_run_id":"sample_usage_1"}' -H "Content-type: application/json" -X POST http://localhost:8080/api/v1/dags/sample_usage/dagRuns) &
|
||||
(while ! wget -O /dev/null -o /dev/null $OPENMETADATA_SERVER/api/v1/tables/name/bigquery_gcp.shopify.fact_sale; do sleep 5; done; sleep 9; curl -u "${AIRFLOW_CREDENTIALS}" --data '{"dag_run_id":"sample_dbt_1"}' -H "Content-type: application/json" -X POST http://localhost:8080/api/v1/dags/sample_dbt/dagRuns) &
|
||||
(while ! wget -O /dev/null -o /dev/null $OPENMETADATA_SERVER/api/v1/tables/name/bigquery_gcp.shopify.fact_sale; do sleep 5; done; sleep 10; curl -u "${AIRFLOW_CREDENTIALS}" --data '{"dag_run_id":"index_metadata_1"}' -H "Content-type: application/json" -X POST http://localhost:8080/api/v1/dags/index_metadata/dagRuns) &
|
||||
fi
|
||||
|
||||
airflow webserver --port 8080 -D &
|
||||
(sleep 5; airflow db upgrade)
|
||||
(sleep 5; airflow db upgrade)
|
||||
|
||||
airflow scheduler
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user