You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/05/26 09:17:00 UTC

[jira] [Work logged] (HIVE-25163) UnsupportedTemporalTypeException when starting llap

     [ https://issues.apache.org/jira/browse/HIVE-25163?focusedWorklogId=602200&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-602200 ]

ASF GitHub Bot logged work on HIVE-25163:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/May/21 09:16
            Start Date: 26/May/21 09:16
    Worklog Time Spent: 10m 
      Work Description: stoty opened a new pull request #2322:
URL: https://github.com/apache/hive/pull/2322


   * use LocalDateTime instead of Instant
   
   ### What changes were proposed in this pull request?
   Use LocalDateTime instead of Instant to generate an llap version string when HIVE_VERSION is not set.
   
   
   ### Why are the changes needed?
   The current code throws a  java.time.temporal.UnsupportedTemporalTypeException,
   making it impossible to start the llap jobs when HIVE_VERSION  is not set.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No. 
   
   ### How was this patch tested?
   Built Hive and started llap successfully 
   (well, at least it got past the point where the exception was thrown).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 602200)
    Remaining Estimate: 0h
            Time Spent: 10m

> UnsupportedTemporalTypeException when starting llap
> ---------------------------------------------------
>
>                 Key: HIVE-25163
>                 URL: https://issues.apache.org/jira/browse/HIVE-25163
>             Project: Hive
>          Issue Type: Bug
>          Components: llap
>    Affects Versions: 4.0.0
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When trying to start the LLAP service I get
> {noformat}
> java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: Year
> 	at java.time.Instant.getLong(Instant.java:603)
> 	at java.time.format.DateTimePrintContext$1.getLong(DateTimePrintContext.java:205)
> 	at java.time.format.DateTimePrintContext.getValue(DateTimePrintContext.java:298)
> 	at java.time.format.DateTimeFormatterBuilder$NumberPrinterParser.format(DateTimeFormatterBuilder.java:2551)
> 	at java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.format(DateTimeFormatterBuilder.java:2190)
> 	at java.time.format.DateTimeFormatter.formatTo(DateTimeFormatter.java:1746)
> 	at java.time.format.DateTimeFormatter.format(DateTimeFormatter.java:1720)
> 	at org.apache.hadoop.hive.llap.cli.service.LlapServiceDriver.startLlap(LlapServiceDriver.java:301)
> 	at org.apache.hadoop.hive.llap.cli.service.LlapServiceDriver.run(LlapServiceDriver.java:133)
> 	at org.apache.hadoop.hive.llap.cli.service.LlapServiceDriver.main(LlapServiceDriver.java:386)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)