LoginSignup
3
1

Databricks dbdemos にてコンテンツをインポート時にクラスターなどのリソースを自動で作成しないようにする暫定対応方法

Posted at

概要

Databricks には dbdemos というデモをすぐに実行できる便利な機能が提供されているのですが、クラスターなどのリソースも同時に作成される仕様であるため、リソースを作成せずにノートブックのみをインポートする暫定対応方法を共有します。現時点では docstring の記載もなく、Github 上のdbdemos/dbdemos.pyの記載内容から判断しただけであるため、想定通りに動作しない可能性もあります。

image.png

引用元:dbdemos - Install demos for Databricks Lakehouse

暫定対応方法

installメソッド実行時に、start_clusteruse_current_cluster、および、skip_dashboardsのパラメータを変更することでリソースが作成されませんでした。

dbdemos.install(
    '{demo_name}',
    # overwrite = True,
    start_cluster = False,
    use_current_cluster = True,
    skip_dashboards = True,
)

実行例を次に示します。

dbdemos.install(
    'lakehouse-fsi-credit',
    # overwrite = True,
    start_cluster = False,
    use_current_cluster = True,
    skip_dashboards = True,
)

image.png

3
1
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
3
1