All Products
Search
Document Center

Realtime Compute for Apache Flink:View startup logs and operational logs of a job

Last Updated:Nov 14, 2023

When a job is running, you can view the startup logs and operational logs of the job. This topic describes how to view startup logs and operational logs of a job.

Background information

Item

Description

Startup logs

After a fully managed Flink job is started, the startup logs of the current job are generated. The startup logs are generated from the time fully managed Flink is initialized to the time the JobManager is started. For more information about how to view the startup logs of a job, see View the startup logs of a job.

Note

The startup logs do not include scheduling logs. You can view the scheduling logs on the Events tab in the console of fully managed Flink. The scheduling logs contain issues, such as insufficient resources and insufficient IP addresses of the vSwitch.

Operational logs

You can view the logs of JobManager and TaskManagers on the Logs tab in the console of fully managed Flink or on the Flink web UI. For more information about how to view the operational logs of a job, see View the operational logs of a job.

Prerequisites

The instance of a job is in the Running state.

Precautions

Logs are displayed by page. Each page can display up to 1 MB of logs and approximately 8,000 to 9,000 rows of logs. In most cases, you can locate an issue based on the logs that are displayed on the first page. If you cannot locate the issue based on the logs that are displayed on the first page, go to the next page.

View the startup logs of a job

  1. Log on to the Realtime Compute for Apache Flink console.

  2. On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.

  3. In the left-side navigation pane, choose Deployments.

  4. Click the name of the desired job.

  5. Click the Diagnostics tab.

  6. On the Starting Logs tab, view the startup logs of the job.

    Image 91.png

View the operational logs of a job

View the operational logs of a job on the Logs tab.

  1. Log on to the Realtime Compute for Apache Flink console.

  2. On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.

  3. In the left-side navigation pane, choose Deployments.

  4. Click the name of the desired job.

  5. Click the Diagnostics tab.

  6. Click the Logs tab. Then, select Job drop-down list.

    Image 101.png
  7. View the logs of JobManager and TaskManagers

    • View the logs of JobManager

      On the Job Manager tab, click the Logs tab. JobManager Logs

    • View the logs of TaskManagers

      1. On the Task Managers tab, click the value in the Path, ID column. Click the value of Path, ID

      2. Click Logs. Logs

View the operational logs on the Flink web UI

  1. Log on to the Realtime Compute for Apache Flink console.

  2. On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.

  3. In the left-side navigation pane, choose Applications > Deployments.

  4. Click the name of the desired job.

  5. On the Overview tab, click Flink UI.

  6. In the left-side navigation pane of the Flink web UI, click Task Managers or Job Manager.

    • After you click Task Managers, find the job that you want to view and click the value in the Path, ID column to view the logs of TaskManagers for the job.

    • After you click Job Manager, view the logs of the JobManager for the job on the Logs tab.