CESI: Intro Big Data - ajout exercice bdd clé/valeur et graphe

This commit is contained in:
2018-09-05 21:54:11 +02:00
parent 8f84189ed5
commit a58dc496c4
5 changed files with 91 additions and 13 deletions

View File

@ -36,6 +36,9 @@ RUN ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa &&\
COPY ./conf/supervisor.ini /etc/supervisor.d/hadoop.ini
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
EXPOSE 9870 8088
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor.d/hadoop.ini"]
CMD ["/docker-entrypoint.sh"]

View File

@ -12,16 +12,6 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
priority = 0
[program:namenode-format]
command = bin/hdfs namenode -format
directory = /opt/hadoop
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autostart = true
priority = 10
[program:namenode]
command = bin/hdfs --config etc/hadoop namenode
directory = /opt/hadoop

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eo pipefail
[ ! -e /var/container_run ] && bin/hdfs namenode -format
touch /var/container_run
/usr/bin/supervisord -c /etc/supervisor.d/hadoop.ini