Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem ====================== As described in BZ1062401#c19, script bin/add_dirs.sh has been changed: > As of version 2.35 the syntax of bin/add_dirs.sh changed. The -d|-l|-p option > has been removed, and instead, add_dirs accepts the directory-prefix (as it > always has) followed by a list of directory-tuples to add. A dir-tuple is of > the form "<dirname>:<octal-perms>:<owner>". > > Eg. > bin/add_dirs /mnt/glusterfs dir1:0755:foo dir1/dir2:0775:bar ... > or > bin/add_dirs /mnt/brick1/hadoop $(bin/gen_dirs.sh -l) Since this script is expected to be executed both indirectly (by the rhs-hadoop-install scripts themselves) and directly (by admin during Brownfield use case), this change breaks the user facing interface established in previous release and so we need to have a BZ for it.
Jeff, Could you please provide the doc text in the Doc Text field for this bug?
The bin/add_dirs.sh script has the following syntax: add_dir.sh <mount-path> <dir-perm-owner list> where <mount-path> is the path prefix prepended to the directory names in the dir-perm-owner list. If the mount path is a volume mount then the volume name must be included, eg. /mnt/glusterfs/HadoopVol. The format of the dir-perm-owner list is: <dir>:<octal-permissions>:<owner-name> ... The <dir> above is appended to <mount-path> and the resulting directory is created with the perms and owner supplied. Example: bin/add_dirs.sh /mnt/glusterfs/HadoopVol mapred:0770:mapred \ mapred/system:0755:mapred mr-history:0755:yarn ... add_dirs.sh should be more commonly used in conjunction with bin/gen_dirs.sh, eg. bin/add_dirs.sh /mnt/gluster/HadoopVol \ $(bin/gen_dirs.sh -d)
I'm going to compare previous stable version rhs-hadoop-install-2_29-1.el6rhs with the new version rhs-hadoop-install-2_44-1.el6rhs. Both are expected to produce the same results (directory name, rights and ownership are checked). Syntax change ------------- Here is an example of syntax change for flag '-d': Old syntax: # bin/add_dirs.sh -d /mnt/glusterfs/HadoopVol1 New syntax: # bin/add_dirs.sh /mnt/glusterfs/HadoopVol1 $(bin/gen_dirs.sh -d) Results ------- flag -d produces the same resutls in both versions flag -l produces the same resutls in both versions flag -p produces different resutls, new version doesn't create directory `apps/falcon` flag -a is not present in previous verion, nothing to compare Since we don't support Falcon (see eg. BZ 1159157), I'm ok with the results.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-0761.html