mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Lyubimov (JIRA)" <>
Subject [jira] [Issue Comment Edited] (MAHOUT-814) SSVD local tests should use their own tmp space to avoid collisions
Date Tue, 20 Sep 2011 02:38:09 GMT


Dmitriy Lyubimov edited comment on MAHOUT-814 at 9/20/11 2:37 AM:

another workaround, per tutorial, seems to be to construct this task per the rule below but
does it have to be that complicated just to access task scratchpad path? besides, i looked
at the history of this and it really subject to change. So using really seems
like the safest bet. 


$${mapred.local.dir}/taskTracker/jobcache/$jobid/$taskid/work/tmp : The temporary directory
for the task. (User can specify the property mapred.child.tmp to set the value of temporary
directory for map and reduce tasks. This defaults to ./tmp. If the value is not an absolute
path, it is prepended with task's working directory. Otherwise, it is directly assigned. The
directory will be created if it doesn't exist. Then, the child java tasks are executed with
option'the absolute path of the tmp dir'. Anp pipes and streaming are set
with environment variable, TMPDIR='the absolute path of the tmp dir'). This directory is created,
if mapred.child.tmp has the value ./tmp


      was (Author: dlyubimov):
    There's also some info floating around that job.local.dir property may be a better candidate
for task's scratch space than

> SSVD local tests should use their own tmp space to avoid collisions
> -------------------------------------------------------------------
>                 Key: MAHOUT-814
>                 URL:
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Grant Ingersoll
>            Assignee: Dmitriy Lyubimov
>            Priority: Minor
>             Fix For: 0.6
>         Attachments: MAHOUT-814.patch
> Running Mahout in an environment with Jenkins also running and am getting:
> {quote}
> /tmp/q-temp.seq (Permission denied)
>         at Method)
>         at<init>(
>         at org.apache.hadoop.fs.RawLocalFileSystem$LocalFSFileOutputStream.<init>(
>         at org.apache.hadoop.fs.RawLocalFileSystem$LocalFSFileOutputStream.<init>(
>         at org.apache.hadoop.fs.RawLocalFileSystem.create(
>         at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSOutputSummer.<init>(
>         at org.apache.hadoop.fs.ChecksumFileSystem.create(
>         at org.apache.hadoop.fs.FileSystem.create(
>         at$BlockCompressWriter.<init>(
>         at
>         at
>         at org.apache.mahout.math.hadoop.stochasticsvd.qr.QRFirstStep.getTempQw(
>         at org.apache.mahout.math.hadoop.stochasticsvd.qr.QRFirstStep.flushSolver(
>         at
>         at org.apache.mahout.math.hadoop.stochasticsvd.qr.QRFirstStep.collect(
>         at org.apache.mahout.math.hadoop.stochasticsvd.QJob$
>         at org.apache.mahout.math.hadoop.stochasticsvd.QJob$
>         at
>         at org.apache.hadoop.mapred.MapTask.runNewMapper(
>         at
>         at org.apache.hadoop.mapred.LocalJobRunner$
> {quote}
> Also seeing the following tests fail:
> {quote}
> Tests in error: 
>   testSSVDSolverSparse(org.apache.mahout.math.hadoop.stochasticsvd.LocalSSVDSolverSparseSequentialTest):
Q job unsuccessful.
>   testSSVDSolverPowerIterations1(org.apache.mahout.math.hadoop.stochasticsvd.LocalSSVDSolverSparseSequentialTest):
Q job unsuccessful.
>   testSSVDSolverPowerIterations1(org.apache.mahout.math.hadoop.stochasticsvd.LocalSSVDSolverDenseTest):
Q job unsuccessful.
>   testSSVDSolverDense(org.apache.mahout.math.hadoop.stochasticsvd.LocalSSVDSolverDenseTest):
Q job unsuccessful.
> {quote}
> I haven't checked all of them, but I suspect they are all due to the same reason.  We
should dynamically create a temp area for each test using temporary directories under the
main temp dir.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message