Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1D339F95 for ; Tue, 14 Feb 2012 18:24:21 +0000 (UTC) Received: (qmail 54942 invoked by uid 500); 14 Feb 2012 18:24:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 54899 invoked by uid 500); 14 Feb 2012 18:24:21 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 54891 invoked by uid 500); 14 Feb 2012 18:24:21 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 54887 invoked by uid 99); 14 Feb 2012 18:24:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 18:24:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 18:24:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 134131B7F5A for ; Tue, 14 Feb 2012 18:24:00 +0000 (UTC) Date: Tue, 14 Feb 2012 18:24:00 +0000 (UTC) From: "Edward Capriolo (Updated) (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1381594143.37276.1329243840080.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-1444) "hdfs" is hardcoded in few places in the code which inhibits use of other file systems MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Edward Capriolo updated HIVE-1444: ---------------------------------- Attachment: hive-1444.patch.txt > "hdfs" is hardcoded in few places in the code which inhibits use of other file systems > -------------------------------------------------------------------------------------- > > Key: HIVE-1444 > URL: https://issues.apache.org/jira/browse/HIVE-1444 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.7.0 > Environment: any > Reporter: Yuliya Feldman > Assignee: Edward Capriolo > Priority: Minor > Attachments: hive-1444.patch.txt > > > In quite a few places "hdfs" is hardcoded, which is OK for majority of the cases, except when it is not really hdfs, but s3 or any other file system. > The place where it really breaks is: > in ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java : > method: private void applyConstraints(URI fromURI, URI toURI, Tree ast, boolean isLocal) > First few lines are check for file system: > if (!fromURI.getScheme().equals("file") > && !fromURI.getScheme().equals("hdfs")) { > throw new SemanticException(ErrorMsg.INVALID_PATH.getMsg(ast, > "only \"file\" or \"hdfs\" file systems accepted")); > } > "hdfs" is hardcoded. > I don't think you need to have this check at all as you are checking whether filesystem is local or not later on anyway and in regards to non locla file system - if one would be bad one you would get problems or have it look like local before you even come to "applyConstraints" method. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira