New BG Client 0.1.4776 Creating Schema Error

4 views
Skip to first unread message

Sayat Satybaldiev

unread,
Nov 19, 2013, 1:35:37 PM11/19/13
to BG-Social...@googlegroups.com
I've noticed that a new BG Client has been realized. I've decided to try a new client and work with it. However, I didn't even succeed to create a schema. I'm wondering was creating schema method changed and we need to create a schema differently than it was before?

Here's an error:

sayats@dallas:~/mongo/bgbenchmarking$ ./bg_run.sh 
****** Creating Schema ******
Error: Main method not found in class edu.usc.bg.base.Client, please define the main method as:
   public static void main(String[] args)
ERROR: in Creating Schema 1

Here's my scripts, which works fine with old BG.

BG_HOME="/usr/local/mongo/BGClient_new"

HOST_IP=10.0.0.240
DB_NAME=bg_db_v2

CreateSchema(){
    java -cp $BG_HOME/build/bg.jar:$BG_HOME/db/MongoDB/lib/* edu.usc.bg.base.Client \
        -schema -db mongoDB.MongoDbClient -p mongodb.url=$HOST_IP:27017 -p mongodb.database=$DB_NAME

    ret=$?
    if [ "$ret" -ne "0" ]
    then
        echo "ERROR: in Creating Schema $ret"
        exit 1
    else
        echo "DONE: $ret"
    fi

}

Varun S L

unread,
Nov 19, 2013, 1:42:37 PM11/19/13
to BG-Social...@googlegroups.com
Hey,
.
After downloading the new version, have you recompiled the BG (preferably after doing something equivalent to ant clean)?

--
You received this message because you are subscribed to the Google Groups "BG Social Benchmark" group.
To unsubscribe from this group and stop receiving emails from it, send an email to BG-SocialBenchm...@googlegroups.com.
Visit this group at http://groups.google.com/group/BG-SocialBenchmark.
For more options, visit https://groups.google.com/groups/opt_out.

Varun S L

unread,
Nov 19, 2013, 2:14:01 PM11/19/13
to bg-socialbenchmark
On a second look, looks like the main function has been moved from edu.usc.bg.base.Client.java to edu.usc.bg.BGMainClass.java. You might have to modify your script accordingly.

Sayat Satybaldiev

unread,
Nov 19, 2013, 2:41:28 PM11/19/13
to BG-Social...@googlegroups.com
Thanks Vaurun for the reply! You're right. I didn't notice that the main method was moved to BGMainClass. Thanks for this catch!

Sumita Barahmand

unread,
Nov 19, 2013, 3:05:44 PM11/19/13
to BG-Social...@googlegroups.com
Hi,

Yes, the main class in the new version of BG is the BGMainClass which is available in BG\src\edu\usc\bg. Also the commands for executing the various benchmarking phases with BG have changed. Please refer to the developer manual at http://bgbenchmark.org/BG/manual.html

Notice that the "onetime" token has been added to all commands.


Sumita


Varun S Lingaraju

unread,
Nov 19, 2013, 3:35:16 PM11/19/13
to BG-Social...@googlegroups.com
Sumita,
.
Is there a way we can access the old documentation? Since some of us are sticking with the Jan-2013 version of BG?

Shahram Ghandeharizadeh

unread,
Nov 19, 2013, 6:25:46 PM11/19/13
to BG-Social...@googlegroups.com
Hi,
Due to limited resources, I prefer everyone moves to the new BG and its new documentation.  This is a much improved version with many goodies (useful to several 685 student teams). 

Also, as it has been noted, the migration is not challenging.  And, answering all questions is not an issue.  Let us know if you feel otherwise and we'll try to accommodate.
Shahram. 


--

Sayat Satybaldiev

unread,
Nov 19, 2013, 8:48:35 PM11/19/13
to BG-Social...@googlegroups.com
I'd just propose to maintain a change-log: to track features which was introduced since the previous version. I think, in this way, a transition to the new version would be smoother for those who's currently working with the old version.


On Tuesday, November 19, 2013 3:25:46 PM UTC-8, Shahram Ghandeharizadeh wrote:
Hi,
Due to limited resources, I prefer everyone moves to the new BG and its new documentation.  This is a much improved version with many goodies (useful to several 685 student teams). 

Also, as it has been noted, the migration is not challenging.  And, answering all questions is not an issue.  Let us know if you feel otherwise and we'll try to accommodate.
Shahram. 
On Tue, Nov 19, 2013 at 12:35 PM, Varun S Lingaraju <war...@gmail.com> wrote:
Sumita,
.
Is there a way we can access the old documentation? Since some of us are sticking with the Jan-2013 version of BG?

--
You received this message because you are subscribed to the Google Groups "BG Social Benchmark" group.
To unsubscribe from this group and stop receiving emails from it, send an email to BG-SocialBenchmark+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages