[ 
https://issues.apache.org/jira/browse/HIVE-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819419#comment-13819419
 ] 

Thejas M Nair commented on HIVE-5794:
-------------------------------------

>  LOG.warn("Error starting HiveServer2 on attempt " + attempts, throwable);
It will be useful to indicate in the warning message that it will retry 
starting in x seconds.

> Thread.sleep(60L * 100L);
Did you mean 60L*1000L ?  ie, 60 seconds ?  

<description>This number of times HiveServer2 will attempt to start before 
exiting.</description>
Can you also mention the delay between retries here ? That will give an 
indication of how long the retries will be happening.
Did you mean the default waiting period to be 2.4 hours or 24 hours ? 


> HiveServer2 should retry startup
> --------------------------------
>
>                 Key: HIVE-5794
>                 URL: https://issues.apache.org/jira/browse/HIVE-5794
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 0.13.0
>            Reporter: Brock Noland
>            Assignee: Brock Noland
>         Attachments: HIVE-5794.patch
>
>
> On startup the CLIService attempts to create scratch directories. If that 
> fails, e.g. because the nn is also starting, HS2 fails to start. We should 
> retry this operation this a few times with sleeps.
> It might be preferable todo this directly in HS2 main so that we can catch 
> all errors.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to