embulk-input-bigquery
embulk-input-bigquery copied to clipboard
Embulk gem install fail: google-cloud-errors requires Ruby version >= 2.4.
embulk-input-bigquery installation failed in Java8 docker container
root@86e6ee0632d7:/# embulk gem install embulk-input-bigquery
2020-01-16 05:59:53.576 +0000: Embulk v0.9.23
Gem plugin path is: /root/.embulk/lib/gems
Fetching: jwt-2.2.1.gem (100%)
Successfully installed jwt-2.2.1
Fetching: multi_json-1.14.1.gem (100%)
Successfully installed multi_json-1.14.1
Fetching: multipart-post-2.1.1.gem (100%)
Successfully installed multipart-post-2.1.1
Fetching: faraday-0.17.3.gem (100%)
Successfully installed faraday-0.17.3
Fetching: public_suffix-4.0.3.gem (100%)
Successfully installed public_suffix-4.0.3
Fetching: addressable-2.7.0.gem (100%)
Successfully installed addressable-2.7.0
Fetching: signet-0.11.0.gem (100%)
Successfully installed signet-0.11.0
Fetching: declarative-option-0.1.0.gem (100%)
Successfully installed declarative-option-0.1.0
Fetching: declarative-0.0.10.gem (100%)
Successfully installed declarative-0.0.10
Fetching: uber-0.1.0.gem (100%)
Successfully installed uber-0.1.0
Fetching: representable-3.0.4.gem (100%)
Successfully installed representable-3.0.4
Fetching: retriable-3.1.2.gem (100%)
Successfully installed retriable-3.1.2
Fetching: mini_mime-1.0.2.gem (100%)
Successfully installed mini_mime-1.0.2
Fetching: memoist-0.16.2.gem (100%)
Successfully installed memoist-0.16.2
Fetching: os-1.0.1.gem (100%)
Successfully installed os-1.0.1
Fetching: googleauth-0.9.0.gem (100%)
Successfully installed googleauth-0.9.0
Fetching: httpclient-2.8.3.gem (100%)
Successfully installed httpclient-2.8.3
Fetching: google-api-client-0.32.1.gem (100%)
Successfully installed google-api-client-0.32.1
Fetching: google-cloud-env-1.2.1.gem (100%)
Successfully installed google-cloud-env-1.2.1
Fetching: google-cloud-errors-1.0.0.gem (100%)
ERROR: Error installing embulk-input-bigquery:
google-cloud-errors requires Ruby version >= 2.4.
Steps to recreate
- Use docker container java:8
docker pull java:8 && docker run -it java:8 /bin/bash - Run Installation step
curl --create-dirs -o ~/.embulk/bin/embulk -L "https://dl.embulk.org/embulk-latest.jar"chmod +x ~/.embulk/bin/embulk && echo 'export PATH="$HOME/.embulk/bin:$PATH"' >> ~/.bashrc && . ~/.bashrc~/.embulk/bin/embulk gem install embulk-input-bigquery
For what its worth, if you need to install this plugin, I was able to pre-install the dependencies with specific versions and then install embulk-input-bigquery 0.0.9
Pastebin with list (im sure not all are necessary): https://pastebin.com/raw/QFmtQfJv
I think the kicker was installing version 1.3.0 for ruby gem google-cloud-core. Somewhere along the way one of the more up-to-date google gems has a dependency on google-cloud-errors which always requires >= Ruby 2.4
Thanks for the tips!
In our case it was solved by the following command
$ embulk gem install google-cloud-core -v 1.3.0