在气流中使用Tableau算子时出现问题



我正在使用AWS MWAA ver 2.2.2,并试图使用Tableau操作符刷新工作簿。我使用用户名和密码创建了一个Tableau连接。在Tableau操作符中,我传递了以下参数

task_id='refresh_tableau_workbook',
resource='workbooks',
method='refresh',
find=workbook_name,
match_with='name',
site_id=site_id,
tableau_conn_id=tableau_conn_id,
dag=dag
)

但是当我运行它时,我得到以下错误:tableauserverclient.server.exceptions.NotSignedInError: Missing site ID. You must sign in first.

如果tableau online有"/#/site/test/projects/4"在URL中,那么我就通过了"test"到site_id变量。我不确定在其他地方我错过了site_id。

我可以通过升级Tableau提供程序的版本来解决这个问题。我正在使用apache-airflow-provider -tableau==2.1.2,其中有一个错误,更新到2.1.3版本后,这个错误被解决了。

最新更新