Search code examples
javariakhttp-proxy

Configure riak-java-client to use https proxy


I am trying to connect to Riak server from behind https proxy using riak java client version 2.1.1.

Setting -Dhttps.proxyHost and -Dhttps.proxyPort does not help.

Providing io.netty.bootstrap.Bootstrap instance to node builder also does not seem to help, because there is no way to specify ChannelPipeline to use proxy ChannelHandler because RiakChannelInitializer overrides everything.


Solution

  • The Riak Java client does not support the HTTP protocol. Please see the docs for more information on connecting over TCP sockets.