Details
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
- is related to
-
ACCUMULO-915 os.getlogin is not portable python code
- Resolved