Browse Source

Upload files to 'submit'

master
DrakopoulosAj 5 years ago
parent
commit
2121f10f13
  1. 14
      submit/Dockerfile
  2. BIN
      submit/WordCount.jar
  3. 3
      submit/run.sh

14
submit/Dockerfile

@ -0,0 +1,14 @@
FROM bde2020/hadoop-base:2.0.0-hadoop3.2.1-java8
MAINTAINER Ivan Ermilov <ivan.s.ermilov@gmail.com>
COPY WordCount.jar /opt/hadoop/applications/WordCount.jar
ENV JAR_FILEPATH="/opt/hadoop/applications/WordCount.jar"
ENV CLASS_TO_RUN="WordCount"
ENV PARAMS="/input /output"
ADD run.sh /run.sh
RUN chmod a+x /run.sh
CMD ["/run.sh"]

BIN
submit/WordCount.jar

Binary file not shown.

3
submit/run.sh

@ -0,0 +1,3 @@
#!/bin/bash
$HADOOP_HOME/bin/hadoop jar $JAR_FILEPATH $CLASS_TO_RUN $PARAMS
Loading…
Cancel
Save