This is an automated email from the ASF dual-hosted git repository.
mblow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
The following commit(s) were added to refs/heads/master by this push:
new 367128fccb [ASTERIXDB-3519][EXT]: Fix error message
367128fccb is described below
commit 367128fccb9fb9ed7619fa3876486a3c1e1c35bb
Author: Savyasach Reddy <[email protected]>
AuthorDate: Mon Nov 11 19:38:46 2024 +0530
[ASTERIXDB-3519][EXT]: Fix error message
- user model changes: change error message
- storage format changes: no
- interface changes: no
details:
- Log the exception and show a different error message
Change-Id: I97bdaf6639855158a6982e0015655c0e99795119
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19063
Reviewed-by: Murtadha Hubail <[email protected]>
Tested-by: Murtadha Hubail <[email protected]>
---
.../src/main/java/org/apache/asterix/external/util/HDFSUtils.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/util/HDFSUtils.java
b/asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/util/HDFSUtils.java
index 6d004d5895..2984954cd3 100644
---
a/asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/util/HDFSUtils.java
+++
b/asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/util/HDFSUtils.java
@@ -89,10 +89,14 @@ import org.apache.hyracks.api.exceptions.SourceLocation;
import org.apache.hyracks.api.exceptions.Warning;
import org.apache.hyracks.api.network.INetworkSecurityManager;
import org.apache.hyracks.hdfs.scheduler.Scheduler;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
import org.apache.parquet.hadoop.ParquetInputFormat;
public class HDFSUtils {
+ private static final Logger LOGGER = LogManager.getLogger();
+
private HDFSUtils() {
}
@@ -339,8 +343,8 @@ public class HDFSUtils {
Files.writeString(krb5conf,
String.format(ExternalDataConstants.KERBEROS_CONFIG_FILE_CONTENT,
kerberosRealm, kerberosKdc));
} catch (IOException ex) {
- throw AsterixException.create(ErrorCode.COULD_NOT_CREATE_FILE,
- String.join("",
ExternalDataConstants.KERBEROS_CONFIG_FILE_PATTERN));
+ LOGGER.error("Failed to create kerberos config file", ex);
+ throw AsterixException.create(ErrorCode.COULD_NOT_CREATE_TOKENS);
}
return krb5conf;
}