Комментарии:
Thank you for making this content. Not many good mongodb videos online. I watched your videos on mongodb and they are very detailed.
ОтветитьHi, where to get database files which you used "zips.json". can you share that too. TIA!
ОтветитьHi , sir I have a problem : the collection test in chunkMetadata have only 'shard_repl1' not like you the two shards .how to do?
ОтветитьSir where are the sample data files zips and test (json files from which you imported data)?
ОтветитьIt's very helpful but after adding these lines "mongosh --host localhost --port 27017" and "sh.addShard( "shard_repl/localhost:28081,localhost:28082,localhost:28083")" console shows this error "Warning: MongoshWarning: [SHAPI-10003] You are not connected to a mongos. This command may not work as expected.
MongoServerError: no such command: 'addShard' "
Please help in this out
Please give the collections folder
ОтветитьHi - I am facing the same issue which others have been facing.
I have created the same, replica set created but I am unable to connect directly to mongos using mongosh —host localhost —port 27017 . In place I am connected to mongo. i.e. to > test
Not [direct: mongos] test>. Hence unable to perform any sh command like sh.addShard
If i use any other port like : mongos --configdb config_repl/localhost:28041,localhost:28042,localhost:28043 --bind_ip localhost --port 27517
[direct: mongos] test> does come up. However on trying to add the shards, gives the below error message:
Could not find host matching read preference { mode: "primary" } for set shard_repl.
Status:
{
apiVersions: [ 1, Infinity ],
returnsPromise: true,
serverVersions: [ '0.0.0', '999.999.999' ],
topologies: [ 'ReplSet', 'Sharded', 'LoadBalanced', 'Standalone' ],
returnType: { type: 'unknown', attributes: {} },
deprecated: false,
platforms: [ 'Compass', 'Browser', 'CLI' ],
isDirectShellCommand: false,
acceptsRawInput: false,
shellCommandCompleter: undefined,
help: [Function (anonymous)] Help
}
sir secondly how to check performance and and how data are efficient in sharding
Ответитьhow can i have the test.json or suggest how to find json file greater than 200MB to check chunks disterbution
ОтветитьI'm facing issue in replication, it says this node was not started with replication enabled, kindly help me in this
ОтветитьThank you for making this video. Really very useful and easy-to-understand sharding.
ОтветитьI am facing "addShard" is not a command
ОтветитьCannot use non-local read concern until replica set is finished initializing. getting this error
Ответитьmy cmd says mongosh is not recognized as internal or external command. what do i do?
ОтветитьThank you for the Damo of full Sharding on a single machine. I have created the same, replica set created but I am unable to connect directly to mongos using mongosh —host localhost —port 27017 . In place I am connected to mongo. i.e. to > test
Not [direct: mongos] test>. Hence unable to perform any sh command like sh.addShard. Pls give me solution
Good work , hoping for more videos on mongoDB.
Ответить👍
ОтветитьSir one video for mongofiles
Ответить👌👍
Ответить👌
Ответить