You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Bruce Mitchener (JIRA)" <ji...@apache.org> on 2010/11/23 18:50:16 UTC

[jira] Created: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

ipc.HttpServer doesn't let you specify which IP to listen on, just the port
---------------------------------------------------------------------------

                 Key: AVRO-701
                 URL: https://issues.apache.org/jira/browse/AVRO-701
             Project: Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.4.1
            Reporter: Bruce Mitchener


When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).

The ipc.HttpServer only accepts a port number though ...


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


[jira] Updated: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

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

Doug Cutting updated AVRO-701:
------------------------------

    Fix Version/s:     (was: 1.5.0)
                   1.5.1

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Assignee: Bruce Mitchener
>            Priority: Critical
>             Fix For: 1.5.1
>
>         Attachments: avro_bindaddress.diff
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Updated: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

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

Bruce Mitchener updated AVRO-701:
---------------------------------

    Attachment: avro_bindaddress.diff

This passes the current tests.

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>         Attachments: avro_bindaddress.diff
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Holger Hoffstätte (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997488#comment-12997488 ] 

Holger Hoffstätte commented on AVRO-701:
----------------------------------------

+1 Excellent suggestion!

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Priority: Blocker
>         Attachments: avro_bindaddress.diff
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

       

[jira] Updated: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

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

Bruce Mitchener updated AVRO-701:
---------------------------------

    Attachment: truststore
                keystore

These are the binary files in the other patch.

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Assignee: Bruce Mitchener
>            Priority: Critical
>             Fix For: 1.5.1
>
>         Attachments: 0001-AVRO-701-AVRO-772-Extensions-to-HttpServer-to-let-yo.patch, avro_bindaddress.diff, keystore, truststore
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Bruce Mitchener (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998904#comment-12998904 ] 

Bruce Mitchener commented on AVRO-701:
--------------------------------------

I had a lot (many hours) of trouble getting AVRO-772 working due to the test and issues with certificates and such. I've got a single combined patch for this + AVRO-772. Will post it in a moment.


> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Assignee: Bruce Mitchener
>            Priority: Critical
>             Fix For: 1.5.1
>
>         Attachments: avro_bindaddress.diff
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998958#comment-12998958 ] 

Doug Cutting commented on AVRO-701:
-----------------------------------

+1 This looks good to me and tests pass.  Thanks, Bruce!

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Assignee: Bruce Mitchener
>            Priority: Critical
>             Fix For: 1.5.1
>
>         Attachments: 0001-AVRO-701-AVRO-772-Extensions-to-HttpServer-to-let-yo.patch, avro_bindaddress.diff, keystore, truststore
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Bruce Mitchener (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997548#comment-12997548 ] 

Bruce Mitchener commented on AVRO-701:
--------------------------------------

See discussion on AVRO-772. I'll submit a modified form of this patch again after I take a nap.


> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Assignee: Bruce Mitchener
>            Priority: Critical
>             Fix For: 1.5.0
>
>         Attachments: avro_bindaddress.diff
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Bruce Mitchener (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935318#action_12935318 ] 

Bruce Mitchener commented on AVRO-701:
--------------------------------------

Found it ... you just have to create the SelectChannelConnector manually .. Hadoop's HttpServer (org.apache.hadoop.http.HttpServer) does this.


> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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


[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Bruce Mitchener (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934945#action_12934945 ] 

Bruce Mitchener commented on AVRO-701:
--------------------------------------

Unfortunately, it looks like this might require an upgrade to Jetty 7 to use the new Server constructor that takes an InetSocketAddress.


> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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


[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Bruce Mitchener (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934933#action_12934933 ] 

Bruce Mitchener commented on AVRO-701:
--------------------------------------

For whatever it is worth, this used to be something that the ops team at a previous job required, otherwise they got all whine-y.

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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


[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Bruce Mitchener (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935141#action_12935141 ] 

Bruce Mitchener commented on AVRO-701:
--------------------------------------

Just in case the other Hadoop things do it via configuration rather than programmatically, I hope this can be done via code as I ran into this issue with Flume and plan to file a bug on Flume to allow its RPC to configured to listen on a particular interface.


> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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


[jira] Updated: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

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

Bruce Mitchener updated AVRO-701:
---------------------------------

    Attachment: 0001-AVRO-701-AVRO-772-Extensions-to-HttpServer-to-let-yo.patch

Would like to get this into 1.5.0 ...

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Assignee: Bruce Mitchener
>            Priority: Critical
>             Fix For: 1.5.1
>
>         Attachments: 0001-AVRO-701-AVRO-772-Extensions-to-HttpServer-to-let-yo.patch, avro_bindaddress.diff
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Commented: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

Posted by "Philip Zeyliger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934992#action_12934992 ] 

Philip Zeyliger commented on AVRO-701:
--------------------------------------

I think this is a good idea (finding a way to specify the IP).  I haven't had a chance to confirm that this requires an upgrade to Jetty; I think older versions of Jetty have this feature (since Hadoop has had it for ages).

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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


[jira] Updated: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

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

Doug Cutting updated AVRO-701:
------------------------------

         Priority: Critical  (was: Blocker)
    Fix Version/s: 1.5.0
         Assignee: Bruce Mitchener

Looks good to me, but should probably have a test.

I don't see this as a blocker, since it's a compatible API change and doesn't fix a regression.  That said, I expect we'll be able to get this into 1.5.0.

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Assignee: Bruce Mitchener
>            Priority: Critical
>             Fix For: 1.5.0
>
>         Attachments: avro_bindaddress.diff
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Resolved: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

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

Bruce Mitchener resolved AVRO-701.
----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.5.1)
                   1.5.0

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Assignee: Bruce Mitchener
>            Priority: Critical
>             Fix For: 1.5.0
>
>         Attachments: 0001-AVRO-701-AVRO-772-Extensions-to-HttpServer-to-let-yo.patch, avro_bindaddress.diff, keystore, truststore
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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

        

[jira] Updated: (AVRO-701) ipc.HttpServer doesn't let you specify which IP to listen on, just the port

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

Bruce Mitchener updated AVRO-701:
---------------------------------

    Priority: Blocker  (was: Major)

Would like this to be in 1.5 as we need it in Cloudera Flume.

> ipc.HttpServer doesn't let you specify which IP to listen on, just the port
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-701
>                 URL: https://issues.apache.org/jira/browse/AVRO-701
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Bruce Mitchener
>            Priority: Blocker
>         Attachments: avro_bindaddress.diff
>
>
> When running on a machine with multiple interfaces, I like to be able to only have things listen on the correct interface (internal, external, localhost).
> The ipc.HttpServer only accepts a port number though ...

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