Closed zseta closed 2 months ago
Looks like adding the --datacenter
parameter solves this issue:
npm run migrate -- --hosts 172.24.0.4 --datacenter datacenter1
info: Bootstrapping database...
info: Creating keyspace...
info: Keyspace created
info: Migrating database...
info: Database migrated
Works for me
Later on in the tutorial, --datacenter
is also needed when running the "pet collar simulation ":
npm run sensor -- --hosts 172.24.0.4 --measure 5s --buffer-interval 1m --datacenter datacenter1
Fixed and merged!
Hi there,
I've been following the instructions outlined here. to build this project using JavaScript.
I get stuck when trying to run the migrate script. (I'm using Docker)
Error:
Relevant part (likely):
UnhandledPromiseRejectionWarning: ArgumentError: 'localDataCenter' is not defined in Client options and also was not specified in constructor. At least one is required. Available DCs are: [datacenter1]
Any tips how to fix this? Let me know if you need more info from me!
Thank you!
PS: not related to the bug, but I could imagine this step being part of the setup process so users don't need to run it manually (at least for those who use Docker and not Cloud)