more exception handeling

This commit is contained in:
Prabhjyot Singh 2016-05-03 17:19:18 +05:30
parent 1e184659f1
commit 200e715d39
3 changed files with 3 additions and 0 deletions

View file

@ -76,6 +76,7 @@ public class LivyPySparkInterpreter extends Interpreter {
"pyspark")
);
} catch (Exception e) {
LOGGER.error("Exception in LivyPySparkInterpreter while interpret ", e);
return new InterpreterResult(InterpreterResult.Code.ERROR, e.getMessage());
}
}

View file

@ -76,6 +76,7 @@ public class LivySparkRInterpreter extends Interpreter {
"sparkr")
);
} catch (Exception e) {
LOGGER.error("Exception in LivySparkRInterpreter while interpret ", e);
return new InterpreterResult(InterpreterResult.Code.ERROR, e.getMessage());
}
}

View file

@ -80,6 +80,7 @@ public class LivySparkSQLInterpreter extends Interpreter {
);
livyHelper.initializeSpark(interpreterContext, userSessionMap);
} catch (Exception e) {
LOGGER.error("Exception in LivySparkSQLInterpreter while interpret ", e);
return new InterpreterResult(InterpreterResult.Code.ERROR, e.getMessage());
}
}