LoginSignup
1
0

More than 3 years have passed since last update.

JetBrains IDEからPrestoに繋ぐ

Posted at

動機

  • GUIからPrestoにクエリを投げたい
  • yanagishima等のWebUIツールはあるけど接続設定とか導入がちょっと面倒くさい
  • Prestoの動作検証やクエリチューニングをIDEの画面のみで完結させたい

環境

  • macOS Mojave 10.14.2
  • PHPStorm 2019.1.2
  • Presto 0.218

導入方法

1. JDBC Driverのセットアップ

PrestoのJDBC Driverをここからダウンロードしてくる
IDEの[Data Sources and Drivers] => [+] => [Driver]を選択
ダウンロードしてきたjarファイルを[Driver files] => [+] => [Custom JARs]で追加する

step1.png

2. 接続設定

[Data Sources and Drivers] => [+] => [Presto]を選択

  • User: 任意のユーザー名
  • Password: 特に設定していないなら未入力でOK
  • URL: 接続先URL
    • jdbc:presto://host:port/catalog/schema
    • catalogとschemaは省略可

上記入力後[Test Connection]を押して疎通確認を行う
[Schemas]タブから使いたいschemaにチェックを入れてOK

step2.png

3. おわり

[Database]のウィンドウで追加したやつが表示されていればおわり

参考元

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