Repository navigation
Using environment variable to configure client does not work for me #171
Unanswered
C1oudNinja
asked this question in
Q&A
Replies: 1 comment
|
If you mean that you are going to set an environment variable that you'd set either:
etc, then you'd need to obtain those and set those when starting your application, like this: start(_StartType, _StartArgs) ->
NodesVar = os:getenv("CASSANDRA_NODES"),
Nodes = string:tokens(NodesVar, ","),
application:ensure_all_started(cqerl),
cqerl_cluster:add_nodes(Nodes). |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello I've a short question. I wanted to set cassandra_nodes as environment variable. But it does not work.
Can you provide an example how the environment variable should look.
I tested it with:
cassandra_nodes=[{"127.0.0.1", 9042 }But then i received:
neighbours crashed with reason: no match of right hand value {error,cluster_not_configured}
Thank you in advance.
All reactions