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

Ted Yu commented on HBASE-3423:
-------------------------------

In place of
{code}
#  export HBASE_OPTS="$HBASE_OPTS -ea -XX:+HeapDumpOnOutOfMemoryError 
$(figure_gc_opts $HBASE_HEAPSIZE)"
{code}

You can use:
{code}
if [[ $HBASE_OPTS =~ "HeapDumpOnOutOfMemoryError" ]]; then
  A='a'
else
  export HBASE_OPTS="$HBASE_OPTS -ea -XX:+HeapDumpOnOutOfMemoryError 
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode"
fi
{code}

I first reported this issue more than a month ago.

> hbase-env.sh over-rides HBASE_OPTS incorrectly.
> -----------------------------------------------
>
>                 Key: HBASE-3423
>                 URL: https://issues.apache.org/jira/browse/HBASE-3423
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Ted Dunning
>             Fix For: 0.90.0, 0.92.0
>
>
> conf/hbase-env.sh has the following line:
>    export HBASE_OPTS="-ea -XX:+HeapDumpOnOutOfMemoryError 
> -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode"
> This should be
>    export HBASE_OPTS="$HBASE_OPTS -ea -XX:+HeapDumpOnOutOfMemoryError 
> -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode"

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to