wangyang0918 commented on a change in pull request #10746: [FLINK-15417] Remove the docker volume or mount when starting Mesos e… URL: https://github.com/apache/flink/pull/10746#discussion_r363720131
########## File path: flink-end-to-end-tests/test-scripts/test_mesos_wordcount.sh ########## @@ -23,14 +23,16 @@ source "$(dirname "$0")"/common.sh source "$(dirname "$0")"/common_mesos_docker.sh RESULT_HASH="72a690412be8928ba239c2da967328a5" -INPUT_ARGS="--input ${TEST_INFRA_DIR}/test-data/words" -OUTPUT_LOCATION="${TEST_DATA_DIR}/out/wc_out_mesos" -TEST_PROGRAM_JAR=${FLINK_DIR}/examples/batch/WordCount.jar +INPUT_LOCATION="${MESOS_END_TO_END_DIR}/test-data/words" +OUTPUT_LOCATION="${MESOS_END_TO_END_DIR}/test-data/out/wc_out_mesos" +TEST_PROGRAM_JAR="${MESOS_FLINK_DIR}/examples/batch/WordCount.jar" mkdir -p "${TEST_DATA_DIR}" start_flink_cluster_with_mesos -docker exec -it mesos-master nohup bash -c "${FLINK_DIR}/bin/flink run -p 1 ${TEST_PROGRAM_JAR} ${INPUT_ARGS} --output ${OUTPUT_LOCATION}" +docker exec -it mesos-master nohup bash -c "${MESOS_FLINK_DIR}/bin/flink run -p 1 ${TEST_PROGRAM_JAR} --input ${INPUT_LOCATION} --output ${OUTPUT_LOCATION}" +docker cp mesos-slave:"${MESOS_END_TO_END_DIR}/test-data/out" "${TEST_DATA_DIR}/out" -check_result_hash "Mesos WordCount test" "${OUTPUT_LOCATION}" "${RESULT_HASH}" +check_result_hash "Mesos WordCount test" "${TEST_DATA_DIR}/out/wc_out_mesos" "${RESULT_HASH}" +copy_logs_from_container Review comment: Copy and print logs when failed. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services