Skip to content

TEZ-4274: Log Credential Tokens - #94

Closed
belugabehr wants to merge 2 commits into
apache:masterfrom
belugabehr:TEZ-4274
Closed

TEZ-4274: Log Credential Tokens#94
belugabehr wants to merge 2 commits into
apache:masterfrom
belugabehr:TEZ-4274

Conversation

@belugabehr

Copy link
Copy Markdown
Contributor

No description provided.

@jteagles

Copy link
Copy Markdown
Contributor

Was accidentally dropped as part of TEZ-2176. MapReduce logs credentials with this message.

""Executing with tokens: {}", credentials.getAllTokens()"

I wonder if we want to Update the message to better reflect purpose.

@belugabehr

Copy link
Copy Markdown
ContributorAuthor

What message would that be? Happy to update it.

@jteagles

Copy link
Copy Markdown
Contributor

I wasn't clear in my last reply. MAPREDUCE-6971 simplified the way logging is done. In Tez we prefer to log credentials only in debug, but the concept is the same. TezChild was modeled after YarnChild, so it may make sense to adopt similar change. As show in the link below.
apache/hadoop@453d48b#diff-9191ed128249f1e8510e92cc7c1fa1160d1743f7ffebe82dd5dab0b2cb38ad79L103

@belugabehr

Copy link
Copy Markdown
ContributorAuthor

@jteagles Updated as requested. Thanks!

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec19m 57sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ master Compile Tests _
+1 💚mvninstall14m 49smaster passed
+1 💚compile0m 30smaster passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04
+1 💚compile0m 29smaster passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
+1 💚checkstyle1m 2smaster passed
+1 💚javadoc0m 38smaster passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04
+1 💚javadoc0m 24smaster passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
+0 🆗spotbugs1m 16sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs1m 14smaster passed
_ Patch Compile Tests _
+1 💚mvninstall0m 19sthe patch passed
+1 💚compile0m 20sthe patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04
+1 💚javac0m 20sthe patch passed
+1 💚compile0m 19sthe patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
+1 💚javac0m 19sthe patch passed
+1 💚checkstyle0m 11stez-runtime-internals: The patch generated 0 new + 8 unchanged - 1 fixed = 8 total (was 9)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 18sthe patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04
+1 💚javadoc0m 16sthe patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
+1 💚findbugs0m 53sthe patch passed
_ Other Tests _
+1 💚unit0m 45stez-runtime-internals in the patch passed.
+1 💚asflicense0m 15sThe patch does not generate ASF License warnings.
43m 33s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-94/2/artifact/out/Dockerfile
GITHUB PR#94
JIRA IssueTEZ-4274
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux b093570f9306 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / 464d86d
Default JavaPrivate Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-94/2/testReport/
Max. process+thread count90 (vs. ulimit of 5500)
modulesC: tez-runtime-internals U: tez-runtime-internals
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-94/2/console
versionsgit=2.25.1 maven=3.6.3 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@abstractdog

abstractdog commented Jul 28, 2021

Copy link
Copy Markdown
Contributor

nice catch!

credentials are already logged in TezChild constructor by:
https://github.com/apache/tez/blob/master/tez-runtime-internals/src/main/java/org/apache/tez/runtime/task/TezChild.java#L203

 TezCommonUtils.logCredentials(LOG, credentials, "tezChildInit");

wouldn't this be enough? not 100% in line with hadoop, but adds a useful small context message

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec12m 45sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ master Compile Tests _
+1 💚mvninstall12m 53smaster passed
+1 💚compile0m 29smaster passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04
+1 💚compile0m 29smaster passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
+1 💚checkstyle1m 0smaster passed
+1 💚javadoc0m 40smaster passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04
+1 💚javadoc0m 27smaster passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
+0 🆗spotbugs1m 11sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs1m 8smaster passed
_ Patch Compile Tests _
+1 💚mvninstall0m 16sthe patch passed
+1 💚compile0m 16sthe patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04
+1 💚javac0m 16sthe patch passed
+1 💚compile0m 14sthe patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
+1 💚javac0m 14sthe patch passed
+1 💚checkstyle0m 9stez-runtime-internals: The patch generated 0 new + 8 unchanged - 1 fixed = 8 total (was 9)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 14sthe patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04
+1 💚javadoc0m 13sthe patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
+1 💚findbugs0m 37sthe patch passed
_ Other Tests _
+1 💚unit0m 37stez-runtime-internals in the patch passed.
+1 💚asflicense0m 14sThe patch does not generate ASF License warnings.
33m 34s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-94/3/artifact/out/Dockerfile
GITHUB PR#94
JIRA IssueTEZ-4274
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux 4802f1882e82 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / 464d86d
Default JavaPrivate Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-94/3/testReport/
Max. process+thread count102 (vs. ulimit of 5500)
modulesC: tez-runtime-internals U: tez-runtime-internals
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-94/3/console
versionsgit=2.25.1 maven=3.6.3 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@tez-yetus

Copy link
Copy Markdown

Thanks, @abstractdog. I totally missed this change. @belugabehr is the current credential logging enough for your needs?

@jteagles

Copy link
Copy Markdown
Contributor

Sorry, the above message was from me.

@abstractdog

Copy link
Copy Markdown
Contributor

closing this as housekeeping, please reopen if needed

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@belugabehr@jteagles@hadoop-yetus@abstractdog@tez-yetus