mirror of
https://github.com/silicoflare/docker-hadoop.git
synced 2026-05-26 20:17:59 +05:30
Add kafka installation
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -129,5 +129,15 @@ RUN echo "export SPARK_HOME=/usr/local/spark" >> ~/.bashrc && \
|
|||||||
# Install Pyspark
|
# Install Pyspark
|
||||||
RUN pip install pyspark
|
RUN pip install pyspark
|
||||||
|
|
||||||
|
# Install Kafka
|
||||||
|
RUN wget https://downloads.apache.org/kafka/3.6.1/kafka_2.13-3.6.1.tgz
|
||||||
|
RUN tar -xzvf kafka_2.13-3.6.1.tgz
|
||||||
|
RUN mv kafka_2.13-3.6.1 /usr/local/kafka
|
||||||
|
RUN echo "export KAFKA_HOME=/usr/local/kafka" >> ~/.bashrc && /
|
||||||
|
echo "export PATH=\$PATH:\$KAFKA_HOME/bin" >> ~/.bashrc
|
||||||
|
|
||||||
# Expose necessary ports
|
# Expose necessary ports
|
||||||
EXPOSE 9870 8088 9000
|
EXPOSE 9870 8088 9000
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/bash", "-c"]
|
||||||
|
CMD ["bash"]
|
||||||
Reference in New Issue
Block a user