XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.4, 1.5.0
    • 1.4.5, 1.5.1
    • test

    Description

      When running a functional test under MR:

      2014-02-18 12:13:48,296 INFO org.apache.accumulo.test.functional.RunTests: More:   File "test/system/auto/run.py", line 30, in <module>
          from TestUtils import ACCUMULO_HOME, ACCUMULO_DIR, COBERTURA_HOME, findCoberturaJar
        File "/usr/lib/accumulo/test/system/auto/TestUtils.py", line 45, in <module>
          ACCUMULO_DIR = "/user/" + os.getenv('LOGNAME') + "/accumulo-" + ID
      TypeError: cannot concatenate 'str' and 'NoneType' objects
      

      Originally noted by jfield:

      The cause of the bug is that the os.getenv('LOGNAME') function doesn't work because LOGNAME isn't defined for the shell the mapreduce job runs as (probably because either there isn't a parent bash shell or because that shell is non-interactive).

      Error occurs under 1.4.4 and 1.5.0.

      Attachments

        Issue Links

          Activity

            People

              bhavanki Bill Havanki
              bhavanki Bill Havanki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: