Bigtop
  1. Bigtop
  2. BIGTOP-1034

Custom user's home directory's creation fails in init-hdfs.sh

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0
    • Component/s: debian, rpm

      Description

      The init-hdfs.sh script has set -ex at the top for a good reason. However, the script itself when creating a custom user's home directory on HDFS, does a ls to see if the directory already exists: https://github.com/apache/bigtop/blob/master/bigtop-packages/src/common/hadoop/init-hdfs.sh#L91

      This fails if the directory doesn't exist which makes the entire script fail. This check could be enclosed so it doesn't make the script fail.

      1. BIGTOP-1034.1.patch
        1 kB
        Mark Grover
      2. init-hdfs.patch
        0.8 kB
        Henry Wang
      3. BIGTOP-1034.2.patch
        1 kB
        Henry Wang

        Activity

        Roman Shaposhnik made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Grover made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Henry Wang made changes -
        Attachment BIGTOP-1034.2.patch [ 12594566 ]
        Henry Wang made changes -
        Attachment init-hdfs.patch [ 12594563 ]
        Mark Grover made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Mark Grover made changes -
        Attachment BIGTOP-1034.1.patch [ 12594562 ]
        Mark Grover made changes -
        Assignee Mark Grover [ mgrover ]
        Konstantin Boudnik made changes -
        Field Original Value New Value
        Labels hackathon-7-2013
        Mark Grover created issue -

          People

          • Assignee:
            Mark Grover
            Reporter:
            Mark Grover
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development