This is an automated email from the ASF dual-hosted git repository. kgyrtkirk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push: new c98b6ee HIVE-23587: Remove JODA Time From LlapServiceDriver (#1045) c98b6ee is described below commit c98b6ee37ef4c1472316e0c41af280eef3ec7d1f Author: belugabehr <12578579+belugab...@users.noreply.github.com> AuthorDate: Tue Jun 2 15:17:33 2020 -0400 HIVE-23587: Remove JODA Time From LlapServiceDriver (#1045) Co-authored-by: David Mollitor <dmolli...@apache.org> --- .../org/apache/hadoop/hive/llap/cli/service/LlapServiceDriver.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llap-server/src/java/org/apache/hadoop/hive/llap/cli/service/LlapServiceDriver.java b/llap-server/src/java/org/apache/hadoop/hive/llap/cli/service/LlapServiceDriver.java index fea8393..fe743b0 100644 --- a/llap-server/src/java/org/apache/hadoop/hive/llap/cli/service/LlapServiceDriver.java +++ b/llap-server/src/java/org/apache/hadoop/hive/llap/cli/service/LlapServiceDriver.java @@ -37,7 +37,6 @@ import org.apache.hadoop.yarn.conf.YarnConfiguration; import org.apache.hadoop.yarn.exceptions.YarnException; import org.apache.hadoop.yarn.service.client.ServiceClient; import org.apache.hadoop.yarn.service.utils.CoreFileSystem; -import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -45,6 +44,8 @@ import java.io.File; import java.io.IOException; import java.net.URL; import java.nio.file.Paths; +import java.time.Instant; +import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -297,7 +298,7 @@ public class LlapServiceDriver { int rc; String version = System.getenv("HIVE_VERSION"); if (StringUtils.isEmpty(version)) { - version = DateTime.now().toString("ddMMMyyyy"); + version = DateTimeFormatter.BASIC_ISO_DATE.format(Instant.now()); } String outputDir = cl.getOutput();