Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: move code to code blocks

If you don't have an Ubuntu 14.04 or 16.04 environment available, you can use Docker to develop. First, install Docker as you normally would. Then,

Code Block
languagebash
docker pull ubuntu:16.04

...


docker run --privileged --interactive --tty --name impala-dev ubuntu:16.04 bash


Now, within the container:

Code Block
languagebash
apt-get update

...


apt-get install sudo

...


adduser --disabled-password --gecos '' impdev

...


echo 'impdev ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

...


su - impdev


Then, as impdev in the container:

Code Block
languagebash
sudo apt-get --yes install git

...


git

...

 clone https://git-wip-us.apache.org/repos/asf/incubator-impala.git

...

 ~/Impala

...


source ~/Impala/bin/bootstrap_development.sh


When that's done, start developing! When you're ready to pause, in a new terminal in the host:

Code Block
languagebash
docker commit impala-dev && docker stop impala-dev


When you're ready to get back to work:

Code Block
languagebash
docker start --interactive impala-dev


If instead of committing your work and stopping the container, you just want to detach from it, use ctrl-p ctrl-q. You can re-attach using the start command.