LoginSignup
0
0

More than 1 year has passed since last update.

embulkでTreasureDataにデータをアップロードする

Posted at

OpenJDK8をインストール

コマンド実行でembulkのインストール

windows

PowerShell -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; Invoke-WebRequest http://dl.embulk.org/embulk-latest.jar -OutFile embulk.bat}"

pluginsからインストール

  • embulk-input-td
  • embulk-output-td

embulk gem install embulk-input-td

環境変数にpath設定

ymlファイル

in:
  type: file
  path_prefix: XXXXX.tsv
  parser:
    charset: UTF-8
    newline: CRLF

out:
  type: td
  apikey: api_key
  endpoint: api.treasuredata.com
  database: db
  table: tab
  auto_create_table: true
  mode: append

実行

embulk run filename.yml
0
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
0
0