Skip to content

Instantly share code, notes, and snippets.

@hishidama
Created April 11, 2017 07:34
Show Gist options
  • Save hishidama/3286635f490297cdeb35461dc1d888f5 to your computer and use it in GitHub Desktop.
Save hishidama/3286635f490297cdeb35461dc1d888f5 to your computer and use it in GitHub Desktop.
embulk-input-postgresqlでviewを読もうとしたときのエラー
2017-04-11 16:30:30.549 +0900: Embulk v0.7.7
2017-04-11 16:30:32.407 +0900 [INFO] (preview): Loaded plugin embulk-input-postgresql (0.8.2)
2017-04-11 16:30:32.639 +0900 [INFO] (preview): SQL: SET search_path TO "public"
LoadError: load error: embulk/command/embulk_main -- java.lang.NoClassDefFoundError: org/embulk/spi/json/JsonParser
require at org/jruby/RubyKernel.java:940
require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<top> at file:/home/apis/.embulk/bin/embulk!/embulk/command/embulk_bundle.rb:55
@hishidama
Copy link
Author

Embulk本体のバージョンが古い為だった。0.8.18にしたら通った。

hito4_t:@hishidama @hiroysato JsonParserはembulk 0.8.0で追加されたようです。embulk本体を0.8.0以降にアップデートしてみてください。 embulk.org/docs/release/r… [https://twitter.com/hito4_t/status/851712698333020160]
hiroysato:@hishidama Viewに対してアクセスした時にinputプラグインがJSONのカラムどうかみたいなチェックをした際に、本体はjson型未サポートなのでエラーがでたみたいな感じなんじゃないかと予想しています。 [https://twitter.com/hiroysato/status/851712779094417408]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment