by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dmitri Zagidulin
    @dmitrizagidulin
    so the java client is for plain riak
    that ip is for cs
    Ebrahim Khosravani
    @mahbodkh
    thats ip is for cs + riak + stanchtion !
    Dmitri Zagidulin
    @dmitrizagidulin
    i see
    what about the port?
    what port is riak node listening on?
    Ebrahim Khosravani
    @mahbodkh

    riak.conf

     listener.http.internal = 127.0.0.1:8098
     listener.protobuf.internal = 127.0.0.1:8087

    riak-cs.conf

    listener = 0.0.0.0:8080
    Dmitri Zagidulin
    @dmitrizagidulin
    is the java code on the same server as the riak & cs nodes?
    Ebrahim Khosravani
    @mahbodkh
    stanchion.conf
     listener = 127.0.0.1:8085
    Dmitri Zagidulin
    @dmitrizagidulin
    if not, the riak conf needs to be changed to listen on 0.0.0.0 instead of 127
    Ebrahim Khosravani
    @mahbodkh
    @dmitrizagidulin no
    @dmitrizagidulin which IP address should be change ?
    Dmitri Zagidulin
    @dmitrizagidulin
    so right now riak is listening on 127.0.0.1, right
    which means that it's only accepting requests from processes on the same server
    which is fine, cause only the CS node is supposed to talk to it
    but if you're trying to reach the riak node from an external java program,
    the two ips in riak.conf need to be changed to 0.0.0.0
    Ebrahim Khosravani
    @mahbodkh
    ow , so I right change it and response you !
    Dmitri Zagidulin
    @dmitrizagidulin
    dont forget to change the riak conf back to 127.0.0.1 when it's rolled to production
    Ebrahim Khosravani
    @mahbodkh

    hey man /etc/riak/riak.conf

     listener.http.internal = 127.0.0.1:8098

    to

     listener.http.internal = 0.0.0.0:8098

    but I have same exception in java :(

    when I changed then restart my virtual machine and then start again all services
    Dmitri Zagidulin
    @dmitrizagidulin
    you changed the protobuf internal ip also?
    Ebrahim Khosravani
    @mahbodkh
    nope really !
    Dmitri Zagidulin
    @dmitrizagidulin
    change that too. the java riak client talks to the protobuf interface
    Ebrahim Khosravani
    @mahbodkh
    oh
    thanks mannnnnnnnnn
    i love you :x:
    its done :+1:
    Dmitri Zagidulin
    @dmitrizagidulin
    hehehe np
    Ebrahim Khosravani
    @mahbodkh

    how can I generate ?

    admin-key
    +
    admin-secret

    :smile:

    Dmitri Zagidulin
    @dmitrizagidulin