Author: gourksaha
Date: Wed Nov 12 07:46:57 2014
New Revision: 1638709
URL: http://svn.apache.org/r1638709
Log:
add log aggregation details
Modified:
incubator/slider/site/trunk/content/docs/slider_specs/resource_specification.md
Modified:
incubator/slider/site/trunk/content/docs/slider_specs/resource_specification.md
URL:
http://svn.apache.org/viewvc/incubator/slider/site/trunk/content/docs/slider_specs/resource_specification.md?rev=1638709&r1=1638708&r2=1638709&view=diff
==============================================================================
---
incubator/slider/site/trunk/content/docs/slider_specs/resource_specification.md
(original)
+++
incubator/slider/site/trunk/content/docs/slider_specs/resource_specification.md
Wed Nov 12 07:46:57 2014
@@ -234,5 +234,43 @@ Specifically, for the above example you
## <a name="logagg"></a>Using Log Aggregation
-The feature is not yet committed.
-
\ No newline at end of file
+Log aggregation at regular intervals for long running services (LRS) needs to
be enabled at the YARN level before
+any application can exploit this functionality. To enable set the following
property to a positive value of 3600 (in secs)
+or more. If set to a positive value less than 3600 (1 hour) this property
defaults to 3600. To disable log aggregation
+set it to -1.
+
+ <property>
+
<name>yarn.nodemanager.log-aggregation.roll-monitoring-interval-seconds</name>
+ <value>3600</value>
+ </property>
+
+Subsequently every application owner has the flexibility to set the include
and exclude patterns of file names that
+they intent to aggregate. In Slider the resources.json file can be used to
specify the include and exclude patterns
+of files that need to be backed up under the default log directory of the
application. These properties needs to be
+set at the global level as shown below -
+
+ {
+ "schema": "http://example.org/specification/v2.0.0",
+ "metadata": {
+ },
+ "global": {
+ "yarn.log.include.patterns": "hbase*.*",
+ "yarn.log.exclude.patterns": "hbase*.out"
+ },
+ "components": {
+ "HBASE_MASTER": {
+ "yarn.role.priority": "1",
+ "yarn.component.instances": "1",
+ },
+ "HBASE_REGIONSERVER": {
+ "yarn.role.priority": "1",
+ "yarn.component.instances": "1",
+ },
+ "slider-appmaster": {
+ }
+ }
+ }
+
+
+The details of the YARN Log Aggregation feature can be found at
[YARN-2468](https://issues.apache.org/jira/browse/YARN-2468).
+