Error When Running the benchmarking

2 views
Skip to first unread message

Jia Li

unread,
Feb 17, 2014, 1:17:15 AM2/17/14
to BG-Social...@googlegroups.com
Got these Exception when doing the bg benchmarking.

0 sec: 0 actions; Maximum execution time specified as: 60 secs

 0 sec: 0 operations; 

java.lang.NullPointerException

at hBase.HBaseClient.viewFriendReq(HBaseClient.java:350)

at edu.usc.bg.base.DBWrapper.viewFriendReq(DBWrapper.java:125)

at edu.usc.bg.workloads.CoreWorkload.doActionGetPendings(CoreWorkload.java:2387)

at edu.usc.bg.workloads.CoreWorkload.doTransaction(CoreWorkload.java:1069)

at edu.usc.bg.base.ClientThread.run(ClientThread.java:201)

java.lang.NullPointerException

at hBase.HBaseClient.viewFriendReq(HBaseClient.java:350)

at edu.usc.bg.base.DBWrapper.viewFriendReq(DBWrapper.java:125)

at edu.usc.bg.workloads.CoreWorkload.doActionGetPendings(CoreWorkload.java:2387)

at edu.usc.bg.workloads.CoreWorkload.doTransaction(CoreWorkload.java:1069)

at edu.usc.bg.base.ClientThread.run(ClientThread.java:201)

java.lang.NullPointerException

at hBase.HBaseClient.viewTopKResources(HBaseClient.java:497)

at edu.usc.bg.base.DBWrapper.viewTopKResources(DBWrapper.java:181)

at edu.usc.bg.workloads.CoreWorkload.doActionGetTopResources(CoreWorkload.java:2738)

at edu.usc.bg.workloads.CoreWorkload.doTransaction(CoreWorkload.java:1090)

at edu.usc.bg.base.ClientThread.run(ClientThread.java:201)

java.lang.NullPointerException

at hBase.HBaseClient.viewTopKResources(HBaseClient.java:497)

at edu.usc.bg.base.DBWrapper.viewTopKResources(DBWrapper.java:181)

at edu.usc.bg.workloads.CoreWorkload.doActionGetTopResources(CoreWorkload.java:2738)

at edu.usc.bg.workloads.CoreWorkload.doTransaction(CoreWorkload.java:1090)

at edu.usc.bg.base.ClientThread.run(ClientThread.java:201)

java.lang.NullPointerException

at hBase.HBaseClient.viewProfile(HBaseClient.java:226)

at edu.usc.bg.base.DBWrapper.viewProfile(DBWrapper.java:101)

at edu.usc.bg.workloads.CoreWorkload.doActionGetProfile(CoreWorkload.java:2329)

at edu.usc.bg.workloads.CoreWorkload.doTransaction(CoreWorkload.java:1061)

at edu.usc.bg.base.ClientThread.run(ClientThread.java:201)



The following are my running configurations. I have done the command line testing for each action, but I got stuck in this step (the seventh step on homework).
Could you give a sample of these three things?
Especially I really wondered why the operationcount and all the session count are initially zero? 

Run Configurations:

onetime -t  -db hBase.HBaseClient -s -P workloads/SymmetricHighUpdateActions  -p threadcount=10  
-P workloads/populateDB
-p exportfile="/Users/Jia/Documents/runReport.txt"
-p interestingopsperc=95 -p expectedstaleness=1 -p insertimage=false
-p maxexecutiontime=60
-p zipfianmean=0.27  -p numloadthreads=5
-p initapproach= deterministic 


workload/PopulateDB  :

# This is the workload for the user table.


# Fields for populating the user table.

usercount=1000

useroffset=0

resourcecountperuser=10

friendcountperuser=20

confperc=1


userworkload=edu.usc.bg.workloads.UserWorkload

friendshipworkload=edu.usc.bg.workloads.FriendshipWorkload

resourceworkload=edu.usc.bg.workloads.ResourceWorkload


requestdistribution=dzipfian

zipfianmean=0.27


workload/SymmetricHighUpdateActions


operationcount=100000

workload=edu.usc.bg.workloads.CoreWorkload


#user ativities

ViewSelfProfileSession=0

ViewFrdProfileSession=0

PostCmtOnResSession=0

DeleteCmtOnResSession=0

InviteFrdSession=0

AcceptFrdReqSession=0

RejectFrdReqSession=0

ThawFrdshipSession=0



#user actions

ViewProfileAction=0.35

ListFriendsAction=0.05

ViewFriendReqAction=0.05

InviteFriendAction=0.04

AcceptFriendReqAction=0.02

RejectFriendReqAction=0.02

ThawFriendshipAction=0.02

ViewTopKResourcesAction=0.35

ViewCommentsOnResourceAction=0.1

PostCommentOnResourceAction=0

DeleteCommentOnResourceAction=0

ViewNewsFeedAction=0


requestdistribution=dzipfian

zipfianmean=0.27


Jason Yap

unread,
Feb 17, 2014, 7:19:50 PM2/17/14
to BG-Social...@googlegroups.com
Have you debugged it to see what object is NULL? This is an object within your HBaseClient implementation itself, so you should start verifying that the implementation is correct first.

operationcount can be 0. If you take a look at the runtime parameter documentation for BG (http://bgbenchmark.org/BG/runtimeparams.html), you'll see a description of the parameter. If you specify a maxexecutiontime, your benchmark will run for that amount of time. If you did not specify a maxexecutiontime, but instead specified an operationcount, your benchmark will run for that many operations.



--
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.

Reply all
Reply to author
Forward
0 new messages