accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Havanki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-2378) Fix use of LOGNAME in functional tests under MR
Date Wed, 19 Feb 2014 13:24:19 GMT
Bill Havanki created ACCUMULO-2378:
--------------------------------------

             Summary: Fix use of LOGNAME in functional tests under MR
                 Key: ACCUMULO-2378
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2378
             Project: Accumulo
          Issue Type: Sub-task
          Components: test
    Affects Versions: 1.5.0, 1.4.4
            Reporter: Bill Havanki
            Assignee: Bill Havanki


When running a functional test under MR:

{noformat}
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
{noformat}

Originally noted by [~jfield]:

bq. 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.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message