flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zach Cox <zcox...@gmail.com>
Subject Re: InetSocketAddress is not serializable
Date Fri, 04 Mar 2016 13:40:26 GMT
I ran into the same issue upgrading to Elasticsearch 2, here's how I solved
it:

https://gist.github.com/zcox/59e486be7aeeca381be0#file-elasticsearch2sink-java-L110

-Zach


On Fri, Mar 4, 2016 at 7:30 AM HungChang <unicorn.banachi@gmail.com> wrote:

> Hi,
>
> I'm building the connector for ElasticSearch2. One main issue for me now is
> that
>
> List<TransportAddress> transports = new ArrayList<TransportAddress>();
> transports.add(new InetSocketTransportAddress(new
> InetSocketAddress(TransportAddress, 9300)));
>
> throws
> java.io.NotSerializableException:
> org.elasticsearch.common.transport.InetSocketTransportAddress
>
> ES2 changed to this way and InetSocketAddress implements
> java.io.Serializable rather than Writable (is it the problem?).
> What would be the suggested way to handle this? should I implement a
> serializable InetSocketAddress?
>
> Best,
>
> Sendoh
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/InetSocketAddress-is-not-serializable-tp5296.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>

Mime
View raw message