You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Bill Havanki (JIRA)" <ji...@apache.org> on 2014/02/19 15:56:21 UTC

[jira] [Resolved] (ACCUMULO-2378) Fix use of LOGNAME in functional tests under MR

     [ https://issues.apache.org/jira/browse/ACCUMULO-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Havanki resolved ACCUMULO-2378.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.1
                   1.4.5

One-line change in TestUtils.py to switch to {{getpass.getuser()}}, also as suggested by [~jfield].

The merge up to 1.6.0-SNAPSHOT is -sours since the change does not apply.

> 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.4.4, 1.5.0
>            Reporter: Bill Havanki
>            Assignee: Bill Havanki
>              Labels: mapreduce, test
>             Fix For: 1.4.5, 1.5.1
>
>
> 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)