Open Otis4631 opened 4 years ago
Let me check the code. I will get back to you. This code is from original BechmarkSQL project.
I checked bechmarksql source code. The error is caused by the following lines:
if (payGetWhse == null) {
payGetWhse = conn.prepareStatement(
"SELECT w_street_1, w_street_2, w_city, w_state, w_zip, w_name" +
" FROM benchmarksql.warehouse WHERE w_id = ?");
}
payGetWhse.setInt(1, w_id);
rs = payGetWhse.executeQuery();
if (!rs.next()) {
log.error("payGetWhse() not found! W_ID=" + w_id);
}
My best guess is that your data is kinda corrupted. I suggest you empty your database and repopulate. If this happens again, attach the error log. It can provide me the details to look deeper.
I got an error when I try to run ./runSQL.sh props.pg sqlTableCreates
Error: Could not find or load main class ExecJDBC Please give me a solution for this I trying for the last two days. I change my JDK path to JDK7.0 still get an Error
It is because what you downloaded from github is source code instead of binary. You need to build the project first. Go to the root directory. Run "ant" command to build it giving you have already installed ant.
Yes I already installed ant and run ant outside run folder then it creates .class file in build folder and other dist folder with benchmarks.jar file after when I ran run SQL.sh script file it gave me an error that class couldn't find.
it looks really strange to me. but java 1.7 is really really really old. i suggest you try 1.8 at least. and also what version of linux are you using?
Yes I have ran with JDK 8 but I don't have Linux system, I am running on windows should I run on Linux or virtualBox?
that's a bad idea. my friend. use a linux vm to test at least. for real performance test, recommend bare metal.
yes, I will use Linux OS but will that resolve the problem?
i can help you make it work when i have time. i've never had any issues with either my fork of benchmarksql or the original benchmarksql. be noted i am using linux all the time.
Yes sure because it is for my recent project and they want us to determine the performance of the database when thousands of data load into database. If it possible for you when I install Linux will let you know
I followed the instruction in the README.md and get the Error blow.
props.pg: