You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Xiaoxiang Yu (Jira)" <ji...@apache.org> on 2023/03/29 07:04:00 UTC

[jira] [Resolved] (KYLIN-5330) During the initialization process of the log thread, the SparkEnv is empty, which leads to failure

     [ https://issues.apache.org/jira/browse/KYLIN-5330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiaoxiang Yu resolved KYLIN-5330.
---------------------------------
    Resolution: Fixed

> During the initialization process of the log thread, the SparkEnv is empty, which leads to failure
> --------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-5330
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5330
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: 5.0-alpha
>            Reporter: sibing.zhang
>            Assignee: sibing.zhang
>            Priority: Major
>             Fix For: 5.0-alpha
>
>         Attachments: image-2022-12-05-16-26-36-021.png
>
>
> There is a null pointer exception in the yarn application log file:
> !image-2022-12-05-16-26-36-021.png|width=897,height=163!
> *root cause*
> When SparkEnv has not been initialized, the log thread executes the SparkEnv.get operation first, causing NPE problems.
> *fix design*
> When SparkEnv.get is executed, it will cause a null pointer exception. If SparkEnv cannot be obtained, the new org.apache.hadoop.conf.Configuration object will be used.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)