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

2022-09-13 Thread Ujjawal Kumar (Jira)


 [ 
https://issues.apache.org/jira/browse/HBASE-27352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ujjawal Kumar updated HBASE-27352:
--
Fix Version/s: 2.6.0
   2.5.1
   3.0.0-alpha-4

> 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
>Assignee: Ujjawal Kumar
>Priority: Minor
> Fix For: 2.6.0, 2.5.1, 3.0.0-alpha-4
>
> 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)


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

2022-08-31 Thread Ujjawal Kumar (Jira)


 [ 
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)