by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Christian Bannard
    @wyrmfire
    @travisbhartwell That would be great. Thanks for that. Will take a look at the link. We're in the process of building a game and want to make it as scalable as we can rather than needing to reinvent the entire thing if it really takes off.
    Travis B. Hartwell
    @travisbhartwell
    Awesome.
    I used to do game dev myself.
    Christian Bannard
    @wyrmfire
    :smile: I've spent the last year piecing it all together. Gets quite expensive after a while :smile:
    More of a side-line/hobby for me outside the normal day-to-day I.T. work I do to make a crust, though would be nice to get it completed. We've got a lot of the functionality done though now we're getting into save state and long-term storage rather than just the playability aspect of it.
    One more question for you, can Riak databases do mixed clustering (e.g. a few machines of one type of OS mixed with another)? I should have thought so though haven't read whether it can as I've been going through the Riak websites.
    Christian Bannard
    @wyrmfire
    There's definitely some incompatibilities in the Makefile for FreeBSD. Doesn't seem to be a lot though enough to baulk
    A few about "Need an operator"
    Christian Bannard
    @wyrmfire
    OK, almost have it building except there's a check for R16/17 of Erlang whilst FreeBSD now uses v18. Any idea on how to change this? It's somewhere in the depths of the dependencies within the makefiles
    I'm going to download v17.5 of Erlang and compile the source of it though if it can be made to work with the pkg'ed version of ERL that comes with FBSD that would be better (rather not need to butcher the underlying OS to get it working if possible)
    Christian Bannard
    @wyrmfire
    Ended up getting it to build with v17.5 so all good there. Thanks Travis
    Travis B. Hartwell
    @travisbhartwell
    @drewkerrigan Do you happen to ever listen in here? Curious if you remember if the Explorer integration tests required any setup prior to running. The only way I can get the tests to pass is if I manually create the GeoCheckin bucket previous to running the tests.
    Dmitri Zagidulin
    @dmitrizagidulin
    ::waves:: (i dont know the answer, re geocheckin tho)
    Travis B. Hartwell
    @travisbhartwell
    Hey @dmitrizagidulin!
    Dmitri Zagidulin
    @dmitrizagidulin
    heyy :)
    Ebrahim Khosravani
    @mahbodkh
    hi all
    i cant insert object with java in riak !
    and I installed riak + riak-cs + stanchion !
    and all service its ok !
    Dmitri Zagidulin
    @dmitrizagidulin
    @mahbodkh hi! what sort of error are you getting, when inserting?
    Ebrahim Khosravani
    @mahbodkh
    Screenshot from 2017-08-13 17-20-45.png
    @dmitrizagidulin hi, I try to insert even object or string as single-node !
    Dmitri Zagidulin
    @dmitrizagidulin
    ah, ok, so it's probably just an ip/cluster setup issue
    lets see the part of the code that's setting up the connection to the cluster
    Ebrahim Khosravani
    @mahbodkh
    how can I do it ?
    Dmitri Zagidulin
    @dmitrizagidulin
    of your java code, i mean. paste it here
    Ebrahim Khosravani
    @mahbodkh
    ``` public static void main(String[] args) throws UnknownHostException, ExecutionException, InterruptedException {
        RiakNode.Builder builder = new RiakNode.Builder();
        builder.withMinConnections(10);
        builder.withMaxConnections(50);
    
        List<String> addresses = new LinkedList<String>();
        addresses.add("172.16.200.128");
    
        List<RiakNode> nodes = RiakNode.Builder.buildNodes(builder, addresses);
        RiakCluster cluster = new RiakCluster.Builder(nodes).build();
        cluster.start();
        RiakClient client = new RiakClient(cluster);
    
    
        RiakObject quoteObject = new RiakObject()
                .setContentType("text/plain")
                .setValue(BinaryValue.create("You're dangerous, Maverick"));
        Namespace quotesBucket = new Namespace("quotes");
        Location quoteObjectLocation = new Location(quotesBucket, "Icemand");
    
        StoreValue storeOp = new StoreValue.Builder(quoteObject)
                .withLocation(quoteObjectLocation)
                .build();
        StoreValue.Response response = client.execute(storeOp);
        System.out.println(response);
    
    
    
    } ```
    Dmitri Zagidulin
    @dmitrizagidulin
    is that ip reachable from where the code is running?
    Ebrahim Khosravani
    @mahbodkh
    yes , sure ! I cant retrieve and check ping from url !
    Screenshot from 2017-08-13 17-52-39.png
    Screenshot from 2017-08-13 17-53-58.png
    Dmitri Zagidulin
    @dmitrizagidulin
    ah, wait
    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 !