Skip to content

Commit 6829f7a

Browse files
avovchenkoekrivokonmapr
authored andcommitted
[SPARK-318] Submitting Spark jobs from Oozie fails due to ClassNotFoundException (apache#353)
1 parent 6e7496c commit 6829f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/classpath-filter/src/main/scala/org/apache/spark/classpath/ClasspathFilter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ object ClasspathFilter {
4242

4343
def resolveClasspath(classpath: Array[String]): Array[String] = {
4444
classpath.flatMap(path => {
45-
if (path.endsWith("/*")) {
45+
if (path.endsWith("/*") && path.startsWith("/")) {
4646
scanner.setBasedir(path.dropRight(1))
4747
scanner.scan()
4848
scanner.getIncludedFiles.map(jar => path.dropRight(1) + jar)

0 commit comments

Comments
 (0)