diff --git a/Dockerfile b/Dockerfile index fba8575..eb8b306 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,9 +40,8 @@ RUN bash -c "if [ ! -f /opt/ros_hadoop/master/dist/hadoop-3.0.0.tar.gz ] ; then RUN tar -xzf /opt/ros_hadoop/latest.tgz -C /opt/ros_hadoop/latest --strip-components=1 && rm /opt/ros_hadoop/latest.tgz RUN tar -xzf /opt/ros_hadoop/master/dist/hadoop-3.0.0.tar.gz -C /opt/apache && rm /opt/ros_hadoop/master/dist/hadoop-3.0.0.tar.gz -RUN ln -s /opt/apache/hadoop-3.0.0 /opt/apache/hadoop && \ - ln -s /opt/ros_hadoop/master/lib/rosbaginputformat.jar /opt/ros_hadoop/latest/lib/rosbaginputformat.jar && \ - ip a && tree -d -L 3 /opt/apache/ +RUN ln -s /opt/apache/hadoop-3.0.0 /opt/apache/hadoop +RUN bash -c "if [ ! -f /opt/ros_hadoop/latest/lib/rosbaginputformat.jar ] ; then ln -s /opt/ros_hadoop/master/lib/rosbaginputformat.jar /opt/ros_hadoop/latest/lib/rosbaginputformat.jar ; fi" RUN printf "\n\n\nfs.defaultFS\nhdfs://localhost:9000\n\n" > /opt/apache/hadoop/etc/hadoop/core-site.xml && \ printf "\n\ndfs.replication\n1\n\n" > /opt/apache/hadoop/etc/hadoop/hdfs-site.xml && \