basho / riak

Riak is a decentralized datastore from Basho Technologies.
http://docs.basho.com
Apache License 2.0
3.92k stars 534 forks source link

I got an error when I executed `riak-admin cluster join node` #1105

Closed dongwooklee96 closed 2 years ago

dongwooklee96 commented 2 years ago

hi, I cloned source code from develop branch from now on. and do make devrel.

Screen Shot 2022-03-25 at 13 51 31

and I started dev1, dev2, dev3 node then I executed ./riak-admin cluster join dev1@127.0.0.1 I got an error like below.

./riak-admin: 238: relx_nodetool: not found

Who can solve this problem?

martincox commented 2 years ago

@dongwooklee96 there will be unstable changes at the head of develop. You might want to try checking out the latest release on tag riak-3.0.9 👍🏻

martincox commented 2 years ago

Also, just to point out, not sure if it was because you were testing, but you shouldn't need to execute the riak-admin script directly, it can be invoked using the main riak bin script, like so dev/dev1/riak/bin/riak admin cluster join dev1@127.0.0.1

dongwooklee96 commented 2 years ago

@martincox thank you for your reply! but I got another error while configuring

Screen Shot 2022-03-25 at 16 45 44

Failed to fetch and copy dep: {git,"git://github.com/basho/canola.git", {ref, "2cd39378442f3dc727de22289243b3c4d56f25fd"}}

martincox commented 2 years ago

Ah, this is because github have deprecated the use of the git:// protocol, which some dependencies used in the last release (spill over legacy stuff). To overcome this, you can set git config, like so git config --global url."https://github".insteadOf git://github

dongwooklee96 commented 2 years ago

I can build now thank you! but I still got the same problem in branch riak-3.0.9

git checkout 
make devrel

dev/dev1/riak/bin/riak start
dev/dev2/riak/bin/riak start
dev/dev3/riak/bin/riak start

dev/dev2/riak/bin/riak-admin cluster join dev1@127.0.0.1

Screen Shot 2022-03-25 at 17 01 44

martincox commented 2 years ago

Try with no hyphen between riak admin.

👍🏻 dev/dev1/riak/bin/riak admin cluster join dev1@127.0.0.1 👎🏻 dev/dev1/riak/bin/riak-admin cluster join dev1@127.0.0.1

Out of curiosity, what docs have you referred to? A change was put out some time ago, where the commands move from riak-admin to riak admin (confusing, I know). Wondering what docs need updating to make it clear.

dongwooklee96 commented 2 years ago

It works now. you're my hero thank you :smile:

Screen Shot 2022-03-25 at 17 21 58

I'm reading this book seven-database-weeks but it seems hasn't been revised. or maybe I have an old version.

martincox commented 2 years ago

That makes sense, it probably references a pre 3.* release of riak 👍🏻