Skip to content

Commit cdb2c64

Browse files
ryan-williamsAndrew Or
authored andcommitted
[SPARK-4889] update history server example cmds
Author: Ryan Williams <ryan.blake.williams@gmail.com> Closes #3736 from ryan-williams/hist and squashes the following commits: 421d8ff [Ryan Williams] add another random typo fix 76d6a4c [Ryan Williams] remove hdfs example a2d0f82 [Ryan Williams] code review feedback 9ca7629 [Ryan Williams] [SPARK-4889] update history server example cmds
1 parent 336cd34 commit cdb2c64

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

conf/metrics.properties.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
# sample false Whether to show entire set of samples for histograms ('false' or 'true')
7878
#
7979
# * Default path is /metrics/json for all instances except the master. The master has two paths:
80-
# /metrics/aplications/json # App information
81-
# /metrics/master/json # Master information
80+
# /metrics/applications/json # App information
81+
# /metrics/master/json # Master information
8282

8383
# org.apache.spark.metrics.sink.GraphiteSink
8484
# Name: Default: Description:

core/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,12 @@ class HistoryServer(
158158

159159
/**
160160
* The recommended way of starting and stopping a HistoryServer is through the scripts
161-
* start-history-server.sh and stop-history-server.sh. The path to a base log directory
162-
* is must be specified, while the requested UI port is optional. For example:
161+
* start-history-server.sh and stop-history-server.sh. The path to a base log directory,
162+
* as well as any other relevant history server configuration, should be specified via
163+
* the $SPARK_HISTORY_OPTS environment variable. For example:
163164
*
164-
* ./sbin/spark-history-server.sh /tmp/spark-events
165-
* ./sbin/spark-history-server.sh hdfs://1.2.3.4:9000/spark-events
165+
* export SPARK_HISTORY_OPTS="-Dspark.history.fs.logDirectory=/tmp/spark-events"
166+
* ./sbin/start-history-server.sh
166167
*
167168
* This launches the HistoryServer as a Spark daemon.
168169
*/

0 commit comments

Comments
 (0)