Index: ql/src/java/org/apache/hadoop/hive/ql/Context.java =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/Context.java (revision 4486) +++ ql/src/java/org/apache/hadoop/hive/ql/Context.java (working copy) @@ -180,6 +180,9 @@ makeMRScratchDir(); } catch (IOException e) { throw new RuntimeException (e); + } catch (IllegalArgumentException e) { + throw new RuntimeException("Error while making MR scratch " + + "directory - check filesystem config (" + e.getCause() + ")"); } } return MRScratchDir.toString(); @@ -194,6 +197,9 @@ makeLocalScratchDir(); } catch (IOException e) { throw new RuntimeException(e); + } catch (IllegalArgumentException e) { + throw new RuntimeException("Error while making local scratch " + + "directory - check filesystem config (" + e.getCause() + ")"); } } return localScratchDir.toString();