SWIMProjectUCB / SWIM

Statistical Workload Injector for MapReduce - Project at UC Berkeley AMP Lab
https://github.com/SWIMProjectUCB/SWIM/wiki
129 stars 94 forks source link

Fix Hadoop 0.20, 0.21 compilation; improve handling of script dir #2

Closed adferguson closed 12 years ago

adferguson commented 12 years ago

Current versions of Hadoop seem to support getFloat as part of jobConf and not getDouble: https://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/conf/Configuration.html#getFloat(java.lang.String, float)

This pull request also improves the handling of the script directory as part of GenerateReplayScript. If the directory doesn't exist, it creates it. Otherwise, it confirms with the user before over-writing an existing directory.