trying to connect my Java Eclipse to a Riak server on Linux Ubuntu. Followed up some guides but still don\'t working. Using: - Riak-Client-2.0.2 - Eclipse Oxygen.1a Release (4.7
You seem to be using an incorrect port number for Riak connections. The correct port for the Protocol Buffers API is 8087 (assuming you haven't changed the defaults). Port 8098 is for HTTP, you must have tested the server with cURL or another HTTP client. The Java code should be as follows:
RiakClient client = RiakClient.newClient(8087, "127.0.0.1");