Skip to content

Instantly share code, notes, and snippets.

@PierreZ
Last active April 3, 2018 14:21
Show Gist options
  • Save PierreZ/0742ac18dee68ad6138528339bc755c9 to your computer and use it in GitHub Desktop.
Save PierreZ/0742ac18dee68ad6138528339bc755c9 to your computer and use it in GitHub Desktop.
FROM danisla/hadoop:2.7.3
ENV VERSION 1.3.1
ENV DESTINATION /opt/hbase
WORKDIR /
ADD http://archive.apache.org/dist/hbase/${VERSION}/hbase-${VERSION}-bin.tar.gz /
RUN tar -xvf /hbase-${VERSION}-bin.tar.gz
RUN ls /
RUN mv /hbase-${VERSION} ${DESTINATION}
# REST API
EXPOSE 8080
# Thrift API
EXPOSE 9090
# Zookeeper port
EXPOSE 2181
# Master port
EXPOSE 16000
# Master info port
EXPOSE 16010
# Regionserver port
EXPOSE 16020
# Regionserver info port
EXPOSE 16030
# kafka stuff
zookeeper:
image: wurstmeister/zookeeper
expose:
- "2181"
logging:
driver: "none"
# kafka stuff
hbase:
image: pierrezemb/hbase-standalone:1.3.1
links:
- zookeeper
logging:
driver: "none"
ports:
- "16010:16010"
expose:
- "8080"
- "9090"
- "2181"
- "16000"
- "16010"
- "16020"
- "16030"
command: ["/wait-for-it.sh", "zookeeper:2181", "-t", "10", "--", "/usr/bin/supervisord"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment