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

          Wei Yongjun created issue -
          Wei Yongjun made changes -
          Field Original Value New Value
          Attachment HDFS-1943.patch [ 12479293 ]
          Wei Yongjun made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jakob Homan made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Assignee Wei Yongjun [ weiyj ]
          Fix Version/s Edit log branch (HDFS-1073) [ 12316334 ]
          Fix Version/s 0.23.0 [ 12315571 ]
          Resolution Fixed [ 1 ]
          Jakob Homan made changes -
          Fix Version/s 0.23.0 [ 12315571 ]
          Fix Version/s Edit log branch (HDFS-1073) [ 12316334 ]
          Konstantin Shvachko made changes -
          Link This issue is cloned as HDFS-2377 [ HDFS-2377 ]
          Konstantin Boudnik made changes -
          Fix Version/s 0.22.0 [ 12314241 ]
          Affects Version/s 0.22.0 [ 12314241 ]
          Konstantin Boudnik made changes -
          Link This issue blocks HDFS-2377 [ HDFS-2377 ]
          Konstantin Boudnik made changes -
          Link This issue is duplicated by HDFS-2377 [ HDFS-2377 ]
          Konstantin Boudnik made changes -
          Link This issue blocks HDFS-2377 [ HDFS-2377 ]
          Roman Shaposhnik made changes -
          Affects Version/s 0.20.205.0 [ 12316392 ]
          Matt Foley made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Matt Foley made changes -
          Target Version/s 0.20.205.1, 0.22.0, 0.23.0 [ 12318243, 12314241, 12315571 ]
          Matt Foley made changes -
          Attachment HDFS-1943-branch-0.20-security.patch [ 12502583 ]
          Matt Foley made changes -
          Assignee Wei Yongjun [ weiyj ] Matt Foley [ mattf ]
          Matt Foley made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Target Version/s 0.23.0, 0.22.0, 0.20.205.1 [ 12315571, 12314241, 12318243 ] 0.20.205.1, 0.22.0, 0.23.0 [ 12318243, 12314241, 12315571 ]
          Fix Version/s 0.20.205.1 [ 12318243 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Steve Loughran made changes -
          Link This issue is related to BIGTOP-683 [ BIGTOP-683 ]
          Roman Shaposhnik made changes -
          Attachment 0001-HDFS-1943.-fail-to-start-datanode-while-start-dfs.sh.patch [ 12559788 ]
          Roman Shaposhnik made changes -
          Attachment 0001-HDFS-1943.-fail-to-start-datanode-while-start-dfs.sh.patch [ 12559788 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development