You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ujjawal Kumar (Jira)" <ji...@apache.org> on 2022/08/31 17:27:00 UTC
[jira] [Updated] (HBASE-27352) Quoted string argument with spaces passed from command line are propagated wrongly to the underlying java class
[ https://issues.apache.org/jira/browse/HBASE-27352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ujjawal Kumar updated HBASE-27352:
----------------------------------
Description:
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.
!Screenshot 2022-08-31 at 10.52.11 PM.png!
was:
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.
> 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: 3.0.0-alpha-1, 2.5.0
> Reporter: Ujjawal Kumar
> Priority: Minor
> 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.
> !Screenshot 2022-08-31 at 10.52.11 PM.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)