[ https://issues.apache.org/jira/browse/HIVE-24749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281262#comment-17281262 ]
okumin commented on HIVE-24749: ------------------------------- I wonder if it's possible to make SecurityManager pluggable so that administrators can disallow users to run potentially dangerous UDFs. I know this is too much for this ticket, though. > Disable user's UDF use SystemExit > --------------------------------- > > Key: HIVE-24749 > URL: https://issues.apache.org/jira/browse/HIVE-24749 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: All Versions > Reporter: xiepengjie > Assignee: xiepengjie > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > If the System.exit() is executed in the user's UDF and using default > SecurityManager, it will cause the HS2 service process to exit, that's too > bad. > It is safer to use NoExitSecurityManager which can intercepting System.exit(). -- This message was sent by Atlassian Jira (v8.3.4#803005)