spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SK (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-3610) History server log name should not be based on user input
Date Wed, 24 Sep 2014 00:03:33 GMT

    [ https://issues.apache.org/jira/browse/SPARK-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14145663#comment-14145663
] 

SK commented on SPARK-3610:
---------------------------

I made the following change to EventLoggingListener.scala, L57 and this took care of the problem
(basically just removed parentheses and commas). So I am now able to access the app details
on the history server. Thanks.

private val name = appName.replaceAll("[ :/]", "-").replaceAll("[${}'\"]", "_")
    .replaceAll("[(),]","")
    .toLowerCase + "-" + System.currentTimeMillis
  val logDir = Utils.resolveURI(logBaseDir) + "/" + name.stripSuffix("/")


> History server log name should not be based on user input
> ---------------------------------------------------------
>
>                 Key: SPARK-3610
>                 URL: https://issues.apache.org/jira/browse/SPARK-3610
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: SK
>            Priority: Critical
>
> Right now we use the user-defined application name when creating the logging file for
the history server. We should use some type of GUID generated from inside of Spark instead
of allowing user input here. It can cause errors if users provide characters that are not
valid in filesystem paths.
> Original bug report:
> {quote}
> The default log files for the Mllib examples use a rather long naming convention that
includes special characters like parentheses and comma.For e.g. one of my log files is named
"binaryclassifier-with-params(input.txt,100,1.0,svm,l2,0.1)-1410566770032".
> When I click on the program on the history server page (at port 18080), to view the detailed
application logs, the history server crashes and I need to restart it. I am using Spark 1.1
on a mesos cluster.
> I renamed the  log file by removing the special characters and  then it loads up correctly.
I am not sure which program is creating the log files. Can it be changed so that the default
log file naming convention does not include  special characters? 
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message