Hi Tom,

Unfortunately, I believe the C client was a project that was started with
the intention of knocking down two birds with one stone, official support
for C and wrap it as a C extension for PHP. The project has not been
updated in about a year, while other clients have seen a lot of updates in
that time.

I'm aware that we do not have any Basho resources towards moving this
client forward in the near future, which leaves me with essentially three
options: 1) Submit GH issues for each problem you encounter we can try to
queue up time to review them. 2) Submit contributions to the project by
fixing the issues and submitting a PR for each fix. 3) If time is of the
essence, consider using one of our officially supported clients [1] or this
C client that seems to have some recent momentum [2]

[1] http://docs.basho.com/riak/latest/dev/using/libraries/
[2] https://github.com/algernon/riack

I hope this helps.

Chris

On Tue, Jul 21, 2015 at 7:58 AM Tom Van Steenkiste <
[email protected]> wrote:

> Dear all
>
>
>
> I’m trying to interface a C application with a Riak cluster. To do this, I
> have set up a small two node cluster with Riak to which I’m already able to
> communicate with HTTP requests. My next step is trying to run the
> riak-c-client <https://github.com/basho-labs/riak-c-client>. However,
> there are some problems with certain functions. If I execute the following
> commands, the application never returns and gets stuck:
>
> ./riak_c_example --host hostname --port 8098 --server-info
>
> ./riak_c_example --host hostname --port 8098 --ping
>
>
>
> These commands get stuck on the ‘err = riak_ping(cxn)’ and the ‘err =
> riak_serverinfo(cxn, &serverinfo_response)’ lines. However, when I execute
> the following HTTP request, I get a perfect response:
>
> curl http://hostname:8098/stats
>
> curl http://hostname:8098/ping
>
> If I try to put a key in the database via the c application, I get
> segmentation faults. When executing the following command, I get a
> segmentation fault upon execution of the line
> ‘riak_get_response_print(&print_state, get_response)’.
>
> ./riak_c_example --host hostname --port 8098 --put --key “testKey” --value
> “testValue” --bucket “testBucket”
>
> The versions of the software I use are:
>
> Riak 2.1.1 which runs on two CentOS 7 servers
> OS of riak_c_example: Scientific Linux CERN SLC 6.6
>
> gcc: 4.8.2 and 4.4.7 (tried both)
>
> The configuration files all contain their default values, I only changed
> the hostnames and restricted the ports with the following two lines as to
> not have to open up the entire firewall:
>
>
>
> erlang.distribution.port_range.minimum = 6000
> erlang.distribution.port_range.maximum = 7000
>
>
>
> If needed, I can give more information on the configuration. Do you have
> any idea what might be the source of these problems and how to fix them?
>
> Thank you in advance
>
> Kind regards
> Tom Van Steenkiste
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to