Index: ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java (revision 1244134) +++ ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java (working copy) @@ -101,7 +101,7 @@ } // if scheme is specified but not authority then use the default authority - if (fromScheme.equals("hdfs") && StringUtils.isEmpty(fromAuthority)) { + if ((!fromScheme.equals("file")) && StringUtils.isEmpty(fromAuthority)) { URI defaultURI = FileSystem.get(conf).getUri(); fromAuthority = defaultURI.getAuthority(); } @@ -112,11 +112,6 @@ private void applyConstraints(URI fromURI, URI toURI, Tree ast, boolean isLocal) throws SemanticException { - if (!fromURI.getScheme().equals("file") - && !fromURI.getScheme().equals("hdfs")) { - throw new SemanticException(ErrorMsg.INVALID_PATH.getMsg(ast, - "only \"file\" or \"hdfs\" file systems accepted")); - } // local mode implies that scheme should be "file" // we can change this going forward