From 121643bc76516041df010ca7ec7853d7731ffd25 Mon Sep 17 00:00:00 2001
From: Andrew Ash <andrew@andrewash.com>
Date: Tue, 9 Aug 2016 21:11:52 -0700
Subject: [PATCH] Make logDir easily copy/paste-able

In many terminals double-clicking and dragging also includes the trailing period.  Simply remove this to make the value more easily copy/pasteable.

Example value:
`hdfs://mybox-123.net.example.com:8020/spark-events.`

Author: Andrew Ash <andrew@andrewash.com>

Closes #14566 from ash211/patch-9.
---
 .../org/apache/spark/deploy/history/FsHistoryProvider.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala b/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala
index 110d882f05..bc09935f93 100644
--- a/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala
+++ b/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala
@@ -194,7 +194,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
     // Validate the log directory.
     val path = new Path(logDir)
     if (!fs.exists(path)) {
-      var msg = s"Log directory specified does not exist: $logDir."
+      var msg = s"Log directory specified does not exist: $logDir"
       if (logDir == DEFAULT_LOG_DIR) {
         msg += " Did you configure the correct one through spark.history.fs.logDirectory?"
       }
-- 
GitLab