This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push: new f6bcabe [Bug] Fixed bug that caused export and backup to fail when principal keytab file was created failed (#6404) f6bcabe is described below commit f6bcabe0d1ba28df33f06dcf242e9b57c370db9e Author: GeoffreyStark <36130371+windy...@users.noreply.github.com> AuthorDate: Wed Aug 11 16:39:01 2021 +0800 [Bug] Fixed bug that caused export and backup to fail when principal keytab file was created failed (#6404) Co-authored-by: Geoffrey <gaofen...@rd.netease.com> --- .../main/java/org/apache/doris/broker/hdfs/FileSystemManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs_brokers/apache_hdfs_broker/src/main/java/org/apache/doris/broker/hdfs/FileSystemManager.java b/fs_brokers/apache_hdfs_broker/src/main/java/org/apache/doris/broker/hdfs/FileSystemManager.java index 229ff03..562e1ac 100644 --- a/fs_brokers/apache_hdfs_broker/src/main/java/org/apache/doris/broker/hdfs/FileSystemManager.java +++ b/fs_brokers/apache_hdfs_broker/src/main/java/org/apache/doris/broker/hdfs/FileSystemManager.java @@ -271,7 +271,11 @@ public class FileSystemManager { Random random = new Random(currentTime); int randNumber = random.nextInt(10000); // different kerberos account has different file - tmpFilePath = "/tmp/." + principal + "_" + Long.toString(currentTime) + "_" + Integer.toString(randNumber); + tmpFilePath ="/tmp/." + + principal.replace('/', '_') + + "_" + Long.toString(currentTime) + + "_" + Integer.toString(randNumber); + logger.info("create kerberos tmp file" + tmpFilePath); FileOutputStream fileOutputStream = new FileOutputStream(tmpFilePath); fileOutputStream.write(base64decodedBytes); fileOutputStream.close(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org