Giter VIP home page Giter VIP logo

docker-phoenix's Introduction

docker-phoenix

A Docker image to quick start Apache Phoenix on Apache HBase to provide an SQL interface.

Apache Phoenix is a SQL skin over HBase delivered as a client-embedded JDBC driver targeting low latency queries over HBase data. Apache Phoenix takes your SQL query, compiles it into a series of HBase scans, and orchestrates the running of those scans to produce regular JDBC result sets. The table metadata is stored in an HBase table and versioned, such that snapshot queries over prior versions will automatically use the correct schema. Direct use of the HBase API, along with coprocessors and custom filters, results in performance on the order of milliseconds for small queries, or seconds for tens of millions of rows.

###Versions Apache Hadoop - 2.7.0
Apache HBase - 1.1.2 Apache Phoenix - 4.4.0+

###Launch docker run -it sequenceiq/phoenix:v4.1onHbase-0.98.5 -> to normal launch

###Alternative launch docker run -it sequenceiq/phoenix:v4.1onHbase-0.98.5 /etc/bootstrap-phoenix.sh -sqlline -> to launch directly the sqlline for phoenix

docker-phoenix's People

Contributors

keyki avatar kliewkliew avatar lalyos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-phoenix's Issues

Change hbase.regionserver.thrift.framed and hbase.regionserver.thrift.compact to True?

Thanks for providing the container! After pulling the image we notice that hbase.regionserver.thrift.framed is set to False in the configuration file.

However, the HBase official document and Cloudera troubleshooting page recommends to set hbase.regionserver.thrift.framed and hbase.regionserver.thrift.compact to True :

  • This is the recommended transport for thrift servers and requires a similar setting on the client side. Changing this to false will select the default transport, vulnerable to DoS when malformed requests are issued due to THRIFT-601.

  • To prevent the possibility of crashes due to buffer overruns, use the framed and compact transport protocols by setting hbase.regionserver.thrift.framed and hbase.regionserver.thrift.compact to true in hbase-site.xml.

Maybe it's better to enable these two parameters? Thank you!

JAVA_HOME is not set when starting ZooKeeper and HBase

➜ sudo docker run -i -t sequenceiq/phoenix

Starting sshd: [ OK ]
Starting namenodes on [localhost]
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-root-namenode-600c3cc7629e.out
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-root-datanode-600c3cc7629e.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-root-secondarynamenode-600c3cc7629e.out
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/logs/yarn--resourcemanager-600c3cc7629e.out
localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-root-nodemanager-600c3cc7629e.out
JMX enabled by default
Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
localhost: +======================================================================+
localhost: | Error: JAVA_HOME is not set and Java could not be found |
localhost: +----------------------------------------------------------------------+
localhost: | Please download the latest Sun JDK from the Sun Java web site |
localhost: | > http://java.sun.com/javase/downloads/ < |
localhost: | |
localhost: | HBase requires Java 1.6 or later. |
localhost: | NOTE: This script will find Sun Java whether you install using the |
localhost: | binary or the RPM based installer. |
localhost: +======================================================================+
starting master, logging to /usr/local/hbase/logs/hbase--master-600c3cc7629e.out
localhost: +======================================================================+
localhost: | Error: JAVA_HOME is not set and Java could not be found |
localhost: +----------------------------------------------------------------------+
localhost: | Please download the latest Sun JDK from the Sun Java web site |
localhost: | > http://java.sun.com/javase/downloads/ < |
localhost: | |
localhost: | HBase requires Java 1.6 or later. |
localhost: | NOTE: This script will find Sun Java whether you install using the |
localhost: | binary or the RPM based installer. |
localhost: +======================================================================+
starting regionserver, logging to /usr/local/hbase/logs/hbase--1-regionserver-600c3cc7629e.out
bash-4.1#

connect using open ports>how do i monitor using http?

docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6a53a364a972 sequenceiq/phoenix:v4.1onHbase-0.98.5 "/etc/bootstrap-phoe…" About an hour ago Up About an hour 0.0.0.0:32841->22/tcp, 0.0.0.0:32840->8030/tcp, 0.0.0.0:32839->8031/tcp, 0.0.0.0:32838->8032/tcp, 0.0.0.0:32837->8033/tcp, 0.0.0.0:32836->8040/tcp, 0.0.0.0:32835->8042/tcp, 0.0.0.0:32834->8088/tcp, 0.0.0.0:32833->49707/tcp, 0.0.0.0:32832->50010/tcp, 0.0.0.0:32831->50020/tcp, 0.0.0.0:32830->50070/tcp, 0.0.0.0:32829->50075/tcp, 0.0.0.0:32828->50090/tcp peaceful_babbage

Connection TimeOut while connecting to Phoenix remotely using SqurrelClient

Hi Team,
I've installed the Hbase, Phoenix and Zookeeper as a docker image using the DockerFile provided here. After running the docker image, entered into bash shell of the docker image process and could connect to the phoenix and hbase and create the tables. But when I tried to access the phoenix remotely I'm facing the ConnectionTimeOutException. Could anyone please help me.

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.