Java Riak Connection Problems

后端 未结 1 1877
说谎
说谎 2021-01-28 13:51

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

相关标签:
1条回答
  • 2021-01-28 14:15

    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");
    
    • Riak Protocol Buffers API
    • RiakClient Javadoc
    0 讨论(0)
提交回复
热议问题