nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@nutch.org>
Subject Re: question re: usage of createTempFile() for NDFS
Date Wed, 21 Sep 2005 02:28:18 GMT
Ordway, Ryan wrote:
> 	As a quick workaround, I made a few quick adjustments to the
> NDFSClient.java code to change the directory that temporary files
> are created in. This is hard coded to /nutch/tmp, but if someone
> could perhaps add a config option to make it configurable that would
> be most excellent.

I think you just need to override the Java system property  java.io.tmpdir.

http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File)

In Nutch, define this in NUTCH_OPTS, with something like:

export NUTCH_OPTS=-Djava.io.tmpdir=/foo

Does that work for you?

Doug

Mime
View raw message