Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: nodemanager
    • Labels:
    • Environment:

      FreeBSD 8.2 / 64 bit

      Description

      Currently nodemanager depends on bash shell. It should be well documented for system not having bash installed by default such as FreeBSD. Because only basic functionality of bash is used, probably changing bash to /bin/sh would work enough.

      i found 2 cases:

      1. DefaultContainerExecutor.java creates file with /bin/bash hardcoded in writeLocalWrapperScript. (this needs bash in /bin)

      2. yarn-hduser-nodemanager-ponto.amerinoc.com.log:2012-04-03 19:50:10,798 INFO org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor: launchContainer: [bash, -c, /tmp/nm-local-dir/usercache/hduser/appcache/application_1333474251533_0002/container_1333474251533_0002_01_000012/default_container_executor.sh]
      this created script is also launched by bash - bash anywhere in path works - in freebsd it is /usr/local/bin/bash

        Activity

        Radim Kolar created issue -
        Radim Kolar made changes -
        Field Original Value New Value
        Attachment bash-replace-by-sh.txt [ 12521313 ]
        Radim Kolar made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s trunk [ 12320360 ]
        Labels patch
        Radim Kolar made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Vinod Kumar Vavilapalli made changes -
        Project Hadoop Map/Reduce [ 12310941 ] Hadoop YARN [ 12313722 ]
        Key MAPREDUCE-4101 YARN-97
        Affects Version/s 0.23.1 [ 12318883 ]
        Affects Version/s trunk [ 12320360 ]
        Component/s nodemanager [ 12319323 ]
        Component/s nodemanager [ 12315341 ]
        Radim Kolar made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Problem [ 8 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Radim Kolar
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development