Github user zuotingbing commented on a diff in the pull request:
https://github.com/apache/spark/pull/20702#discussion_r171749296
--- Diff:
sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
---
@@ -665,6 +667,25 @@ public void close() throws HiveSQLException {
}
}
+ private void cleanupPipeoutFile() {
+ String lScratchDir = hiveConf.getVar(ConfVars.LOCALSCRATCHDIR);
+ String sessionID = hiveConf.getVar(ConfVars.HIVESESSIONID);
+
+ File[] fileAry = new File(lScratchDir).listFiles(
--- End diff --
Sorry i did not find the overloaded version of listfiles which saves 1
line.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]