intel-cloud / cosbench

a benchmark tool for cloud object storage service
Other
573 stars 242 forks source link

BUILD.md tips #353

Open jamshid opened 7 years ago

jamshid commented 7 years ago
  1. Make sure you download the Eclipse Java EE package from https://www.eclipse.org/downloads/eclipse-packages/, not plain Java. EE is needed to see some Plugin menu items.
  2. It worked for me with Eclipse Neon (4.6). Instructions say Juno (4.2) but f that it wants Java 6.
  3. On a Mac, below menu structure from item 4 is not under "Windows", it's under Eclipse => Preferences and if it's missing see above! "Window -> Preferences -> Plug-in Development -> Target Platform", in "Target definitions", choose the active one,
  4. Make sure you compile with Java 7 (not java 8) if that's what you're using to run cosbench. I think the binaries with built with that so this might be necessary if distributing your adapter. Eclipse => Project Properties => Java Compiler => Workplace Settings, compiler 1.7 and (separate page) JRE 1.7.
  5. For the S3 plugin to compile I had to explicitly add the aws-java-sdk libs, this is my .classpath diff. Maybe I missed some other step?
    +    <classpathentry kind="lib" path="/cosbench-s3/aws-java-sdk-s3-1.10.76.jar"/>
    +    <classpathentry kind="lib" path="/cosbench-s3/aws-java-sdk-core-1.10.76.jar"/>
  6. If you add any logging (e.g. in dev/cosbench-s3/src/com/intel/cosbench/api/S3Stor/S3Storage.java) it will appear in a log like ./log/mission/M1D0B4B297E.log, not the controller or driver logs.