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

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

                Author: ASF GitHub Bot
            Created on: 25/Aug/20 07:54
            Start Date: 25/Aug/20 07:54
    Worklog Time Spent: 10m 
      Work Description: abstractdog opened a new pull request #1430:
URL: https://github.com/apache/hive/pull/1430


   ### What changes were proposed in this pull request?
   Changed JVM opts to JDK11 compatible in runLlapDaemon.sh
   
   
   ### Why are the changes needed?
   Old options are not compatible with JDK11, and JVM fails to start.
   
   
   ### Does this PR introduce _any_ user-facing change?
   Only expert user change, as gc logs will have a slightly different format 
with the change.
   
   
   ### How was this patch tested?
   Tested on cluster.
   


----------------------------------------------------------------
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:
us...@infra.apache.org


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

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

> LLAP: JDK11 - some GC log file rotation related jvm arguments cannot be used 
> anymore
> ------------------------------------------------------------------------------------
>
>                 Key: HIVE-23938
>                 URL: https://issues.apache.org/jira/browse/HIVE-23938
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Bodor
>            Assignee: László Bodor
>            Priority: Major
>         Attachments: gc_2020-07-27-13.log, gc_2020-07-29-12.jdk8.log
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> https://github.com/apache/hive/blob/master/llap-server/bin/runLlapDaemon.sh#L55
> {code}
> JAVA_OPTS_BASE="-server -Djava.net.preferIPv4Stack=true -XX:+UseNUMA 
> -XX:+PrintGCDetails -verbose:gc -XX:+UseGCLogFileRotation 
> -XX:NumberOfGCLogFiles=4 -XX:GCLogFileSize=100M -XX:+PrintGCDateStamps"
> {code}
> on JDK11 I got something like:
> {code}
> + exec /usr/lib/jvm/jre-11-openjdk/bin/java -Dproc_llapdaemon -Xms32000m 
> -Xmx64000m -Dhttp.maxConnections=17 -XX:+UseG1GC -XX:+ResizeTLAB -XX:+UseNUMA 
> -XX:+AggressiveOpts -XX:MetaspaceSize=1024m 
> -XX:InitiatingHeapOccupancyPercent=80 -XX:MaxGCPauseMillis=200 
> -XX:+PreserveFramePointer -XX:AllocatePrefetchStyle=2 
> -Dhttp.maxConnections=10 -Dasync.profiler.home=/grid/0/async-profiler -server 
> -Djava.net.preferIPv4Stack=true -XX:+UseNUMA -XX:+PrintGCDetails -verbose:gc 
> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=4 -XX:GCLogFileSize=100M 
> -XX:+PrintGCDateStamps 
> -Xloggc:/grid/2/yarn/container-logs/application_1595375468459_0113/container_e26_1595375468459_0113_01_000009/gc_2020-07-27-12.log
>  
> ... 
> org.apache.hadoop.hive.llap.daemon.impl.LlapDaemon
> OpenJDK 64-Bit Server VM warning: Option AggressiveOpts was deprecated in 
> version 11.0 and will likely be removed in a future release.
> Unrecognized VM option 'UseGCLogFileRotation'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> {code}
> These are not valid in JDK11:
> {code}
> -XX:+UseGCLogFileRotation
> -XX:NumberOfGCLogFiles    
> -XX:GCLogFileSize
> -XX:+PrintGCTimeStamps    
> -XX:+PrintGCDateStamps
> {code}
> Instead something like:
> {code}
> -Xlog:gc*,safepoint:gc.log:time,uptime:filecount=4,filesize=100M
> {code}



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

Reply via email to