2
我想運行Hadoop
和Flume
dockerized。我有一個帶有所有默認值的標準Hadoop
圖片。我看不出這些服務如何能夠將彼此之間的信息交換到獨立的容器中。碼頭互通信
Flume
的Dockerfile
看起來是這樣的:
FROM ubuntu:14.04.4
RUN apt-get update && apt-get install -q -y --no-install-recommends wget
RUN mkdir /opt/java
RUN wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" -qO- \
https://download.oracle.com/otn-pub/java/jdk/8u20-b26/jre-8u20-linux-x64.tar.gz \
| tar zxvf - -C /opt/java --strip 1
RUN mkdir /opt/flume
RUN wget -qO- http://archive.apache.org/dist/flume/1.6.0/apache-flume-1.6.0-bin.tar.gz \
| tar zxvf - -C /opt/flume --strip 1
ADD flume.conf /var/tmp/flume.conf
ADD start-flume.sh /opt/flume/bin/start-flume
ENV JAVA_HOME /opt/java
ENV PATH /opt/flume/bin:/opt/java/bin:$PATH
CMD [ "start-flume" ]
EXPOSE 10000
爲什麼50070是端口號
更多信息? – plaidshirt
它只是隨機的端口,你可以使用ports來代替這個 – Cortwave
應該是Hadoop端口嗎?哪一個? – plaidshirt