You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2021/05/11 08:23:54 UTC
[flink] 01/02: [hotfix][test] Adds -e flag to interpret newline in
the right way
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch release-1.13
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 2502e40d56bbcda330ca60477c3fc965bd53d15a
Author: Matthias Pohl <ma...@ververica.com>
AuthorDate: Fri May 7 13:42:44 2021 +0200
[hotfix][test] Adds -e flag to interpret newline in the right way
---
flink-end-to-end-tests/test-scripts/common_yarn_docker.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/flink-end-to-end-tests/test-scripts/common_yarn_docker.sh b/flink-end-to-end-tests/test-scripts/common_yarn_docker.sh
index a4ffca7..95d3882 100755
--- a/flink-end-to-end-tests/test-scripts/common_yarn_docker.sh
+++ b/flink-end-to-end-tests/test-scripts/common_yarn_docker.sh
@@ -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
@@ -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"