Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Mongo java Sharding Example

Received: by 10.66.86.72 with SMTP id n8mr3008466paz.24.1346651903524;
        Sun, 02 Sep 2012 22:58:23 -0700 (PDT)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.68.210.197 with SMTP id mw5ls18642805pbc.7.gmail; Sun, 02 Sep
 2012 22:58:12 -0700 (PDT)
Received: by 10.68.233.130 with SMTP id tw2mr2803773pbc.12.1346651892728;
        Sun, 02 Sep 2012 22:58:12 -0700 (PDT)
Date: Sun, 2 Sep 2012 22:58:12 -0700 (PDT)
From: thomasr <thomas.ruecksti...@10gen.com>
To: mongodb-user@googlegroups.com
Message-Id: <ea596675-55f2-42c4-8b6f-15bd347b04df@googlegroups.com>
In-Reply-To: <e2a09706-98cd-4f5d-9c00-de4e6d324297@googlegroups.com>
References: <e2a09706-98cd-4f5d-9c00-de4e6d324297@googlegroups.com>
Subject: Re: Mongo java Sharding Example
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1023_30280715.1346651892392"

------=_Part_1023_30280715.1346651892392
Content-Type: multipart/alternative; 
	boundary="----=_Part_1024_7916551.1346651892392"

------=_Part_1024_7916551.1346651892392
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi Rahat,

Could you provide more information what commands exactly you tried to run 
that caused these error messages?
Was it one of the official tutorials on the MongoDB website? Perhaps you 
could give a link or some code, that would help find the cause for the 
errors.

Also, which version of MongoDB and the Java driver are you using?

Regards,
Thomas



On Monday, September 3, 2012 3:15:12 PM UTC+10, Rahat Masood wrote:
>
> Hello Everyone,
>
> I am facing a problem in running Mongo Java Sharding Example. What i have 
> done so far is:
>
> 1. Download a zip folder from github.
> 2. Create a new project in netbeans and add all the required files from 
> zipped folder to the new project.
> 3. Run following servers: configd, mongos, shard1 and shard2 ...through 
> following commands
>
> mongod --configsvr --dbpath C:/data/configdb --port 20000
>
> mongos --port 30000 --configdb localhost:20000
>
> mongod --dbpath C:\data\dbs\shard1 --port 10000
>
> mongod --dbpath C:\data\dbs\shard2 --port 10001
>
> Hoever, when i debug or run the shardingExample file....:
>
> it prompts following output:
>
> { "errmsg" : "no such cmd: addshard" , "bad cmd" : { "addshard" : 
> "localhost:10005"} , "ok" : 0.0}
> { "errmsg" : "no such cmd: addshard" , "bad cmd" : { "addshard" : 
> "localhost:10006"} , "ok" : 0.0}
> { "errmsg" : "no such cmd: enablesharding" , "bad cmd" : { 
> "enablesharding" : "test"} , "ok" : 0.0}
> { "errmsg" : "no such cmd: shardcollection" , "bad cmd" : { 
> "shardcollection" : "test.logs" , "key" : { "date" : 1 , "hash" : 1}} , 
> "ok" : 0.0}
> DBPort.findOne failed.....
>
> Can anyone please help in finding the exact problem????
>
>  Your efforts will be highly appreciated.
>
> Regards,
> Rahat Masood.
>

------=_Part_1024_7916551.1346651892392
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Rahat,<div><br></div><div>Could you provide more information what comman=
ds exactly you tried to run that caused these error messages?</div><div>Was=
 it one of the official tutorials on the MongoDB website? Perhaps you could=
 give a link or some code, that would help find the cause for the errors.</=
div><div><br></div><div>Also, which version of MongoDB and the Java driver =
are you using?</div><div><br></div><div>Regards,</div><div>Thomas</div><div=
><br></div><div><br><br>On Monday, September 3, 2012 3:15:12 PM UTC+10, Rah=
at Masood wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin=
-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hello Everyone=
,<br><br>I am facing a problem in running Mongo Java Sharding Example. What=
 i have done so far is:<br><br>1. Download a zip folder from github.<br>2. =
Create a new project in netbeans and add all the required files from zipped=
 folder to the new project.<br>3. Run following servers: configd, mongos, s=
hard1 and shard2 ...through following commands<br><br>mongod --configsvr --=
dbpath C:/data/configdb --port 20000<br><br>mongos --port 30000 --configdb =
localhost:20000<br><br>mongod --dbpath C:\data\dbs\shard1 --port 10000<br><=
br>mongod --dbpath C:\data\dbs\shard2 --port 10001<br><br>Hoever, when i de=
bug or run the shardingExample file....:<br><br>it prompts following output=
:<br><br>{ "errmsg" : "no such cmd: addshard" , "bad cmd" : { "addshard" : =
"localhost:10005"} , "ok" : 0.0}<br>{ "errmsg" : "no such cmd: addshard" , =
"bad cmd" : { "addshard" : "localhost:10006"} , "ok" : 0.0}<br>{ "errmsg" :=
 "no such cmd: enablesharding" , "bad cmd" : { "enablesharding" : "test"} ,=
 "ok" : 0.0}<br>{ "errmsg" : "no such cmd: shardcollection" , "bad cmd" : {=
 "shardcollection" : "test.logs" , "key" : { "date" : 1 , "hash" : 1}} , "o=
k" : 0.0}<br>DBPort.findOne failed.....<br><br>Can anyone please help in fi=
nding the exact problem????<br><br>&nbsp;Your efforts will be highly apprec=
iated.<br><br>Regards,<br>Rahat Masood.<br></blockquote></div>
------=_Part_1024_7916551.1346651892392--

------=_Part_1023_30280715.1346651892392--