mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-15 10:26:44 +00:00
update hbase
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
FROM alpine:3.6
|
||||
FROM alpine:3.8
|
||||
|
||||
MAINTAINER Newnius <newnius.cn@gmail.com>
|
||||
|
||||
USER root
|
||||
|
||||
# Prerequisites
|
||||
RUN apk add --no-cache openssh openssl openjdk8-jre rsync bash procps
|
||||
RUN apk add --no-cache openssh openssl openjdk8-jre rsync bash procps nss
|
||||
|
||||
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
|
||||
ENV PATH $PATH:$JAVA_HOME/bin
|
||||
|
||||
ENV HBASE_MANAGES_ZK false
|
||||
|
||||
# Passwordless SSH
|
||||
RUN ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key
|
||||
RUN ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key
|
||||
@@ -22,11 +24,14 @@ RUN chown root:root /root/.ssh/config
|
||||
|
||||
RUN echo "Port 2122" >> /etc/ssh/sshd_config
|
||||
|
||||
# Install Apche HBase
|
||||
ENV HBASE_VER 1.2.6.1
|
||||
# unlock root
|
||||
RUN passwd -u root
|
||||
|
||||
RUN wget -O apache-hbase.tar.gz http://mirrors.ocf.berkeley.edu/apache/hbase/$HBASE_VER/hbase-$HBASE_VER-bin.tar.gz && \
|
||||
tar xzvf apache-hbase.tar.gz -C /usr/local/ && rm apache-hbase.tar.gz
|
||||
# Install Apche HBase
|
||||
ENV HBASE_VER 1.2.6
|
||||
|
||||
RUN wget -O apache-hbase.tar.gz https://archive.apache.org/dist/hbase/$HBASE_VER/hbase-$HBASE_VER-bin.tar.gz && \
|
||||
tar xzvf apache-hbase.tar.gz -C /usr/local/ && rm apache-hbase.tar.gz
|
||||
|
||||
# Create a soft link to make future upgrade transparent
|
||||
RUN ln -s /usr/local/hbase-$HBASE_VER /usr/local/hbase
|
||||
@@ -36,7 +41,6 @@ ENV PATH $PATH:$HBASE_HOME/bin
|
||||
|
||||
# Add default conf files of 1 master, 2 back server, 3 engionserver
|
||||
ADD hbase-site.xml $HBASE_HOME/conf
|
||||
ADD hbase-env.sh $HBASE_HOME/conf
|
||||
ADD regionservers $HBASE_HOME/conf
|
||||
ADD backup-masters $HBASE_HOME/conf
|
||||
|
||||
@@ -44,4 +48,4 @@ WORKDIR /usr/local/hbase
|
||||
|
||||
ADD bootstrap.sh /etc/bootstrap.sh
|
||||
|
||||
CMD ["/etc/bootstrap.sh", "-d"]
|
||||
CMD ["/etc/bootstrap.sh"]
|
||||
|
||||
Reference in New Issue
Block a user