Mastering Hadoop 3
上QQ阅读APP看书,第一时间看更新

Configuring YARN Timeline server

The Timeline server requires a few basic configurations to start but it also provides various configuration options for specific purposes. Let's look at a few configurations of a Timeline server:

  • Basic configuration: The basic configuration is good enough to start a Timeline server, which generally allows the client and resource manager to publish their metrics, as follows:
        <property>
          <description>
          If enabled, the end user can post entities using TimelineClient library.
</description> <name>YARN.timeline-service.enabled</name> <value>true</value> </property> <property> <description>if enabled the system metrics send by Resource Manager will be
published on the timeline server..</description> <name>YARN.resourcemanager.system-metrics-publisher.enabled</name> <value>true</value> </property> <property> <description> if enabled Client can query application data directly from Timeline server.</description> <name>YARN.timeline-service.generic-application-history.enabled</name> <value>true</value> </property>

 

  • Host configuration: The host for a Timeline server is set via the following configuration. It indicates the web address of the Timeline server, for example:
        <property>
          <name>YARN.timeline-service.hostname</name>
          <value>0.0.0.0</value>
        </property>
<property> <description>Address for the Timeline server to start the RPC server.
</description> <name>YARN.timeline-service.address</name> <value>${YARN.timeline-service.hostname}:10200</value> </property> <property> <description>The http address of the Timeline service web application.
</description> <name>YARN.timeline-service.webapp.address</name> <value>${YARN.timeline-service.hostname}:8188</value> </property> <property> <description>The https address of the Timeline service web application.
</description> <name>YARN.timeline-service.webapp.https.address</name> <value>${YARN.timeline-service.hostname}:8190</value> </property> <property> <description>Handler thread count to serve the client RPC requests.
</description> <name>YARN.timeline-service.handler-thread-count</name> <value>10</value> </property>
  • Starting the Timeline server: Finally we can start the Timeline server using following command:
        YARN timelineserver