-
Sign up to Atlasdb https://cloud.mongodb.com/
-
Create new MongoDB
-
Connect > Connect your application > Python > 3.4
-
Copy/paste the first server URL:
e.g.
mongodb://foo:<password>@cluster0-shard-00-00.q35ff.azure.mongodb.net:27017,cluster0-shard-00-01.q35ff.azure.mongodb.net:27017,cluster0-shard-00-02.q35ff.azure.mongodb.net:27017/myFirstDatabase?ssl=true&replicaSet=atlas-kcs9h8-shard-0&authSource=admin&retryWrites=true&w=majority
=> copy
mongodb://foo:<password>@cluster0-shard-00-00.q35ff.azure.mongodb.net:27017
-
Note the shard name
e.g.
mongodb://foo:<password>@cluster0-shard-00-00.q35ff.azure.mongodb.net:27017,cluster0-shard-00-01.q35ff.azure.mongodb.net:27017,cluster0-shard-00-02.q35ff.azure.mongodb.net:27017/myFirstDatabase?ssl=true&replicaSet=atlas-kcs9h8-shard-0&authSource=admin&retryWrites=true&w=majority
=> copy
replicaSet=atlas-kcs9h8-shard-0
-
Create a config.yml
# note the database name at the end (/omegaml) OMEGA_MONGO_URL: mongodb://foo:<password>@cluster0-shard-00-00.q35ff.azure.mongodb.net:27017/omegaml OMEGA_MONGO_SSL_KWARGS: replicaSet: atlas-kcs9h8-shard-0 ssl: true OMEGA_LOCAL_RUNTIME: true
-
Run omegaml commands from cli or Python
$ om datasets list $ om datasets put /path/to/file.csv mydataset $ om datasets get mydataset /path/to/file.csv
Note you can also run
om runtime
commands, however all execution will be local.