Giter VIP home page Giter VIP logo

impala-shell's Introduction

This project builds a Docker container from which you can use impala-shell.

Preflight

You will need to have installed Docker.

Usage

Start running the built container image with:

docker run -it --rm jimdigriz/impala-shell

This will drop you straight into a CLI REPL similar to {sqlite3,mysql,psql}.

If you want to use this from a script, you may find the following form useful to run queries directly:

docker run --rm jimdigriz/impala-shell -i impala.example.com -q 'SELECT 1 AS test'

Kerberos

Before using the REPL, you will need to authenticate to Kerberos from your own workstations (apt-get install krb5-user):

env KRB5CCNAME=DIR:.krb5cc kinit [email protected]

Now use the REPL instead via:

docker run -it --rm --env KRB5CCNAME=DIR:/tmp/krb5cc -v $(pwd)/.krb5cc:/tmp/krb5cc:ro jimdigriz/impala-shell

Build

Make sure you have above 15GiB of disk space free avaliable to Docker (df -h /var/lib/docker) and then checkout a copy of the project with:

git clone https://gitlab.com/jimdigriz/impala-shell.git
cd impala-shell

Now build the container, which will take 20 minutes on a 50Mbps Internet connection; most of that time is spent in downloading content:

docker build -t impala-shell .

Deploy

To push up to Docker Hub:

docker tag impala-shell:latest jimdigriz/impala-shell:latest
docker push jimdigriz/impala-shell:latest

impala-shell's People

Contributors

jimdigriz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.