- Download Cosbench source code either from github repo or from releases:
- To download it from github repo.
git clone https://github.com/intel-cloud/cosbench.git git checkout -b v0.4.2 git checkout remotes/origin/0.4.2.0 git branch -vv
- To download it from releases
wget https://github.com/intel-cloud/cosbench/archive/v0.4.2.tar.gz tar -xvzf v0.4.2.tar.gz
- To download it from github repo.
- Download Eclipse SDK from here
- Open Eclipse SDK
- Select "File -> Import -> General -> Existeing Projects into Workspace"
- Select the "dev" folder in cosbench as a root directory and click "Finish" button.
- Eclipse imports all projects in workspace. After the code is imported, there will be error signs on multiple projects.
-
Import existing Cosbench plug-ins into target platform
- Select "Eclipse -> Preferences -> Plug-in Development -> Target Platform",
- Select "Running Platform (Active) " and click "Edit" button to add required plugins.
- Select the 3 folders located under "cosbench/dist" directory
- main
- osgi
- osgi\libs
- After added those folders, then apply changes.
-
Cosbench-openio shows an error says "test/ is missing from source"
cd CosbenchHOME$/dev/cosbench-openio mkdir test
-
If you want to run Cosbench with Pbench
- Cosbench changing system clock issue which is causing error on pbench. To resolve the problem, open "cosbench/dev/cosbench-driver-web/src/com/intel/cosbench/driver/handler/PingHandler.java" and remove the line
///setSysTime(getControllerTime(scanner));
- Cosbench changing system clock issue which is causing error on pbench. To resolve the problem, open "cosbench/dev/cosbench-driver-web/src/com/intel/cosbench/driver/handler/PingHandler.java" and remove the line
-
(For released version only) Modification for the v0.4.2
- Currently released version (0.4.2) has a problem that can not be used. I follow the following code modification to resolve the problem. intel-cloud/cosbench#373
- Correct the wrong library path
- Remove unnecessary metadata of cosbench-ecs
- Add a default configuration for importing cosbench-ecs project
- Modify the version(0.4.1) of the MANIFEST.MF files to be the same as the version(0.4.2) recorded in the VERSION file for linux users.
-
All error signs should disappear, then the development environment is ready.
- Select all projects and right click and select "Export -> Plug-in Development -> Deployable plugins and fragments"
- Set the "Directory" to "dist\osgi" folder. Then the plugins library will be placed at "dist\osgi\plugins" folder.
- Run
pack.sh <version number>
from cosbench directory.
- If you are using centos/Rhel please edit "cosbench-start.sh" file
cd CosbenchHOME$/<version number>
vim cosbench-start.sh
- Edit the TOOL_PARAMS parameter
TOOL_PARAMS=""