[
https://issues.apache.org/jira/browse/SQOOP-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113569#comment-14113569
]
Richard commented on SQOOP-1392:
--------------------------------
you mean this?
{code: title=LargeObjectLoader.java}
/**
* Create a new LargeObjectLoader.
* @param conf the Configuration to use
* @param workPath the HDFS working directory for this task.
*/
public LargeObjectLoader(Configuration conf)
throws IOException {
LargeObjectLoader(conf, new Path(System.getProperty("java.io.tmpdir")));
}
public LargeObjectLoader(Configuration conf, Path workPath)
throws IOException {
this.conf = conf;
this.workPath = workPath;
this.fs = FileSystem.get(conf);
this.curBlobWriter = null;
this.curClobWriter = null;
}
{code}
And use
{code}
lobLoader = new LargeObjectLoader(conf);
{code}
instead of
{code}
lobLoader = new LargeObjectLoader(conf,
FileOutputFormat.getWorkOutputPath(context));
{code}
> Create the temporary directory inside task working dir rather then in tmp
> -------------------------------------------------------------------------
>
> Key: SQOOP-1392
> URL: https://issues.apache.org/jira/browse/SQOOP-1392
> Project: Sqoop
> Issue Type: Improvement
> Components: tools
> Reporter: Qian Xu
> Assignee: Richard
> Priority: Minor
> Attachments: patch.diff, patch_v2.diff
>
>
> Several mappers will create a temporary directory in /tmp ranther then inside
> the task working directory. We should change the pattern.
--
This message was sent by Atlassian JIRA
(v6.2#6252)