Doug Cutting wrote:
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
It is not yet that clean. There are a few explicit uses of "/tmp":
JobConf.java
NameNode.java
NDFS.java (last seen in Release-0.7)
These should use java.io.tmpdir by default.
There is also a /tmp in bin/nutch-daemon.sh but that is okay as long
as a small /tmp exists for sh script-only pid storage.
Furthermore, some values in conf/nutch-default.xml use /tmp and these
should be set in conf/nutch-site.xml for your particular site.
Paul