Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2377

hdfs script reporting Unrecognized option: -jvm

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: scripts
    • Labels:
      None

      Description

      DEPRECATED: Use of this script to execute hdfs command is deprecated.
      Instead use the hdfs command for it.

      Unrecognized option: -jvm
      Could not create the Java virtual machine.

      The following chunk of code in hdfs script looks suspicious:

       if [[ $EUID -eq 0 ]]; then
          HADOOP_OPTS="$HADOOP_OPTS -jvm server $HADOOP_DATANODE_OPTS"
        else
          HADOOP_OPTS="$HADOOP_OPTS -server $HADOOP_DATANODE_OPTS"
        fi
      

      I'm really not sure what was meant by it

        Issue Links

          Activity

          Roman Shaposhnik created issue -
          Roman Shaposhnik made changes -
          Field Original Value New Value
          Affects Version/s 0.22.0 [ 12314241 ]
          Component/s scripts [ 12312931 ]
          Roman Shaposhnik made changes -
          Description DEPRECATED: Use of this script to execute hdfs command is deprecated.
          Instead use the hdfs command for it.

          Unrecognized option: -jvm
          Could not create the Java virtual machine.

          The following chunk of code in hdfs script looks suspicious:

          {nofromat}
           if [[ $EUID -eq 0 ]]; then
              HADOOP_OPTS="$HADOOP_OPTS -jvm server $HADOOP_DATANODE_OPTS"
            else
              HADOOP_OPTS="$HADOOP_OPTS -server $HADOOP_DATANODE_OPTS"
            fi
          {noformat}

          I'm really not sure what was meant by it
          DEPRECATED: Use of this script to execute hdfs command is deprecated.
          Instead use the hdfs command for it.

          Unrecognized option: -jvm
          Could not create the Java virtual machine.

          The following chunk of code in hdfs script looks suspicious:

          {noformat}
           if [[ $EUID -eq 0 ]]; then
              HADOOP_OPTS="$HADOOP_OPTS -jvm server $HADOOP_DATANODE_OPTS"
            else
              HADOOP_OPTS="$HADOOP_OPTS -server $HADOOP_DATANODE_OPTS"
            fi
          {noformat}

          I'm really not sure what was meant by it
          Hide
          Jakob Homan added a comment -

          Roman: Often, one can find answers to these types of questions by searching the archives. For instance, searching for "unrecognized option" would quickly lead one to HDFS-1943.

          Show
          Jakob Homan added a comment - Roman: Often, one can find answers to these types of questions by searching the archives. For instance, searching for "unrecognized option" would quickly lead one to HDFS-1943 .
          Hide
          Konstantin Boudnik added a comment -

          I wonder how many times we are going to see this bug coming back

          Show
          Konstantin Boudnik added a comment - I wonder how many times we are going to see this bug coming back
          Hide
          Konstantin Shvachko added a comment -

          I'll incorporate HDFS-1943 into 0.22.

          Show
          Konstantin Shvachko added a comment - I'll incorporate HDFS-1943 into 0.22.
          Konstantin Shvachko made changes -
          Fix Version/s 0.22.0 [ 12314241 ]
          Priority Major [ 3 ] Blocker [ 1 ]
          Konstantin Shvachko made changes -
          Link This issue is a clone of HDFS-1943 [ HDFS-1943 ]
          Hide
          Konstantin Boudnik added a comment -

          It is done already

          Show
          Konstantin Boudnik added a comment - It is done already
          Hide
          Konstantin Boudnik added a comment -

          This is dup of HDFS-1943

          Show
          Konstantin Boudnik added a comment - This is dup of HDFS-1943
          Konstantin Boudnik made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Konstantin Boudnik made changes -
          Link This issue depends on HDFS-1943 [ HDFS-1943 ]
          Konstantin Boudnik made changes -
          Link This issue duplicates HDFS-1943 [ HDFS-1943 ]
          Konstantin Boudnik made changes -
          Link This issue depends on HDFS-1943 [ HDFS-1943 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          1h 21m 1 Konstantin Boudnik 28/Sep/11 02:26

            People

            • Assignee:
              Unassigned
              Reporter:
              Roman Shaposhnik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development