• MapReduce Service

mrs
  1. Help Center
  2. MapReduce Service
  3. User Guide
  4. Cluster Operation Guide
  5. Bootstrap Actions
  6. View Execution Records

View Execution Records

You can view the execution result of the bootstrap operation on the Bootstrap Action tab page of the cluster details page.

Viewing the Execution Result

  1. Log in to the management console.
  2. In the left navigation pane, choose Clusters > Active Clusters. Click a cluster you want to query.

    The cluster details page is displayed.

  3. On the cluster details page, click the Bootstrap Action tab. Information about the bootstrap actions added during cluster creation is displayed, as shown in the following figure.
    Figure 1 Bootstrap action information
    NOTE:
    • You select Before component start or After component start in the upper right corner to query information about the related bootstrap actions.
    • The last execution result is listed here. For a newly created cluster, the records of bootstrap actions executed during cluster creation are listed. If a cluster is expanded, the records of bootstrap actions executed on the newly added nodes are listed.

Viewing Execution Logs

You can log in to each node to view run logs stored in /var/log/Bootstrap. If you add bootstrap actions before and after component start, you can distinguish bootstrap action logs of the two phases based on the timestamps.

If the ECS where bootstrap actions are performed has been reclaimed, you need to log in to OBS to view the logs. MRS collects the logs of each node to the OBS bucket you specified when you create the cluster.

You are advised to print logs in detail in the script so that you can view the detailed run result. MRS redirects the standard output and error output of the script to the log directory of the bootstrap action.