accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Fuchs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-4019) thrift proxy no longer listening on all interfaces
Date Thu, 08 Oct 2015 14:49:27 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14948776#comment-14948776
] 

Adam Fuchs commented on ACCUMULO-4019:
--------------------------------------

I thought {{"::"}} would have meant all interfaces, v6 or v4. However, it didn't work for
me:
{code}
org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address
/0:0:0:0:0:0:0:0:42424.
	at org.apache.accumulo.server.rpc.TNonblockingServerSocket.<init>(TNonblockingServerSocket.java:87)
	at org.apache.accumulo.server.rpc.TNonblockingServerSocket.<init>(TNonblockingServerSocket.java:70)
	at org.apache.accumulo.server.rpc.TServerUtils.createNonBlockingServer(TServerUtils.java:179)
	at org.apache.accumulo.server.rpc.TServerUtils.startTServer(TServerUtils.java:508)
	at org.apache.accumulo.proxy.Proxy.createProxyServer(Proxy.java:269)
	at org.apache.accumulo.proxy.Proxy.createProxyServer(Proxy.java:185)
	at org.apache.accumulo.proxy.Proxy.execute(Proxy.java:169)
	at org.apache.accumulo.start.Main$1.run(Main.java:93)
	at java.lang.Thread.run(Thread.java:724)
{code}

I'll put a default of {{"0.0.0.0"}} with a property to override.

> thrift proxy no longer listening on all interfaces
> --------------------------------------------------
>
>                 Key: ACCUMULO-4019
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4019
>             Project: Accumulo
>          Issue Type: Bug
>          Components: proxy
>    Affects Versions: 1.7.0
>            Reporter: Adam Fuchs
>            Assignee: Adam Fuchs
>
> In updating the thrift proxy to use HostAndPort-style configuration, we changed the behavior
from listening on all interfaces to only listening on the canonical host name interface. This
broke the proxy for some users:
> {code}
> -    TServer server = createProxyServer(AccumuloProxy.class, ProxyServer.class, port,
protoFactoryClass, opts.prop);
> -    server.serve();
> +    HostAndPort address = HostAndPort.fromParts(InetAddress.getLocalHost().getCanonicalHostName(),
port);
> +    ServerAddress server = createProxyServer(address, protoFactory, opts.prop);
> {code}
> Does anybody know what prompted this change? To fix this, I think we should hardcode
it to listen to all interfaces. Would the correct way of doing that be to use the following
address?:
> {code}
> HostAndPort address = HostAndPort.fromParts("::", port);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message