Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/3736#discussion_r22078172
--- Diff:
core/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala ---
@@ -158,11 +158,15 @@ class HistoryServer(
/**
* The recommended way of starting and stopping a HistoryServer is through
the scripts
- * start-history-server.sh and stop-history-server.sh. The path to a base
log directory
- * is must be specified, while the requested UI port is optional. For
example:
+ * start-history-server.sh and stop-history-server.sh. The path to a base
log directory,
+ * as well as any other relevant history-server configuration, should be
specified via
+ * the $SPARK_HISTORY_OPTS environment variable. For example:
*
- * ./sbin/spark-history-server.sh /tmp/spark-events
- * ./sbin/spark-history-server.sh hdfs://1.2.3.4:9000/spark-events
+ * export
SPARK_HiSTORY_OPTS="-Dspark.history.fs.logDirectory=/tmp/spark-events"
+ * ./sbin/start-history-server.sh
--- End diff --
can you make this more terse
```
SPARK_HISTORY_OPTS=" -Dspark.history.fs.logDirectory=/tmp/spark-events"
./sbin/start-history-server.sh
SPARK_HISTORY_OPTS="
-Dspark.history.fs.logDirectory=hdfs:/tmp/spark-events"
./sbin/start-history-server.sh
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]