Skip to content

Commit b9186be

Browse files
author
Thomas Risberg
committed
SHDP-388 Fixing problem introduced after package change for JobCreationException in Pig 0.13.0
1 parent f31cdab commit b9186be

File tree

1 file changed

+1
-2
lines changed
  • spring-hadoop-core/src/main/java/org/springframework/data/hadoop/pig

1 file changed

+1
-2
lines changed

spring-hadoop-core/src/main/java/org/springframework/data/hadoop/pig/PigUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.apache.pig.backend.BackendException;
2929
import org.apache.pig.backend.executionengine.ExecException;
3030
import org.apache.pig.backend.executionengine.ExecJob;
31-
import org.apache.pig.backend.hadoop.executionengine.JobCreationException;
3231
import org.apache.pig.impl.logicalLayer.FrontendException;
3332
import org.apache.pig.impl.logicalLayer.schema.SchemaMergeException;
3433
import org.apache.pig.impl.plan.PlanException;
@@ -74,7 +73,7 @@ static DataAccessException convert(PigException ex) {
7473
}
7574

7675
if (ex instanceof FrontendException) {
77-
if (ex instanceof JobCreationException) {
76+
if (ex.getClass().getName().contains("JobCreationException")) {
7877
return new InvalidDataAccessResourceUsageException("Map Reduce error", ex);
7978
}
8079

0 commit comments

Comments
 (0)