Coder Social home page Coder Social logo

docker-hive's Introduction

docker-hive

hive 1.2.1
hadoop 2.7.1
Docker hub url https://hub.docker.com/r/hrushikesh198/hive/
This container is built on top of sequenceiq/hadoop-docker:2.7.1

Basic docker operations

  • Pull docker hive image docker pull hrushikesh198/hive:1.0.0
  • Create and Run container daemon docker run -d -v ~/work:/root/work --name hive_cont1 hrushikesh198/hive:1.0.0
    • -v ~/work:/root/work creates a shared folder for easy data transfer to/from container
    • It takes few minutes to start hive thrift connection.
    • Progress logs can be checked using docker logs -f hive_cont1
  • Login to container bash shell docker exec -it hive_cont1 'bash'
  • Start/Stop/Restart container using docker start/stop/restart hive_cont1 without losing any data.
  • If you want to make changes to the container like adding/removing shared folders and exposing new ports
    • Commit current container docker commit hive_cont1 hive_commited_img1
    • Create a new container from the committed image docker run -d -P 10002:10002 --name hive_cont1 hive_commited_img1

Connecting to beeline hive client

Log in to the running hive containier.

  • Run precreated alias bl or beeline -u jdbc:hive2://localhost:10000 to connect beeline.
  • Test your hive setup with a query SELECT 1;

docker-hive's People

Stargazers

 avatar Laurence avatar Jon avatar Toshiaki Toyama avatar  avatar

Watchers

 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.