-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (27 loc) · 1.4 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM dockerbarbarians/barbarian-base:latest
ENV HIVE_USER=hadoop \
HIVE_LOG_DIR=/var/log/hive \
HIVE_HOME=/opt/barbarian/hive \
HIVE_CONF_DIR=/opt/barbarian/hive/conf \
TEZ_CONF_DIR=/opt/barbarian/tez/conf \
HIVE_CLASSPATH=$HADOOP_CLASSPATH:/opt/barbarian/hive/lib/* \
SLIDER_CONF_DIR=/opt/barbarian/slider/conf \
SLIDER_HOME=/opt/barbarian/slider \
CONTROL_HOME=/opt/barbarian/control \
CLASSPATH=$HADOOP_CLASSPATH:/opt/barbarian/hive/lib/*:/opt/barbarian/tez/*:/opt/barbarian/tez/lib/* \
LLAP_DAEMON_USER_CLASSPATH=/opt/barbarian/hadoop/share/hadoop/yarn/*:/opt/barbarian/hadoop/share/hadoop/yarn/lib/*
COPY ./opt/barbarian/control /opt/barbarian/control
COPY ./opt/barbarian/hive /opt/barbarian/hive
COPY ./opt/barbarian/tez /opt/barbarian/tez
#COPY ./opt/barbarian/slider /opt/barbarian/slider
#COPY ./opt/barbarian/ignite/libs/ignite-*.jar /opt/barbarian/slider/lib/
#COPY ./opt/barbarian/ignite/libs/ignite-hadoop/ignite-*.jar /opt/barbarian/slider/lib/
COPY ./opt/barbarian/tez.tar.gz /opt/barbarian/tez.tar.gz
RUN mkdir -p $HIVE_LOG_DIR \
&& chown -R "$HIVE_USER" $HIVE_LOG_DIR \
&& chgrp -R "$HIVE_USER" $HIVE_LOG_DIR \
&& chown -R "$HIVE_USER" /opt/barbarian/hive \
&& chgrp -R "$HIVE_USER" /opt/barbarian/hive \
&& ln -s /opt/barbarian/hive/conf /etc/hive
# && ln -s /opt/barbarian/tez/conf /etc/tez
# && ln -s /opt/barbarian/slider/conf /etc/slider