[ https://issues.apache.org/jira/browse/HIVE-17802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16208650#comment-16208650 ]
Hive QA commented on HIVE-17802: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12892701/HIVE-17802.2.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 17 failed/errored test(s), 10882 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[auto_sortmerge_join_2] (batchId=47) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[optimize_nullscan] (batchId=163) org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver[explainanalyze_2] (batchId=101) org.apache.hadoop.hive.cli.TestNegativeCliDriver.org.apache.hadoop.hive.cli.TestNegativeCliDriver (batchId=91) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[subquery_multi] (batchId=110) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[subquery_notin] (batchId=133) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[subquery_scalar] (batchId=119) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[subquery_select] (batchId=119) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[subquery_views] (batchId=108) org.apache.hadoop.hive.cli.TestSparkPerfCliDriver.testCliDriver[query16] (batchId=243) org.apache.hadoop.hive.cli.TestSparkPerfCliDriver.testCliDriver[query94] (batchId=243) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[query16] (batchId=241) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[query23] (batchId=241) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[query94] (batchId=241) org.apache.hadoop.hive.cli.control.TestDanglingQOuts.checkDanglingQOut (batchId=204) org.apache.hive.jdbc.TestTriggersTezSessionPoolManager.testTriggerHighShuffleBytes (batchId=229) org.apache.hive.jdbc.TestTriggersWorkloadManager.testTriggerHighShuffleBytes (batchId=229) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/7357/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/7357/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-7357/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 17 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12892701 - PreCommit-HIVE-Build > Remove unnecessary calls to FileSystem.setOwner() from > FileOutputCommitterContainer > ----------------------------------------------------------------------------------- > > Key: HIVE-17802 > URL: https://issues.apache.org/jira/browse/HIVE-17802 > Project: Hive > Issue Type: Bug > Components: HCatalog > Affects Versions: 2.2.0, 3.0.0 > Reporter: Mithun Radhakrishnan > Assignee: Chris Drome > Attachments: HIVE-17802.1.patch, HIVE-17802.2.patch > > > For large Pig/HCat queries that produce a large number of > partitions/directories/files, we have seen cases where the HDFS NameNode > groaned under the weight of {{FileSystem.setOwner()}} calls, originating from > the commit-step. This was the result of the following code in > FileOutputCommitterContainer: > {code:java} > private void applyGroupAndPerms(FileSystem fs, Path dir, FsPermission > permission, > List<AclEntry> acls, String group, boolean recursive) > throws IOException { > ... > if (recursive) { > for (FileStatus fileStatus : fs.listStatus(dir)) { > if (fileStatus.isDir()) { > applyGroupAndPerms(fs, fileStatus.getPath(), permission, acls, > group, true); > } else { > fs.setPermission(fileStatus.getPath(), permission); > chown(fs, fileStatus.getPath(), group); > } > } > } > } > private void chown(FileSystem fs, Path file, String group) throws > IOException { > try { > fs.setOwner(file, null, group); > } catch (AccessControlException ignore) { > // Some users have wrong table group, ignore it. > LOG.warn("Failed to change group of partition directories/files: " + > file, ignore); > } > } > {code} > One call per file/directory is far too many. We have a patch that reduces the > namenode pressure. -- This message was sent by Atlassian JIRA (v6.4.14#64029)