Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9455

HADOOP_CLIENT_OPTS appended twice causes JVM failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.3-alpha, 3.0.0-alpha1
    • 2.1.0-beta
    • bin
    • None

    Description

      If you set HADOOP_CLIENT_OPTS and run hadoop, you'll find that the HADOOP_CLIENT_OPTS value gets appended twice, and leads to JVM start failures for cases like adding debug flags.

      For example,

      HADOOP_CLIENT_OPTS='-agentlib:jdwp=transport=dt_socket,address=localhost:9009,server=y,suspend=y' hadoop jar anything
      
      ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
      Error occurred during initialization of VM
      agent library failed to init: jdwp
      

      Attachments

        1. HADOOP-9455.1.patch
          0.6 kB
          Chris Nauroth
        2. HADOOP-9455.2.patch
          1 kB
          Chris Nauroth
        3. HADOOP-9455.3.patch
          0.6 kB
          Chris Nauroth
        4. HADOOP-9455-branch-2.patch
          0.8 kB
          Chris Nauroth

        Issue Links

          Activity

            People

              cnauroth Chris Nauroth
              sjlee0 Sangjin Lee
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: