0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Glue(Jupyter Notebook)の実行クラス(execution class)を、FLEXに変更する方法

0
Posted at

はじめに

re:Postにて、タイトルの事ができませんか?という質問があったので、試してみた内容を記事にしました。

"FLEX"の実行クラスについては、以下のページをご覧ください。

概要

CodeCommitを使う方法

  • 一度、CodeCommitにPUSHさせてから、そこで編集して、PULLします
    • Glueからダウンロードをしても、"executionClass"の設定値は見つかりませんでした
    • magicでも、設定変更できませんでした。
# 変更できなかった。_を-に変えてもダメでした。
%%configure
{
    "execution_class" : "FLEX"
}

ダウンロードファイルを編集する方法

  • 一度ダウンロードして、そこで編集して、アップロードします
    • 以下の2つを、"jobConfig"の下に定義します
      • "flexExecution": true
      • "minFlexWorkers": null
    • こちらもmagicでも、設定変更できませんでした。
# こちらも同様にダメでした。
%%configure
{
    "flex_execution" : "true",
    "min_flex_workers" : "null"
}

やり方

CodeCommitを使う方法

まずは、CodeCommitにPUSHします。
image.png

その後CodeCommit上で、"executionClass"の設定値を"FLEX"に変更します。
image.png

変更した内容をPULLしてきます。
image.png

[Job details]を見ると、チェックが入っていますので、変更できたのでしょう。
image.png

ジョブ実行すると、Execution classがFLEXになっています。
image.png

ダウンロードファイルを編集する方法

対象のJobをダウンロードします。
image.png

ダウンロードしたファイルを編集し、以下の2つを、"jobConfig"の下に定義します

  • "flexExecution": true
  • "minFlexWorkers": null
    image.png

編集したファイルをアップロードします。
image.png

おわりに

今回はGlue Jupyter Notebookの設定変更を記事にしました。
他の方法や、magicでの変更方法がわかった方は是非教えてください。

おまけ

なんかGlueの画面が変わったような気がします。

image.png

またNotebookのデフォルトも変わっていました。ヘルプやいくつかの例が記述されている状態でした。
image.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?