Git Product home page Git Product logo

opdb-docker's Introduction

OPDB Docker

This configuration builds a docker container to run Apache HBase, Apache Zookeeper, Apache Omid and Apache Phoenix.

Prerequisites

Run

$ sudo vim /etc/hosts

and add

127.0.0.1       localhost opdb-docker

The opdb-docker runs many services in the same container so it is recommended to increase the Docker resource configuration under Preferences > Resources to the following:

  • CPUs: 6
  • Memory: 10 GB
  • Swap: 1.5 GB
  • Disk image size: 64 GB

Setting smaller amounts may cause issues with memory allocation.

Build Image

$ docker build -t opdb-docker .

Run OPDB docker

$ docker run -p 8765:8765 -p 8080:8080 -p 8085:8085 -p 9090:9090 \
    -p 9095:9095 -p 2181:2181 -p 16010:16010 -p 16020:16020 -p 16000:16000 \
    -p 16030:16030 -d -h "opdb-docker"  --name opdb-docker opdb-docker

You can log in to the docker and run Apache Phoenix or Apache Hbase

$ docker exec -it opdb-docker /bin/bash
$ phoenix-sqlline
$ hbase shell

HBase Thrift and REST servers

HBase Thrift and HBase REST servers are not started automatically. To start them run the following commands:

$ docker exec opdb-docker /opt/hbase/bin/hbase-daemon.sh start thrift
$ docker exec opdb-docker /opt/hbase/bin/hbase-daemon.sh start rest

Similarly stop these services with:

$ docker exec opdb-docker /opt/hbase/bin/hbase-daemon.sh stop thrift
$ docker exec opdb-docker /opt/hbase/bin/hbase-daemon.sh stop rest

opdb-docker's People

Contributors

lpalasthy avatar petersomogyi avatar shehbabk 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.