You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by cu...@apache.org on 2005/10/22 00:07:03 UTC
svn commit: r327593 -
/lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/TaskRunner.java
Author: cutting
Date: Fri Oct 21 15:07:00 2005
New Revision: 327593
URL: http://svn.apache.org/viewcvs?rev=327593&view=rev
Log:
Always create workdir so child can connect to it.
Modified:
lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/TaskRunner.java
Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/TaskRunner.java
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/TaskRunner.java?rev=327593&r1=327592&r2=327593&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/TaskRunner.java (original)
+++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/TaskRunner.java Fri Oct 21 15:07:00 2005
@@ -63,6 +63,7 @@
String sep = System.getProperty("path.separator");
File workDir = new File(new File(t.getJobFile()).getParent(), "work");
+ workDir.mkdirs();
StringBuffer classPath = new StringBuffer();
// start with same classpath as parent process
@@ -72,7 +73,6 @@
JobConf job = new JobConf(t.getJobFile());
String jar = job.getJar();
if (jar != null) { // if jar exists, it into workDir
- workDir.mkdirs();
runChild(new String[] { "unzip", jar}, workDir);
File[] libs = new File(workDir, "lib").listFiles();
for (int i = 0; i < libs.length; i++) {
Re: error ParseOutputFormat.java:69: inconvertible types in revision
327230
Posted by Doug Cutting <cu...@nutch.org>.
Fixed.
The problem is that I normally use JDK 1.5, where this is legal. Sorry.
Thanks for pointing this out,
Doug
Stefan Groschupf wrote:
> +1
> Can one of the people with commit rights please fix this.
> Thanks a lot.
> Stefan
>
> Am 22.10.2005 um 00:21 schrieb Gal Nitzan:
>
>> Should be : |*
>> // compute OPIC score contribution
>> float score = Float.parseFloat(parse.getData().get
>> (Fetcher.SCORE_KEY));
>> *|
>> Gal Nitzan wrote:
>>
>>> hi,
>>>
>>> broken code...
>>>
>>> [javac] /home/gnitzan/mapred/src/java/org/apache/nutch/crawl/
>>> ParseOutputFormat.java:69: incompatible types
>>> [javac] found : java.lang.Float
>>> [javac] required: float
>>> [javac] float score = Float.valueOf(parse.getData
>>> ().get(Fetcher.SCORE_KEY));
>>> [javac] ^
>>> [javac] Note: Some input files use or override a deprecated API.
>>> [javac] Note: Recompile with -deprecation for details.
>>> [javac] 1 error
>>>
>>> regards,
>>>
>>> gal
>>>
>>>
>>> .
>>>
>>>
>>
>>
>>
>>
>
Re: error ParseOutputFormat.java:69: inconvertible types in revision 327230
Posted by Stefan Groschupf <sg...@media-style.com>.
+1
Can one of the people with commit rights please fix this.
Thanks a lot.
Stefan
Am 22.10.2005 um 00:21 schrieb Gal Nitzan:
> Should be : |*
> // compute OPIC score contribution
> float score = Float.parseFloat(parse.getData().get
> (Fetcher.SCORE_KEY));
> *|
> Gal Nitzan wrote:
>
>> hi,
>>
>> broken code...
>>
>> [javac] /home/gnitzan/mapred/src/java/org/apache/nutch/crawl/
>> ParseOutputFormat.java:69: incompatible types
>> [javac] found : java.lang.Float
>> [javac] required: float
>> [javac] float score = Float.valueOf(parse.getData
>> ().get(Fetcher.SCORE_KEY));
>> [javac] ^
>> [javac] Note: Some input files use or override a deprecated API.
>> [javac] Note: Recompile with -deprecation for details.
>> [javac] 1 error
>>
>> regards,
>>
>> gal
>>
>>
>> .
>>
>>
>
>
>
>
Re: error ParseOutputFormat.java:69: inconvertible types in revision
327230
Posted by Gal Nitzan <gn...@usa.net>.
Should be : |*
// compute OPIC score contribution
float score =
Float.parseFloat(parse.getData().get(Fetcher.SCORE_KEY));
*|
Gal Nitzan wrote:
> hi,
>
> broken code...
>
> [javac]
> /home/gnitzan/mapred/src/java/org/apache/nutch/crawl/ParseOutputFormat.java:69:
> incompatible types
> [javac] found : java.lang.Float
> [javac] required: float
> [javac] float score =
> Float.valueOf(parse.getData().get(Fetcher.SCORE_KEY));
> [javac] ^
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
> [javac] 1 error
>
> regards,
>
> gal
>
>
> .
>
error ParseOutputFormat.java:69: inconvertible types in revision
327230
Posted by Gal Nitzan <gn...@usa.net>.
hi,
broken code...
[javac]
/home/gnitzan/mapred/src/java/org/apache/nutch/crawl/ParseOutputFormat.java:69:
incompatible types
[javac] found : java.lang.Float
[javac] required: float
[javac] float score =
Float.valueOf(parse.getData().get(Fetcher.SCORE_KEY));
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 1 error
regards,
gal