Skip to content

Commit f910e4f

Browse files
committed
YARN-3623. Add a config to indicate the Timeline Service version. Contributed by Xuan Gong.
1 parent 132478e commit f910e4f

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

hadoop-yarn-project/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ Release 2.8.0 - UNRELEASED
271271

272272
YARN-4349. Support CallerContext in YARN. (wtan via jianhe)
273273

274+
YARN-3623. Add a new config to indicate the Timeline Service version.
275+
(Xuan Gong via junping_du)
276+
274277
IMPROVEMENTS
275278

276279
YARN-644. Basic null check is not performed on passed in arguments before

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,9 @@ private static void addDeprecatedKeys() {
15381538
public static final String TIMELINE_SERVICE_PREFIX =
15391539
YARN_PREFIX + "timeline-service.";
15401540

1541+
public static final String TIMELINE_SERVICE_VERSION = TIMELINE_SERVICE_PREFIX
1542+
+ "version";
1543+
public static final float DEFAULT_TIMELINE_SERVICE_VERSION = 1.0f;
15411544
/**
15421545
* Comma seperated list of names for UIs hosted in the timeline server
15431546
* (For pluggable UIs).

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,20 @@
17651765

17661766
<!-- Timeline Service Configuration -->
17671767

1768+
<property>
1769+
<description>Indicate what is the current version of the running
1770+
timeline service. For example, if "yarn.timeline-service.version" is 1.5,
1771+
and "yarn.timeline-service.enabled" is true, it means the cluster will and
1772+
should bring up the timeline service v.1.5 (and nothing else).
1773+
On the client side, if the client uses the same version of timeline service,
1774+
it should succeed. If the client chooses to use a smaller version in spite of this,
1775+
then depending on how robust the compatibility story is between versions,
1776+
the results may vary.
1777+
</description>
1778+
<name>yarn.timeline-service.version</name>
1779+
<value>1.0f</value>
1780+
</property>
1781+
17681782
<property>
17691783
<description>Indicate to clients whether timeline service is enabled or not.
17701784
If enabled, clients will put entities and events to the timeline server.

0 commit comments

Comments
 (0)