<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: YARN Applications display wrong formatted duration in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84635#M35427</link>
    <description>&lt;P&gt;Just to update this post, I have upgraded to CM/CDH 6.1 and I still experiencing the same thing! I am out of ideas and don't know how to fix this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 10:13:46 GMT</pubDate>
    <dc:creator>maziyar</dc:creator>
    <dc:date>2019-01-08T10:13:46Z</dc:date>
    <item>
      <title>YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/63694#M35423</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a problem that I can't find any logical solution. Every job that requires YARN it will show up in "YARN Applications" UI on Cloudera Manager. Even though I can see all the running jobs on YARN Applications UI, &lt;SPAN&gt;ResourceManager UI,&amp;nbsp;&lt;/SPAN&gt;or Spark UI I have to widen my time selector to a year or two to see the finished jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this has something to do with displayed time. All the running jobs have the static `17540.7d` as their duration:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2018-01-09 18.14.26.png" style="width: 181px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/3767i29F796E9EA020C42/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2018-01-09 18.14.26.png" alt="Screenshot 2018-01-09 18.14.26.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At&amp;nbsp;the same time these applications on `&lt;SPAN&gt;ResourceManager`&amp;nbsp;are showing up with the right date/time:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2018-01-15 19.58.56.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/3768i1A29943DD70815CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2018-01-15 19.58.56.png" alt="Screenshot 2018-01-15 19.58.56.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As you can see this makes it really hard to monitor and track anything in YARN Applications view in Cloudera Manager.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cloudera Manager express: 5.13.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CDH:&amp;nbsp;5.13.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ubuntu Server 16.04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I checked all the machines date/time to see if they are not sync. But unfortunately I can't find any issue in my cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: there is only one similar issue here, but I guess he can't see any jobs even by&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;widening time window. (I can see jobs with wider time window 1-2yrs)&lt;/P&gt;&lt;P class="p1"&gt;&lt;A href="http://community.cloudera.com/t5/Batch-Processing-and-Workflow/Completed-YARN-applications-not-visible-in-Cloudera-Manager-s/m-p/19858#M617" target="_blank"&gt;http://community.cloudera.com/t5/Batch-Processing-and-Workflow/Completed-YARN-applications-not-visible-in-Cloudera-Manager-s/m-p/19858#M617&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maziyar&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="content"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:44:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/63694#M35423</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2022-09-16T12:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/63791#M35424</link>
      <description>&lt;P&gt;I clear all the logs and previous jobs but the CM still have all the finished jobs with the wrong date. Also, still shows the new apps with that weird duration (which it looks like the converting&amp;nbsp;the&amp;nbsp;milliseconds to another time format&amp;nbsp;went wrong).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know where is this data coming from? I have a MySQL setup for my CM. Can I look for this to see if this is a front-end issue or back-end or being inserted into file/table wrongly from the beginning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 17:17:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/63791#M35424</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2018-01-18T17:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/63879#M35425</link>
      <description>&lt;P&gt;If I export the current job it shows me this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  "applications" : [ {
    "applicationId" : "application_1516618738289_0001",
    "name" : "livy-session-0",
    "startTime" : "1970-01-01T00:00:00.000Z",
    "user" : "maziyar",
    "pool" : "root.users.maziyar",
    "state" : "RUNNING",
    "progress" : 10.0,
    "attributes" : { },
    "mr2AppInformation" : { }
  }, {
    "applicationId" : "application_1516618738289_0002",
    "name" : "Main",
    "startTime" : "1970-01-01T00:00:00.000Z",
    "user" : "maziyar",
    "pool" : "root.users.maziyar",
    "state" : "RUNNING",
    "progress" : 10.0,
    "attributes" : { },
    "mr2AppInformation" : { }
  } ],
  "warnings" : [ ]
}&lt;/PRE&gt;&lt;P&gt;The startTime is in 1970 for some reason! This date is really famouse in Unix:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"January 1, 1970 is the so called Unix epoch. It's the date where they started counting the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Unix_time" target="_blank"&gt;Unix time&lt;/A&gt;&lt;SPAN&gt;. If you get this date as a return value, it usually means that the conversion of your date to the Unix timestamp returned a (near-) zero result. So the date conversion doesn't succeed"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So is it the backend of Cloudera Manager that has `&amp;nbsp;returns 0` or the MySQL conversion some where pass&amp;nbsp;unsupported format&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 11:43:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/63879#M35425</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2018-01-22T11:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/64010#M35426</link>
      <description>&lt;P&gt;I just upgraded the entire cluster to 5.14 and the issue still remains:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CDH: 5.14&lt;/P&gt;&lt;P&gt;CM: 5.14&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:40:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/64010#M35426</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2018-01-25T16:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84635#M35427</link>
      <description>&lt;P&gt;Just to update this post, I have upgraded to CM/CDH 6.1 and I still experiencing the same thing! I am out of ideas and don't know how to fix this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 10:13:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84635#M35427</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2019-01-08T10:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84671#M35428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/19408"&gt;@maziyar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick question, does&amp;nbsp;your cluster have&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;YARN ACL turned on? You can search&amp;nbsp;&lt;STRONG&gt;yarn.acl.enable&lt;/STRONG&gt; from Cloudera Manager YARN Configuration to find out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This issue you&amp;nbsp;have been experiencing may be&amp;nbsp;caused by "startedTime":0 in RM REST API when ACLs are enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the&amp;nbsp;YARN ACLs are enabled, then you need to define on the queue if the user has privilege to to administer apps (e.g. seeing duration information). This is controlled by &lt;STRONG&gt;aclAdministerApps&lt;/STRONG&gt; parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can send us the&amp;nbsp;air-scheduler.xml for examine, it will be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Li&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 22:29:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84671#M35428</guid>
      <dc:creator>lwang</dc:creator>
      <dc:date>2019-01-08T22:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84723#M35429</link>
      <description>&lt;P&gt;.Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/5016"&gt;@lwang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes! I have&amp;nbsp;&lt;STRONG&gt;yarn.acl.enable&amp;nbsp;&lt;/STRONG&gt;to not allow other users to have admin level access to the queues (mostly not kill others' application by mistake). My username has an admin level access, but I have the same wrong format for my own applications as well as the other users' apps&amp;nbsp;in YARN UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the section "&lt;STRONG&gt;Administration Access Control&lt;/STRONG&gt;" of the queues, there are only two options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Allow anyone to administer this pool&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Allow these users and groups to administer this pool&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which I chose the &lt;STRONG&gt;second&lt;/STRONG&gt; one with listing my own username and few others (system).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I couldn't find any file name &lt;STRONG&gt;fair-scheduler.xml&lt;/STRONG&gt; in all my servers, is this something I should generate? Also, I couldn't find "startedTime" in&amp;nbsp;&lt;STRONG&gt;aclAdministerApps&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I have the JSON format of what's inside&amp;nbsp;&lt;STRONG&gt;aclAdministerApps &lt;/STRONG&gt;(I think it is generated automatically):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
	"defaultFairSharePreemptionThreshold": null,
	"defaultFairSharePreemptionTimeout": null,
	"defaultMinSharePreemptionTimeout": null,
	"defaultQueueSchedulingPolicy": "drf",
	"queueMaxAMShareDefault": null,
	"queueMaxAppsDefault": null,
	"queuePlacementRules": [{
		"create": false,
		"name": "specified",
		"queue": null,
		"rules": null
	}, {
		"create": true,
		"name": "nestedUserQueue",
		"queue": null,
		"rules": [{
			"create": true,
			"name": "default",
			"queue": "users",
			"rules": null
		}]
	}, {
		"create": null,
		"name": "default",
		"queue": null,
		"rules": null
	}],
	"queues": [{
		"aclAdministerApps": "maziyar ",
		"aclSubmitApps": "maziyar,test-user,hdfs,admin hadoop-admin,admin,hdfs,hive",
		"allowPreemptionFrom": null,
		"fairSharePreemptionThreshold": null,
		"fairSharePreemptionTimeout": null,
		"minSharePreemptionTimeout": null,
		"name": "root",
		"queues": [{
			"aclAdministerApps": "maziyar,root,spark,hdfs ",
			"aclSubmitApps": "*",
			"allowPreemptionFrom": null,
			"fairSharePreemptionThreshold": null,
			"fairSharePreemptionTimeout": null,
			"minSharePreemptionTimeout": null,
			"name": "users",
			"queues": [{
				"aclAdministerApps": null,
				"aclSubmitApps": null,
				"allowPreemptionFrom": null,
				"fairSharePreemptionThreshold": null,
				"fairSharePreemptionTimeout": null,
				"minSharePreemptionTimeout": null,
				"name": "maziyar",
				"queues": [],
				"schedulablePropertiesList": [{
					"impalaClampMemLimitQueryOption": null,
					"impalaDefaultQueryMemLimit": null,
					"impalaDefaultQueryOptions": null,
					"impalaMaxMemory": null,
					"impalaMaxQueryMemLimit": null,
					"impalaMaxQueuedQueries": null,
					"impalaMaxRunningQueries": null,
					"impalaMinQueryMemLimit": null,
					"impalaQueueTimeout": null,
					"maxAMShare": null,
					"maxChildResources": null,
					"maxResources": {
						"cpuPercent": 30.0,
						"memory": null,
						"memoryPercent": 30.0,
						"vcores": null
					},
					"maxRunningApps": null,
					"minResources": null,
					"scheduleName": "default",
					"weight": 3.0
				}],
				"schedulingPolicy": "drf",
				"type": null
			}],
			"schedulablePropertiesList": [{
				"impalaClampMemLimitQueryOption": null,
				"impalaDefaultQueryMemLimit": null,
				"impalaDefaultQueryOptions": null,
				"impalaMaxMemory": null,
				"impalaMaxQueryMemLimit": null,
				"impalaMaxQueuedQueries": null,
				"impalaMaxRunningQueries": null,
				"impalaMinQueryMemLimit": null,
				"impalaQueueTimeout": null,
				"maxAMShare": null,
				"maxChildResources": {
					"cpuPercent": 10.0,
					"memory": null,
					"memoryPercent": 10.0,
					"vcores": null
				},
				"maxResources": {
					"cpuPercent": 60.0,
					"memory": null,
					"memoryPercent": 60.0,
					"vcores": null
				},
				"maxRunningApps": 15,
				"minResources": null,
				"scheduleName": "default",
				"weight": 4.0
			}],
			"schedulingPolicy": "drf",
			"type": "parent"
		}, {
			"aclAdministerApps": "*",
			"aclSubmitApps": "*",
			"allowPreemptionFrom": null,
			"fairSharePreemptionThreshold": null,
			"fairSharePreemptionTimeout": null,
			"minSharePreemptionTimeout": null,
			"name": "default",
			"queues": [],
			"schedulablePropertiesList": [{
				"impalaClampMemLimitQueryOption": null,
				"impalaDefaultQueryMemLimit": null,
				"impalaDefaultQueryOptions": null,
				"impalaMaxMemory": null,
				"impalaMaxQueryMemLimit": null,
				"impalaMaxQueuedQueries": null,
				"impalaMaxRunningQueries": null,
				"impalaMinQueryMemLimit": null,
				"impalaQueueTimeout": null,
				"maxAMShare": null,
				"maxChildResources": null,
				"maxResources": {
					"cpuPercent": 10.0,
					"memory": null,
					"memoryPercent": 10.0,
					"vcores": null
				},
				"maxRunningApps": null,
				"minResources": null,
				"scheduleName": "default",
				"weight": 1.0
			}],
			"schedulingPolicy": "fifo",
			"type": null
		}, {
			"aclAdministerApps": "maziyar ",
			"aclSubmitApps": "mziyar,hdfs,hive ",
			"allowPreemptionFrom": null,
			"fairSharePreemptionThreshold": null,
			"fairSharePreemptionTimeout": null,
			"minSharePreemptionTimeout": null,
			"name": "multivac",
			"queues": [],
			"schedulablePropertiesList": [{
				"impalaClampMemLimitQueryOption": null,
				"impalaDefaultQueryMemLimit": null,
				"impalaDefaultQueryOptions": null,
				"impalaMaxMemory": null,
				"impalaMaxQueryMemLimit": null,
				"impalaMaxQueuedQueries": null,
				"impalaMaxRunningQueries": null,
				"impalaMinQueryMemLimit": null,
				"impalaQueueTimeout": null,
				"maxAMShare": null,
				"maxChildResources": null,
				"maxResources": {
					"cpuPercent": 80.0,
					"memory": null,
					"memoryPercent": 80.0,
					"vcores": null
				},
				"maxRunningApps": 3,
				"minResources": null,
				"scheduleName": "default",
				"weight": 5.0
			}],
			"schedulingPolicy": "drf",
			"type": null
		}],
		"schedulablePropertiesList": [{
			"impalaClampMemLimitQueryOption": null,
			"impalaDefaultQueryMemLimit": null,
			"impalaDefaultQueryOptions": null,
			"impalaMaxMemory": null,
			"impalaMaxQueryMemLimit": null,
			"impalaMaxQueuedQueries": null,
			"impalaMaxRunningQueries": null,
			"impalaMinQueryMemLimit": null,
			"impalaQueueTimeout": null,
			"maxAMShare": null,
			"maxChildResources": null,
			"maxResources": null,
			"maxRunningApps": null,
			"minResources": null,
			"scheduleName": "default",
			"weight": 1.0
		}],
		"schedulingPolicy": "drf",
		"type": null
	}],
	"userMaxAppsDefault": null,
	"users": []
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks, I feel we are close to solving this problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 14:18:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84723#M35429</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2019-01-09T14:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84740#M35430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/19408"&gt;@maziyar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great we are making progress. BTW, are your cluster kerberized? And is the &lt;SPAN&gt;authentication for the web UI turned on&amp;nbsp;(SPNEGO)? You can find out by search "Enable Kerberos Authentication for HTTP Web-Consoles" from CM UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you attach the fair-scheduler.xml that is deployed on the RM nodes? The json is a CM internal format that gets translated into the xml and I am not sure how that is converted and what the final XML is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can pull the proper xml down from the CM&amp;nbsp;UI -&amp;gt; yarn -&amp;gt; instances -&amp;gt; active RM -&amp;gt; Processes -&amp;gt; fair-scheduler.xml . That file is readable and gives a good view of what is there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 19:44:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84740#M35430</guid>
      <dc:creator>lwang</dc:creator>
      <dc:date>2019-01-09T19:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84812#M35431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/5016"&gt;@lwang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. My cluster is not&amp;nbsp;&lt;SPAN&gt;K&lt;/SPAN&gt;&lt;SPAN&gt;erberized. Also,&amp;nbsp;SPNEGO is not selected/enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my&amp;nbsp;fair-scheduler.xml file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;allocations&amp;gt;
    &amp;lt;queue name="root"&amp;gt;
        &amp;lt;weight&amp;gt;1.0&amp;lt;/weight&amp;gt;
        &amp;lt;schedulingPolicy&amp;gt;drf&amp;lt;/schedulingPolicy&amp;gt;
        &amp;lt;aclSubmitApps&amp;gt;maziyar,test-user,hdfs,admin iscpif-hadoop,admin,hdfs,hive&amp;lt;/aclSubmitApps&amp;gt;
        &amp;lt;aclAdministerApps&amp;gt;maziyar,admin &amp;lt;/aclAdministerApps&amp;gt;
        &amp;lt;queue name="users" type="parent"&amp;gt;
            &amp;lt;maxResources&amp;gt;60.0%&amp;lt;/maxResources&amp;gt;
            &amp;lt;maxChildResources&amp;gt;10.0%&amp;lt;/maxChildResources&amp;gt;
            &amp;lt;maxRunningApps&amp;gt;15&amp;lt;/maxRunningApps&amp;gt;
            &amp;lt;weight&amp;gt;4.0&amp;lt;/weight&amp;gt;
            &amp;lt;schedulingPolicy&amp;gt;drf&amp;lt;/schedulingPolicy&amp;gt;
            &amp;lt;aclSubmitApps&amp;gt;*&amp;lt;/aclSubmitApps&amp;gt;
            &amp;lt;aclAdministerApps&amp;gt;maziyar,root,spark,hdfs &amp;lt;/aclAdministerApps&amp;gt;
            &amp;lt;queue name="mpanahi"&amp;gt;
                &amp;lt;maxResources&amp;gt;30.0%&amp;lt;/maxResources&amp;gt;
                &amp;lt;weight&amp;gt;3.0&amp;lt;/weight&amp;gt;
                &amp;lt;schedulingPolicy&amp;gt;drf&amp;lt;/schedulingPolicy&amp;gt;
            &amp;lt;/queue&amp;gt;
        &amp;lt;/queue&amp;gt;
        &amp;lt;queue name="default"&amp;gt;
            &amp;lt;maxResources&amp;gt;10.0%&amp;lt;/maxResources&amp;gt;
            &amp;lt;weight&amp;gt;1.0&amp;lt;/weight&amp;gt;
            &amp;lt;schedulingPolicy&amp;gt;fifo&amp;lt;/schedulingPolicy&amp;gt;
            &amp;lt;aclSubmitApps&amp;gt;*&amp;lt;/aclSubmitApps&amp;gt;
            &amp;lt;aclAdministerApps&amp;gt;*&amp;lt;/aclAdministerApps&amp;gt;
        &amp;lt;/queue&amp;gt;
        &amp;lt;queue name="multivac"&amp;gt;
            &amp;lt;maxResources&amp;gt;80.0%&amp;lt;/maxResources&amp;gt;
            &amp;lt;maxRunningApps&amp;gt;3&amp;lt;/maxRunningApps&amp;gt;
            &amp;lt;weight&amp;gt;5.0&amp;lt;/weight&amp;gt;
            &amp;lt;schedulingPolicy&amp;gt;drf&amp;lt;/schedulingPolicy&amp;gt;
            &amp;lt;aclSubmitApps&amp;gt;mziyar,hdfs,hive &amp;lt;/aclSubmitApps&amp;gt;
            &amp;lt;aclAdministerApps&amp;gt;maziyar &amp;lt;/aclAdministerApps&amp;gt;
        &amp;lt;/queue&amp;gt;
    &amp;lt;/queue&amp;gt;
    &amp;lt;defaultQueueSchedulingPolicy&amp;gt;drf&amp;lt;/defaultQueueSchedulingPolicy&amp;gt;
    &amp;lt;queuePlacementPolicy&amp;gt;
        &amp;lt;rule name="specified" create="false"/&amp;gt;
        &amp;lt;rule name="nestedUserQueue" create="true"&amp;gt;
            &amp;lt;rule name="default" create="true" queue="users"/&amp;gt;
        &amp;lt;/rule&amp;gt;
        &amp;lt;rule name="default"/&amp;gt;
    &amp;lt;/queuePlacementPolicy&amp;gt;
&amp;lt;/allocations&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your follow up, I really appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Maziyar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 10:36:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84812#M35431</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2019-01-11T10:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84833#M35432</link>
      <description>&lt;P&gt;Hi Maziyar and Li,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are definitely on the right track here.&amp;nbsp; I see that the top-level root queue has "aclAdministerApps=maziyar,admin", which limits YARN API access to some of the time metrics for the application.&amp;nbsp; If you're not one of these users when you make the API call you won't get correct value returned for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;startedTime&lt;/LI&gt;&lt;LI&gt;finishedTime&lt;/LI&gt;&lt;LI&gt;elapsedTime&lt;/LI&gt;&lt;LI&gt;logAggregationStatus&lt;/LI&gt;&lt;LI&gt;amHostHttpAddress&lt;/LI&gt;&lt;LI&gt;usedResources&lt;/LI&gt;&lt;LI&gt;allocatedMB&lt;/LI&gt;&lt;LI&gt;allocatedVCores&lt;/LI&gt;&lt;LI&gt;runningContainers&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Although you will get some basic application info, so you'll see the application, but metrics will be wrong, just like you report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the question is which user is the CM service using to interact with the YARN API.&amp;nbsp; I did some testing and reproduced your issue by limiting the aclAdministerApps property to "yarn".&amp;nbsp; I then found that when I add "dr.who" to&amp;nbsp;&lt;SPAN&gt;aclAdministerApps at the root level, it starts working properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, try modifying your root level ACLs to be "aclAdministerApps=maziyar,admin,dr.who", refresh the&amp;nbsp;Dynamic Resource Pool (DRP) configuration, and see if it resolves the issue for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 18:55:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84833#M35432</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2019-01-11T18:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84989#M35433</link>
      <description>Hi Nick,&lt;BR /&gt;&lt;BR /&gt;Thanks for the advice. I have added "dr.who" to the list and now everything is back to normal! Many thanks mate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 16 Jan 2019 15:41:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/84989#M35433</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2019-01-16T15:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85051#M35434</link>
      <description>&lt;P&gt;Maziyar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was discussing this issue internally and adding "dr.who" to the adminACL has the side effect of allowing all users to have access, so we don't want that.&amp;nbsp; I know we're on the right track here, we just need to get the correct user or group added to the adminACL for CM.&amp;nbsp; I'm researching and will update as soon as I have the answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 15:52:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85051#M35434</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2019-01-17T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85052#M35435</link>
      <description>Fantastic! Many thanks Nick and looking forward to the right solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 17 Jan 2019 16:17:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85052#M35435</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2019-01-17T16:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85129#M35436</link>
      <description>&lt;P&gt;Hi Maziyar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found that CM uses the "hue" user to interact with the YARN API, so try changing the&amp;nbsp;&lt;SPAN&gt;root level ACL to be "aclAdministerApps=maziyar,admin,hue", refresh the&amp;nbsp;Dynamic Resource Pool (DRP) configuration, and&amp;nbsp;test if it still resolves the issue for you.&amp;nbsp; This will be much more restricted than using "dr.who" but allow the CM Web UI to function properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 16:27:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85129#M35436</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2019-01-18T16:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85131#M35437</link>
      <description>Hi Nick,&lt;BR /&gt;&lt;BR /&gt;Unfortunately, removing dr.who and adding hue resulted in the same problem as I had initially. I do agree to add hue would be much safer and restricted than dr.who, but it didn't work.&lt;BR /&gt;&lt;BR /&gt;I am looking forward to something similar to hue to solve this issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Maziyar</description>
      <pubDate>Fri, 18 Jan 2019 17:22:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85131#M35437</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2019-01-18T17:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85198#M35438</link>
      <description>&lt;P&gt;Hi Maziyar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm digging in to this again.&amp;nbsp; I clearly see messages in the RM log showing "dr.who" is the user accessing the YARN API.&amp;nbsp; I'm researching further so I hopefully can provide the correct answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 19:15:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85198#M35438</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2019-01-21T19:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85480#M35439</link>
      <description>&lt;P&gt;Hi Maziyar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The information I had about user "hue" being used by CM to access YARN API is correct for kerberized clusters, but in your case we know that the cluster is not kerberized and&amp;nbsp;we see "dr.who" is used by CM.&amp;nbsp; Consequently, I think that adding "dr.who" to the aclAdminsterApps property is the only solution for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating an internal improvement request for&amp;nbsp;Cloudera Manager (CM) to also use the use "hue" if ACLs are turned on in a non-kerberized cluster.&amp;nbsp; That way the behavior will be consistent and will provide some level of restriction on who can administer queues in a non-kerberized environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Internal Improvement JIRA created for CM - look for this change in a future release of CDH (no guarantees, but I hope we implement this change)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 17:00:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85480#M35439</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2019-01-25T17:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: YARN Applications display wrong formatted duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85763#M35440</link>
      <description>Hi Nick,&lt;BR /&gt;&lt;BR /&gt;That would be great! Thank you so much for your time and helping me in this matter, I really appreciate it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 01 Feb 2019 09:13:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-Applications-display-wrong-formatted-duration/m-p/85763#M35440</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2019-02-01T09:13:37Z</dc:date>
    </item>
  </channel>
</rss>

