You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/02/03 23:04:28 UTC

[jira] Created: (MAPREDUCE-2301) TestDataDrivenDBInputFormat fails if port 9001 is occupied

TestDataDrivenDBInputFormat fails if port 9001 is occupied
----------------------------------------------------------

                 Key: MAPREDUCE-2301
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2301
             Project: Hadoop Map/Reduce
          Issue Type: Bug
            Reporter: Todd Lipcon
            Assignee: Todd Lipcon
            Priority: Minor


If you have any process listening on port 9001 (the default hsqldb port) then TestDataDrivenDBInputFormat will fail with:

Connection is broken: java.io.EOFException
java.sql.SQLException: Connection is broken: java.io.EOFException
        at org.hsqldb.jdbc.Util.sqlException(Unknown Source)

in the logs you see:
[Server@42704baa]: [Thread[HSQLDB Server @42704baa,5,main]]: run()/openServerSocket():
java.net.BindException: Address already in use


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MAPREDUCE-2301) TestDataDrivenDBInputFormat fails if port 9001 is occupied

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-2301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003889#comment-13003889 ] 

Hadoop QA commented on MAPREDUCE-2301:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12470296/mapreduce-2301.txt
  against trunk revision 1079072.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    -1 contrib tests.  The patch failed contrib unit tests.

    +1 system test framework.  The patch passed system test framework compile.

Test results: https://hudson.apache.org/hudson/job/PreCommit-MAPREDUCE-Build/127//testReport/
Findbugs warnings: https://hudson.apache.org/hudson/job/PreCommit-MAPREDUCE-Build/127//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: https://hudson.apache.org/hudson/job/PreCommit-MAPREDUCE-Build/127//console

This message is automatically generated.

> TestDataDrivenDBInputFormat fails if port 9001 is occupied
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-2301
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2301
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Minor
>         Attachments: mapreduce-2301.txt, mapreduce-2301.txt, mapreduce-2301.txt
>
>
> If you have any process listening on port 9001 (the default hsqldb port) then TestDataDrivenDBInputFormat will fail with:
> Connection is broken: java.io.EOFException
> java.sql.SQLException: Connection is broken: java.io.EOFException
>         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
> in the logs you see:
> [Server@42704baa]: [Thread[HSQLDB Server @42704baa,5,main]]: run()/openServerSocket():
> java.net.BindException: Address already in use

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (MAPREDUCE-2301) TestDataDrivenDBInputFormat fails if port 9001 is occupied

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

Todd Lipcon updated MAPREDUCE-2301:
-----------------------------------

    Attachment: mapreduce-2301.txt

Oops, left some imports in the previous patch. This one should be good, sorry for noise.

> TestDataDrivenDBInputFormat fails if port 9001 is occupied
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-2301
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2301
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Minor
>         Attachments: mapreduce-2301.txt, mapreduce-2301.txt, mapreduce-2301.txt
>
>
> If you have any process listening on port 9001 (the default hsqldb port) then TestDataDrivenDBInputFormat will fail with:
> Connection is broken: java.io.EOFException
> java.sql.SQLException: Connection is broken: java.io.EOFException
>         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
> in the logs you see:
> [Server@42704baa]: [Thread[HSQLDB Server @42704baa,5,main]]: run()/openServerSocket():
> java.net.BindException: Address already in use

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-2301) TestDataDrivenDBInputFormat fails if port 9001 is occupied

Posted by "Robert Joseph Evans (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-2301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Joseph Evans updated MAPREDUCE-2301:
-------------------------------------------

    Status: Open  (was: Patch Available)

Canceling the patch because it is almost a year old (Unlikely to still apply without an up-merge) and there are review comments still to be addressed
                
> TestDataDrivenDBInputFormat fails if port 9001 is occupied
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-2301
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2301
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Minor
>         Attachments: mapreduce-2301.txt, mapreduce-2301.txt, mapreduce-2301.txt
>
>
> If you have any process listening on port 9001 (the default hsqldb port) then TestDataDrivenDBInputFormat will fail with:
> Connection is broken: java.io.EOFException
> java.sql.SQLException: Connection is broken: java.io.EOFException
>         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
> in the logs you see:
> [Server@42704baa]: [Thread[HSQLDB Server @42704baa,5,main]]: run()/openServerSocket():
> java.net.BindException: Address already in use

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MAPREDUCE-2301) TestDataDrivenDBInputFormat fails if port 9001 is occupied

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

Todd Lipcon updated MAPREDUCE-2301:
-----------------------------------

    Status: Patch Available  (was: Open)

> TestDataDrivenDBInputFormat fails if port 9001 is occupied
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-2301
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2301
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Minor
>         Attachments: mapreduce-2301.txt
>
>
> If you have any process listening on port 9001 (the default hsqldb port) then TestDataDrivenDBInputFormat will fail with:
> Connection is broken: java.io.EOFException
> java.sql.SQLException: Connection is broken: java.io.EOFException
>         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
> in the logs you see:
> [Server@42704baa]: [Thread[HSQLDB Server @42704baa,5,main]]: run()/openServerSocket():
> java.net.BindException: Address already in use

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MAPREDUCE-2301) TestDataDrivenDBInputFormat fails if port 9001 is occupied

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

Todd Lipcon updated MAPREDUCE-2301:
-----------------------------------

    Attachment: mapreduce-2301.txt

This patch has HSQLDB pick a random port and try again until it gets one that's open (up to 10 retries)

> TestDataDrivenDBInputFormat fails if port 9001 is occupied
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-2301
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2301
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Minor
>         Attachments: mapreduce-2301.txt
>
>
> If you have any process listening on port 9001 (the default hsqldb port) then TestDataDrivenDBInputFormat will fail with:
> Connection is broken: java.io.EOFException
> java.sql.SQLException: Connection is broken: java.io.EOFException
>         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
> in the logs you see:
> [Server@42704baa]: [Thread[HSQLDB Server @42704baa,5,main]]: run()/openServerSocket():
> java.net.BindException: Address already in use

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MAPREDUCE-2301) TestDataDrivenDBInputFormat fails if port 9001 is occupied

Posted by "Aaron Kimball (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-2301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990769#comment-12990769 ] 

Aaron Kimball commented on MAPREDUCE-2301:
------------------------------------------

+1 Changes look reasonable.

FWIW, I don't think this is going to entirely solve your problem. {{TestDBJob}} should fail for the exact same reason -- it runs the job specified in {{DBCountPageView.java}} under {{src/examples}}. So you might need to parameterize the {{DB_URL}} in that process as well and make embedded server hosting conditional on its value. (If TestDDDBIF fails and TestDBJob doesn't... that's something else worth pondering.)

> TestDataDrivenDBInputFormat fails if port 9001 is occupied
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-2301
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2301
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Minor
>         Attachments: mapreduce-2301.txt, mapreduce-2301.txt, mapreduce-2301.txt
>
>
> If you have any process listening on port 9001 (the default hsqldb port) then TestDataDrivenDBInputFormat will fail with:
> Connection is broken: java.io.EOFException
> java.sql.SQLException: Connection is broken: java.io.EOFException
>         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
> in the logs you see:
> [Server@42704baa]: [Thread[HSQLDB Server @42704baa,5,main]]: run()/openServerSocket():
> java.net.BindException: Address already in use

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MAPREDUCE-2301) TestDataDrivenDBInputFormat fails if port 9001 is occupied

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

Todd Lipcon updated MAPREDUCE-2301:
-----------------------------------

    Attachment: mapreduce-2301.txt

Talked to Aaron Kimball offline and he pointed out that HSQLDB can be run in an in-memory mode. So this new patch just uses that mode and doesn't need a port at all.

> TestDataDrivenDBInputFormat fails if port 9001 is occupied
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-2301
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2301
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Minor
>         Attachments: mapreduce-2301.txt, mapreduce-2301.txt
>
>
> If you have any process listening on port 9001 (the default hsqldb port) then TestDataDrivenDBInputFormat will fail with:
> Connection is broken: java.io.EOFException
> java.sql.SQLException: Connection is broken: java.io.EOFException
>         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
> in the logs you see:
> [Server@42704baa]: [Thread[HSQLDB Server @42704baa,5,main]]: run()/openServerSocket():
> java.net.BindException: Address already in use

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira