You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/08/27 08:49:55 UTC
[GitHub] [hadoop-ozone] elek commented on a change in pull request #1355: HDDS-4152. Archive container logs for kubernetes check
elek commented on a change in pull request #1355:
URL: https://github.com/apache/hadoop-ozone/pull/1355#discussion_r478259606
##########
File path: hadoop-ozone/dist/src/main/k8s/examples/testlib.sh
##########
@@ -77,6 +77,13 @@ start_k8s_env() {
wait_for_startup
}
+get_logs() {
+ mkdir -p logs
+ for pod in $(kubectl get pods -o custom-columns=NAME:.metadata.name | tail -n +2); do
Review comment:
It's a shame that we have no better solution. We can do `kubectl logs -l app=ozone` but it will fail when we add setup with more apps (like ozone + spark).
FTR: locally I use https://github.com/wercker/stern and it works well (but this loop is easier.)
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org