flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenz Bühmann (JIRA) <j...@apache.org>
Subject [jira] [Created] (FLINK-6317) History server - wrong default directory
Date Tue, 18 Apr 2017 07:27:41 GMT
Lorenz Bühmann created FLINK-6317:

             Summary: History server - wrong default directory
                 Key: FLINK-6317
                 URL: https://issues.apache.org/jira/browse/FLINK-6317
             Project: Flink
          Issue Type: Bug
          Components: Web Client
    Affects Versions: 1.2.0
            Reporter: Lorenz Bühmann
            Priority: Minor

When the history server is started without a directory specified in the configuration file,
it will use some random directory located in the Java Temp directory. Unfortunately, a file
separator is missing:

String webDirectory = config.getString(HistoryServerOptions.HISTORY_SERVER_WEB_DIR);
		if (webDirectory == null) {
			webDirectory = System.getProperty("java.io.tmpdir") + "flink-web-history-" + UUID.randomUUID();
		webDir = new File(webDirectory);

It should be 

webDirectory = System.getProperty("java.io.tmpdir") + File.separator +  "flink-web-history-"
+ UUID.randomUUID();

This message was sent by Atlassian JIRA

View raw message