You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2008/08/07 01:08:44 UTC

[jira] Created: (NUTCH-642) Unit tests fail when run in non-local mode

Unit tests fail when run in non-local mode
------------------------------------------

                 Key: NUTCH-642
                 URL: https://issues.apache.org/jira/browse/NUTCH-642
             Project: Nutch
          Issue Type: Bug
          Components: build
    Affects Versions: 1.0.0
            Reporter: Andrzej Bialecki 
            Assignee: Andrzej Bialecki 
             Fix For: 1.0.0


Unit tests work correctly only when run in Hadoop "local" mode. In distributed mode the classpath that JUnit uses doesn't contain the job jar, so Hadoop doesn't know where to find the implementing classes, and consequently all map-reduce jobs fail.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NUTCH-642) Unit tests fail when run in non-local mode

Posted by "Roman Valls (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620609#action_12620609 ] 

Roman Valls commented on NUTCH-642:
-----------------------------------

Ok, now I see your point (ant test from NUTCH-634 was from my local laptop, not from the cluster)...

I just did ant test on the cluster and:

BUILD FAILED
/home/hadoop/nutch/build.xml:284: Could not create task or type of type: junit.

Ant could not find the task or a class this task relies upon.

Applied your patch and I got the same result. Should I "ant clean" or put junit.jar somewhere ?

> Unit tests fail when run in non-local mode
> ------------------------------------------
>
>                 Key: NUTCH-642
>                 URL: https://issues.apache.org/jira/browse/NUTCH-642
>             Project: Nutch
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.0
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>             Fix For: 1.0.0
>
>         Attachments: build.patch
>
>
> Unit tests work correctly only when run in Hadoop "local" mode. In distributed mode the classpath that JUnit uses doesn't contain the job jar, so Hadoop doesn't know where to find the implementing classes, and consequently all map-reduce jobs fail.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (NUTCH-642) Unit tests fail when run in non-local mode

Posted by "Andrzej Bialecki (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NUTCH-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrzej Bialecki  updated NUTCH-642:
------------------------------------

    Attachment: build.patch

This patch fixes the issue. If there are no objections I'd like to commit it within a day or two.

> Unit tests fail when run in non-local mode
> ------------------------------------------
>
>                 Key: NUTCH-642
>                 URL: https://issues.apache.org/jira/browse/NUTCH-642
>             Project: Nutch
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.0
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>             Fix For: 1.0.0
>
>         Attachments: build.patch
>
>
> Unit tests work correctly only when run in Hadoop "local" mode. In distributed mode the classpath that JUnit uses doesn't contain the job jar, so Hadoop doesn't know where to find the implementing classes, and consequently all map-reduce jobs fail.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NUTCH-642) Unit tests fail when run in non-local mode

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623553#action_12623553 ] 

Hudson commented on NUTCH-642:
------------------------------

Integrated in Nutch-trunk #545 (See [http://hudson.zones.apache.org/hudson/job/Nutch-trunk/545/])

> Unit tests fail when run in non-local mode
> ------------------------------------------
>
>                 Key: NUTCH-642
>                 URL: https://issues.apache.org/jira/browse/NUTCH-642
>             Project: Nutch
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.0
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>             Fix For: 1.0.0
>
>         Attachments: build.patch
>
>
> Unit tests work correctly only when run in Hadoop "local" mode. In distributed mode the classpath that JUnit uses doesn't contain the job jar, so Hadoop doesn't know where to find the implementing classes, and consequently all map-reduce jobs fail.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (NUTCH-642) Unit tests fail when run in non-local mode

Posted by "Andrzej Bialecki (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NUTCH-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrzej Bialecki  closed NUTCH-642.
-----------------------------------

    Resolution: Fixed

Patch applied.

> Unit tests fail when run in non-local mode
> ------------------------------------------
>
>                 Key: NUTCH-642
>                 URL: https://issues.apache.org/jira/browse/NUTCH-642
>             Project: Nutch
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.0
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>             Fix For: 1.0.0
>
>         Attachments: build.patch
>
>
> Unit tests work correctly only when run in Hadoop "local" mode. In distributed mode the classpath that JUnit uses doesn't contain the job jar, so Hadoop doesn't know where to find the implementing classes, and consequently all map-reduce jobs fail.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.