構建hadoop僞分佈式Dockerfile

Dockerfile

FROM guxiaotu/hadoop:2.7.5-alpine
MAINTAINER guxiaotu <524343695@qq.com>

ENV USER=root

ADD bootstrap.sh /usr/local/hadoop/bootstrap.sh
RUN chmod a+x /usr/local/hadoop/bootstrap.sh
CMD ["/bin/bash", "/usr/local/hadoop/bootstrap.sh"]
EXPOSE 9000 50070

bootstrap.sh

#!/bin/bash
/usr/sbin/sshd
./root/hadoop-2.7.5/sbin/start-dfs.sh && tail -f /dev/null
相關文章
相關標籤/搜索