Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1943

fail to start datanode while start-dfs.sh is executed by root user

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.20.205.0, 0.22.0, 0.23.0
    • Fix Version/s: 0.22.0, 0.23.0, 1.0.0
    • Component/s: scripts
    • Labels:
      None

      Description

      When start-dfs.sh is run by root user, we got the following error message:

      1. start-dfs.sh
        Starting namenodes on [localhost ]
        localhost: namenode running as process 2556. Stop it first.
        localhost: starting datanode, logging to /usr/hadoop/hadoop-common-0.23.0-SNAPSHOT/bin/../logs/hadoop-root-datanode-cspf01.out
        localhost: Unrecognized option: -jvm
        localhost: Could not create the Java virtual machine.

      The -jvm options should be passed to jsvc when we starting a secure
      datanode, but it still passed to java when start-dfs.sh is run by root
      while secure datanode is disabled. This is a bug of bin/hdfs.

      1. HDFS-1943.patch
        0.5 kB
        Wei Yongjun
      2. HDFS-1943-branch-0.20-security.patch
        0.5 kB
        Matt Foley

        Issue Links

          Activity

            People

            • Assignee:
              Matt Foley
              Reporter:
              Wei Yongjun
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development