Prabhu Joseph created YARN-10884:
------------------------------------
Summary: EntityGroupFSTimelineStore fails to parse log files which
has empty owner
Key: YARN-10884
URL: https://issues.apache.org/jira/browse/YARN-10884
Project: Hadoop YARN
Issue Type: Improvement
Components: timelineserver
Affects Versions: 3.3.1
Reporter: Prabhu Joseph
Assignee: Prabhu Joseph
Due to [HADOOP-17848|[HADOOP-17848] Hadoop NativeAzureFileSystem append removes
ownership set on the file - ASF JIRA (apache.org)] - Wasb FileSystem sets owner
as empty during append operation.
ATS1.5 fails to read such files with below error
{code:java}
java.lang.IllegalArgumentException: Null user
at
org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:1271)
at
org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:1258)
at
org.apache.hadoop.yarn.server.timeline.LogInfo.parsePath(LogInfo.java:141)
at
org.apache.hadoop.yarn.server.timeline.LogInfo.parseForStore(LogInfo.java:114)
at
org.apache.hadoop.yarn.server.timeline.EntityGroupFSTimelineStore$AppLogs.parseSummaryLogs(EntityGroupFSTimelineStore.java:701)
at
org.apache.hadoop.yarn.server.timeline.EntityGroupFSTimelineStore$AppLogs.parseSummaryLogs(EntityGroupFSTimelineStore.java:675)
at
org.apache.hadoop.yarn.server.timeline.EntityGroupFSTimelineStore$ActiveLogParser.run(EntityGroupFSTimelineStore.java:888)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748){code}
It gets ownership of the file to check ACL. In case of disabled ACL check, this
is not required. Will suggest to add anonymous user in case of empty user.
{code}
if (owner.isEmpty()) {
user = "anonymous";
} else {
user = owner;
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]