Skip to content

Commit

Permalink
[hotfix][test] Adds -e flag to interpret newline in the right way
Browse files Browse the repository at this point in the history
  • Loading branch information
XComp authored and zentol committed May 11, 2021
1 parent b5f375d commit 2502e40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flink-end-to-end-tests/test-scripts/common_yarn_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ END

function debug_copy_and_show_logs {
echo "Debugging failed YARN Docker test:"
echo "\nCurrently running containers"
echo -e "\nCurrently running containers"
docker ps

echo "\n\nCurrently running JVMs"
echo -e "\n\nCurrently running JVMs"
jps -v

echo "\n\nHadoop logs:"
echo -e "\n\nHadoop logs:"
mkdir -p $TEST_DATA_DIR/logs
docker cp master:/var/log/hadoop/ $TEST_DATA_DIR/logs/
ls -lisah $TEST_DATA_DIR/logs/hadoop
Expand All @@ -153,15 +153,15 @@ function debug_copy_and_show_logs {
cat $f
done

echo "\n\nDocker logs:"
echo -e "\n\nDocker logs:"
docker logs master

echo "\n\nFlink logs:"
echo -e "\n\nFlink logs:"
docker exec master bash -c "kinit -kt /home/hadoop-user/hadoop-user.keytab hadoop-user"
docker exec master bash -c "yarn application -list -appStates ALL"
application_id=`docker exec master bash -c "yarn application -list -appStates ALL" | grep -i "Flink" | grep -i "cluster" | awk '{print \$1}'`

echo "Application ID: '$application_id'"
echo -e "\n\nApplication ID: '$application_id'"
docker exec master bash -c "yarn logs -applicationId $application_id"

docker exec master bash -c "kdestroy"
Expand Down

0 comments on commit 2502e40

Please sign in to comment.