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
}