Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27352

Quoted string argument with spaces passed from command line are propagated wrongly to the underlying java class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.5.0
    • 2.6.0, 2.5.1, 3.0.0-alpha-4
    • shell
    • None

    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 <<< "$@"  in the hbase script would split the command line args (i.e. "$@"). Instead a straightforward array copy can be used.

      Attachments

        Activity

          People

            ukumar Ujjawal Kumar
            ukumar Ujjawal Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: