LoginSignup
2
1

More than 5 years have passed since last update.

EmbulkでTreasureData検索結果をsftp PUT

Posted at

プラグインインストール

$ embulk gem install embulk-output-sftp
2017-01-05 12:54:24.469 +0900: Embulk v0.8.15
Fetching: embulk-output-sftp-0.0.8.gem (100%)
Successfully installed embulk-output-sftp-0.0.8
1 gem installed

Embulk設定ファイル(鍵認証版)

in:
  type: td
  apikey   : ■APIキー■
  endpoint : ■エンドポイント(「https://」なし)■
  database : ■データベース■
  query : |
    SELECT
      ~略~
out:
  type: sftp
  host: ■sftpサーバ■
  port: 22
  user: ■ユーザ■
  secret_key_file: ■キーファイル■
  path_prefix: /dir1/file1.csv
  sequence_format: ""
  file_ext: ""
  formatter:
    type: csv
    header_line: true
2
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
2
1