You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "guangbao zhao (Jira)" <ji...@apache.org> on 2021/08/23 13:01:00 UTC

[jira] [Created] (HIVE-25474) concurrency add jars cause hiveserver2 sys cpu to high

guangbao zhao created HIVE-25474:
------------------------------------

             Summary: concurrency add jars cause hiveserver2 sys cpu to high
                 Key: HIVE-25474
                 URL: https://issues.apache.org/jira/browse/HIVE-25474
             Project: Hive
          Issue Type: Improvement
          Components: Hive, HiveServer2
    Affects Versions: 3.1.2
            Reporter: guangbao zhao
             Fix For: 3.1.2
         Attachments: 0001-improvement-add-execute-permission-to-downloaded-res.patch

In the Linux environment, when there are multiple concurrent add jars through HiveCli or JDBC, the system cpu will increase. The currently used FileUtil.chmod(dest, "ugo+rx", true); method is used for file authorization, However, in jdk7+, can use Files.setPosixFilePermissions(path, perms); for file authorization. The performance is seventy to eighty times that of the above. Why not apply this method?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)