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

Jonathan Hasenburg edited comment on FLINK-1052 at 9/10/14 9:08 AM:
--------------------------------------------------------------------

Ok, it should now be easy to add the real log files... . Changes must be made 
at two locations:

{code:title=taskmanager.js}
function addLogFileBox(identifier) {
        //TODO change the identifier to the real identifier after logs are 
available and their name is known
        //create id for taskmanagers
        var idLog = "log-"+identifier;
        var idStdout = "stdout-"+identifier;
        ...
}
{code}

{code:title=LogfileInfoServlet.java}
        protected void doGet(HttpServletRequest req, HttpServletResponse resp) 
throws ServletException, IOException {
                ...
                //TODO change to real log file after they got available
                if (s[0].equals("log")) {
                        sendFile("jobmanager-log4j.log", resp);
                } else if (s[0].equals("stdout")) {
                        sendFile("jobmanager-stdout.log", resp);
                }
                ...
        }
{code}
The changes are made in the current webclient branch ... This branch collects 
all changes from https://issues.apache.org/jira/browse/FLINK-1082 and 
https://issues.apache.org/jira/browse/FLINK-1083


was (Author: jonathanh5):
Ok, it should now be easy to add the real log files... . Changes must be made 
at two locations:

{code:title=taskmanager.js}
function addLogFileBox(identifier) {
        //TODO change the identifier to the real identifier after logs are 
available and their name is known
        //create id for taskmanagers
        var idLog = "log-"+identifier;
        var idStdout = "stdout-"+identifier;
        ...
}
{code}

{code:title=LogfileInfoServlet.java}
        protected void doGet(HttpServletRequest req, HttpServletResponse resp) 
throws ServletException, IOException {
                ...
                //TODO change to real log file after they got available
                if (s[0].equals("log")) {
                        sendFile("jobmanager-log4j.log", resp);
                } else if (s[0].equals("stdout")) {
                        sendFile("jobmanager-stdout.log", resp);
                }
                ...
        }
{code}


> Access to stdout and log information of Taskmanagers from the web interface
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-1052
>                 URL: https://issues.apache.org/jira/browse/FLINK-1052
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Till Rohrmann
>            Priority: Minor
>
> It would be convenient to have access to the stdout and log files of the 
> individual taskmanagers from the web interface. This is especially useful in 
> the case of a yarn setup where the different logs are hidden behind 
> application and container IDs. 



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

Reply via email to