DEV Community

Tomoyuki KOYAMA
Tomoyuki KOYAMA

Posted on • Edited on

Installation of Embulk on Ubuntu 20.04

Environment

  • Ubuntu 20.04.3 LTS

Instruction

(1) Check Java version

$ java -version

Command 'java' not found, but can be installed with:

sudo apt install default-jre              # version 2:1.11-72, or
sudo apt install openjdk-11-jre-headless  # version 11.0.17+8-1ubuntu2~20.04
sudo apt install openjdk-13-jre-headless  # version 13.0.7+5-0ubuntu1~20.04
sudo apt install openjdk-16-jre-headless  # version 16.0.1+9-1~20.04
sudo apt install openjdk-17-jre-headless  # version 17.0.5+8-2ubuntu1~20.04
sudo apt install openjdk-8-jre-headless   # version 8u352-ga-1~20.04

Enter fullscreen mode Exit fullscreen mode

Not installed java

(2) Install Java 8

EMbulk only operates with Java 8.

sudo apt install openjdk-8-jre-headless
Enter fullscreen mode Exit fullscreen mode

(3) Check Java version

$ java -version
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (build 1.8.0_352-8u352-ga-1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)
Enter fullscreen mode Exit fullscreen mode

(4) Install Embulk

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
source ~/.bashrc
Enter fullscreen mode Exit fullscreen mode

Ref: Embulk

(5) Check embulk command

which embulk
Enter fullscreen mode Exit fullscreen mode

Top comments (0)