LoginSignup
6
3

More than 3 years have passed since last update.

tableau serverのデータソース自動更新 

Posted at

やりたいこと

TableauServerにpublishしたデータを自動で更新したい

前提条件

  • 大本のデータソースはDBまたはCSV。これをPrepにてデータ処理して出力したhyperがデータソースとしたい
  • PrepからTableauServerにpublishするとPrepがよくこけるので別手段を検討
  • Prepのデータ処理は定期的に実行されれる。
  • tableau2020.1

方法案と結果

ルート 期待 判定 方法 結果
1 × NASのhyper形式をtableauserverで自動更新 NASのhyperにtableauserverからアクセスできない
2 Prepで更新 データが大きいためかPrepが落ちることがよくある
3 tableauserverでtabcmd publishを行う 更新できた
4 × tableau refreshextract を使う 更新できなく、何もメッセージがでないので原因不明
5 × GoogleDrive上のhyper そもそもGoogleDrive上のhyperはtableauに読み込めない
6 × GoogleDrive上のエクセル 更新できた。しかし、hyper形式が望ましい
7 × tableauで手動更新 できるが、手動更新はつらい

image.png

tabcmdでデータ更新

結局、この方法がよさそう。

tabcmd publish "ファイル名.hyper(ファイルサーバでもOK)" -r "プロジェクト名" -n "データソース名" -u "tableauserverユーザ名" -p "tableauserverパスワード" --server "サーバ名(http://は不要)" -o

補足
-o:上書き

tabcmd

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3