I would like to run airflow DAGs on databricks.
I have installed apache-airflow 1.9.0 (python3 package) on databricks.
In databricks notebook, I used :
%sh
airflow list_dags
I got:
-------------------------------------------------------------------
DAGS
-------------------------------------------------------------------
example_bash_operator
example_branch_dop_operator_v3
example_trigger_target_dag
example_xcom
latest_only
latest_only_with_trigger
test_utils
tutorial
I would like to visualize the above DAGs as graph view.
I can do this by installing airflow docker image on my local machine and then visit localhost:8080.
But, I cannot find out how to do this on databricks.
Thanks
UPDATE I have run
%sh
airflow webserver -p 8080
I have tried to access localhost:8080 by running
%sh
curl localhost:8080
on databricks notebook.
I got:
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 221 100 221 0 0 23440 0 --:--:-- --:--:-- --:--:-- 24555
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="/admin/">/admin/</a>. If not click the link.
But, they are on the output of notebooks and no clickable links on it. The airflow is installed on databricks cluster not on my local machine. If I run localhost:8080 on my local machine, I cannot access it.
thanks
