zhang-arvin opened a new pull request, #4505:
URL: https://github.com/apache/streampark/pull/4505

   ## What changes were proposed in this pull request?
   
   Wrap the `Workspace.ARCHIVES_FILE_PATH()` call in 
`FlinkApplicationActionServiceImpl` with a try-catch block to handle the case 
when `HADOOP_HOME` is not set in Kubernetes application mode.
   
   ## Why are the changes needed?
   
   Fixes #4304. When deploying Flink jobs in Kubernetes application mode 
without a Hadoop environment, `Workspace.ARCHIVES_FILE_PATH()` throws a 
`NullPointerException` because `HdfsUtils.getDefaultFS()` requires 
`HADOOP_HOME`. This PR catches the exception and logs a warning instead of 
crashing.
   
   ## Does this PR introduce any user-facing change?
   
   No.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to