Skip to content

Commit

Permalink
spark-class merge
Browse files Browse the repository at this point in the history
Merge branch 'master_nravi' of https://github.com/nishkamravi2/spark into master_nravi

Conflicts:
	bin/spark-class
  • Loading branch information
nishkamravi2 committed Mar 20, 2015
2 parents ac58975 + 06bfeb0 commit 345206a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/spark-class
Expand Up @@ -44,12 +44,12 @@ fi
SPARK_ASSEMBLY_JAR=
ASSEMBLY_DIR="$SPARK_HOME/lib"
num_jars="$(ls -1 "$ASSEMBLY_DIR" | grep "^spark-assembly.*\.jar$" | wc -l)"
ASSEMBLY_JARS="$(ls -1 "$ASSEMBLY_DIR" | grep "^spark-assembly.*\.jar$" || true)"
if [ "$num_jars" -eq "0" -a -z "$SPARK_ASSEMBLY_JAR" ]; then
echo "Failed to find Spark assembly in $ASSEMBLY_DIR." 1>&2
echo "You need to build Spark before running this program." 1>&2
exit 1
fi
ASSEMBLY_JARS="$(ls -1 "$ASSEMBLY_DIR" | grep "^spark-assembly.*\.jar$" || true)"
if [ "$num_jars" -gt "1" ]; then
echo "Found multiple Spark assembly jars in $ASSEMBLY_DIR:" 1>&2
echo "$ASSEMBLY_JARS" 1>&2
Expand Down
Expand Up @@ -341,7 +341,7 @@ private String findAssembly(String scalaVersion) {
libdir = new File(sparkHome, String.format("assembly/target/scala-%s", scalaVersion));
}

final Pattern re = Pattern.compile("spark-assembly.*[hadoop]*.*\\.jar");
final Pattern re = Pattern.compile("spark-assembly.*\\.jar");
FileFilter filter = new FileFilter() {
@Override
public boolean accept(File file) {
Expand Down

0 comments on commit 345206a

Please sign in to comment.