When I try adding Hadoop to only those ones, I get a bunch of errors like these:

[error] /home/sandy/spark/spark/bagel/src/main/scala/org/apache/spark/bagel/Bagel.scala:197: bad symbolic reference. A signature in SparkContext.class refers to term io
[error] in package org.apache.hadoop which is not available.
[error] It may be completely missing from the current classpath, or the version on
[error] the classpath might be incompatible with the version used when compiling SparkContext.class.
[error]       sc, vertices, messages, new DefaultCombiner(), None, part, numPartitions, storageLevel)(