Closed zkessin closed 7 years ago
Could you please provide more information:
riak-erlang-client
?Hi Zach,
Also, how are you building/loading the libraries when running this test?
The error log line:
exception exit: undef
in function riak_kv_pb:encode/1
looks like it can't find the riak_kv_pb.beam
file, which is generated from riak_kv.proto
. The system does find riak_pb_codec.beam
, which is the next line down and in the same project.
(Love the podcast by the way)
@zkessin -
I created a repository containing code that will build your code via rebar
and execute tests:
https://github.com/lukebakken/riak-erlang-client_341
Please re-open this issue if you have questions.
If you want to run your test function manually, you need to compile your code and dependencies (in deps/
in this example) and run erl
like this:
erl -pa ./ebin -pa ./deps/*/ebin
Just for the record, building the code with rebar3, erlang 19 erts 8.1 i was using the most recent version of riak based on both the docker image and with an apt install
run the code with both eunit and from the erlang repl
@zkessin - the problem is that the plugin used to compile the .proto
files in riak_pb
is not rebar3
compatible.
If you use the latest develop
code of riak-erlang-client
, I switched the protobuf library to gpb
and changed how the generated code is used (we commit it now, instead of building all the time). This should enable the code to work with rebar3
.
If you'd provide the complete set of code and related files you're working with I could give it a try, too.
Fixed, or closed via GitHub issues.
[posted via JIRA by Alexander Moore]
I am trying to write some basic data to a riak node (more or less a "Hello world") I have my node online, I ran riak test, and the ping works, but when I try to write data to the node I get an error in riak_kv_pb:encode/1, I tried running riak in a docker container as well as directly on my linux node
my code
What i get when I run it