DrakopoulosAj
5 years ago
3 changed files with 17 additions and 0 deletions
@ -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"] |
Binary file not shown.
@ -0,0 +1,3 @@ |
|||
#!/bin/bash |
|||
|
|||
$HADOOP_HOME/bin/hadoop jar $JAR_FILEPATH $CLASS_TO_RUN $PARAMS |
Loading…
Reference in new issue