You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ujjawal Kumar (Jira)" <ji...@apache.org> on 2022/08/31 17:27:00 UTC

[jira] [Created] (HBASE-27352) Quoted string argument with spaces passed from command line are propagated wrongly to the underlying java class

Ujjawal Kumar created HBASE-27352:
-------------------------------------

             Summary: Quoted string argument with spaces passed from command line are propagated wrongly to the underlying java class
                 Key: HBASE-27352
                 URL: https://issues.apache.org/jira/browse/HBASE-27352
             Project: HBase
          Issue Type: Bug
          Components: shell
    Affects Versions: 2.5.0, 3.0.0-alpha-1
            Reporter: Ujjawal Kumar
         Attachments: Screenshot 2022-08-31 at 10.52.11 PM.png

Running the following command : 
/hbase/bin/hbase org.apache.hadoop.hbase.mapreduce.Import -Dmapreduce.map.java.opts="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$HADOOP_HOME/logs/@taskid@_map.hprof" SYSTEM.CATALOG /tmp
fails with error. It is due to the fact that [read -r -a CMD_ARGS <<< "$@" |https://github.com/apache/hbase/blob/master/bin/hbase#L878] in the hbase script would split the command line args (i.e. "$@"). Instead a straightforward array copy can be used. 





--
This message was sent by Atlassian Jira
(v8.20.10#820010)