You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Maxim Neverov (JIRA)" <ji...@apache.org> on 2018/12/25 14:57:00 UTC

[jira] [Commented] (FLINK-10561) Flink doesn't start locally if remove log package

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

Maxim Neverov commented on FLINK-10561:
---------------------------------------

There is a misleading info in the ticket: *Flink is started* (as it states by message 'Web interface by default on ** [http://localhost:8081/]*.*'). With no log directory there would be no logs saved on a disk.

I would add the following to `flink-daemon.sh` (before log files part) :
{code:java}
mkdir -p "$FLINK_PID_DIR"
{code}
And also to `start-cluster.bat` (before log rotation) :
{code:java}
if not exist "%FLINK_LOG_DIR%" mkdir "%FLINK_LOG_DIR%"{code}
This will create log directory if it doesn't exist. 

> Flink doesn't start locally if remove log package
> -------------------------------------------------
>
>                 Key: FLINK-10561
>                 URL: https://issues.apache.org/jira/browse/FLINK-10561
>             Project: Flink
>          Issue Type: Bug
>          Components: Startup Shell Scripts
>    Affects Versions: 1.6.1
>         Environment: windows 7
>            Reporter: Aleksei Starikov
>            Priority: Minor
>         Attachments: start-cluster_without_log_package.png
>
>
> Download flink from [https://www.apache.org/dyn/closer.lua/flink/flink-1.6.1/flink-1.6.1-bin-scala_2.11.tgz].
> Unzip archive.
> Remove log package.
> Try to start locally using command .\bin\start-cluster.bat
>  
> Flink doesn't start and you get message:
>  
> D:\work\prog\flink-1.6.1>.\bin\start-cluster.bat
> Системе не удается найти указанный путь.
> Starting a local cluster with one JobManager process and one TaskManager process.
> You can terminate the processes via CTRL-C in the spawned shell windows.
> Web interface by default on [http://localhost:8081/].
> Системе не удается найти указанный путь.
> Системе не удается найти указанный путь.
>  
> In Russian "Системе не удается найти указанный путь" means "The system cannot find the path specified".
>  
> Flink can create this package himself or make more sensible message.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)