Return-Path: X-Original-To: apmail-incubator-drill-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-drill-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D34B17D2A for ; Thu, 23 Oct 2014 18:12:19 +0000 (UTC) Received: (qmail 49683 invoked by uid 500); 23 Oct 2014 18:12:19 -0000 Delivered-To: apmail-incubator-drill-user-archive@incubator.apache.org Received: (qmail 49631 invoked by uid 500); 23 Oct 2014 18:12:19 -0000 Mailing-List: contact drill-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: drill-user@incubator.apache.org Delivered-To: mailing list drill-user@incubator.apache.org Received: (qmail 49614 invoked by uid 99); 23 Oct 2014 18:12:18 -0000 Received: from ec2-54-76-25-247.eu-west-1.compute.amazonaws.com (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2014 18:12:18 +0000 Received: from mx1-eu-west.apache.org (localhost [127.0.0.1]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 061A12016B for ; Thu, 23 Oct 2014 18:12:18 +0000 (UTC) Received: by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org, from userid 113) id EF75D26E3C; Thu, 23 Oct 2014 18:12:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx1-eu-west.apache.org X-Spam-Level: X-Spam-Status: No, score=1.0 required=10.0 tests=HTML_MESSAGE, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID,URIBL_BLOCKED, WEIRD_PORT autolearn=disabled version=3.4.0 Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 417712016B for ; Thu, 23 Oct 2014 18:12:17 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id x19so1436639ier.5 for ; Thu, 23 Oct 2014 11:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zjOzkAdYTpSoEnLKgJFqoWwPmhVWFfRsIkUluRe7UUs=; b=TkmUF/ectf8/hjNIJGRYvbUFDlFT+4Fv44XyQ6rIUnYpvLv1p8Go106cxPk0NsBheT yLslB/xxj4IIExaHm2SD0ox2A9Wu30YzXP3STPBffdwEW6HYZUKLAT1PuSqrQVUbT7Ut 4hGB9gcSVk/YrgNut1K7YcmjUqtT7oZlEvCivCyGL8TS04a2EJGBemLhkgc6v4OUwwMt r+vG0kd+775mJAzsrYDJXjWmJK0XLfGZr0QNI9GSQEI+3jN7eoLxyrG+yS7RvPWYq7wG CgyFvfiW94MY7URxZ/sI3+BZ6ObdEBTOs4zMkMtyDdOS6sMjQk7ugiBwqe7py+BhXVr3 Bxnw== MIME-Version: 1.0 X-Received: by 10.50.43.161 with SMTP id x1mr14105467igl.17.1414087890293; Thu, 23 Oct 2014 11:11:30 -0700 (PDT) Received: by 10.64.166.134 with HTTP; Thu, 23 Oct 2014 11:11:30 -0700 (PDT) In-Reply-To: References: Date: Thu, 23 Oct 2014 11:11:30 -0700 Message-ID: Subject: Re: Error in running select over hdfs From: Mohit Anchlia To: drill-user@incubator.apache.org Content-Type: multipart/alternative; boundary=089e0111bffe61dd5205061afef0 X-Virus-Scanned: ClamAV using ClamSMTP --089e0111bffe61dd5205061afef0 Content-Type: text/plain; charset=UTF-8 I've tried that too Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0) 0: jdbc:drill:zk=local> select * from hdfs.json.`/tweets-0.txt`; Oct 23, 2014 2:10:40 PM org.eigenbase.sql.validate.SqlValidatorException SEVERE: org.eigenbase.sql.validate.SqlValidatorException: Table 'hdfs.json./tweets-0.txt' not found Oct 23, 2014 2:10:40 PM org.eigenbase.util.EigenbaseException SEVERE: org.eigenbase.util.EigenbaseContextException: From line 1, column 15 to line 1, column 18: Table 'hdfs.json./tweets-0.txt' not found Query failed: Failure while parsing sql. Table 'hdfs.json./tweets-0.txt' not found [619f0469-0606-4e8e-9ae5-17a305f527fe] Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0) 0: jdbc:drill:zk=local> On Thu, Oct 23, 2014 at 11:04 AM, Neeraja Rentachintala < nrentachintala@maprtech.com> wrote: > can you just try this. > select * from hdfs.json.`/tweets-0.txt`; > > On Thu, Oct 23, 2014 at 10:59 AM, Mohit Anchlia > wrote: > > > This is what I see, looks like that file is showing up > > > > sqlline version 1.1.6 > > 0: jdbc:drill:zk=local> use hdfs.json; > > +------------+------------+ > > | ok | summary | > > +------------+------------+ > > | true | Default schema changed to 'hdfs.json' | > > +------------+------------+ > > 1 row selected (1.112 seconds) > > 0: jdbc:drill:zk=local> show files > > . . . . . . . . . . . > ; > > > > > +------------+-------------+------------+------------+------------+------------+-------------+------------+------------------+ > > | name | isDirectory | isFile | length | owner | > > group | permissions | accessTime | modificationTime | > > > > > +------------+-------------+------------+------------+------------+------------+-------------+------------+------------------+ > > | tweets-0.txt | false | true | 2097437 | root | > > supergroup | rw-r--r-- | 2014-10-22 19:26:15.458 | 2014-10-22 > > 14:04:26.585 | > > | tweets-1.txt | false | true | 1998156 | root | > > supergroup | rw-r--r-- | 2014-10-22 14:04:26.616 | 2014-10-22 > > 14:04:37.123 | > > > > > +------------+-------------+------------+------------+------------+------------+-------------+------------+------------------+ > > 2 rows selected (0.264 seconds) > > 0: jdbc:drill:zk=local> > > > > On Thu, Oct 23, 2014 at 10:56 AM, Jason Altekruse < > > altekrusejason@gmail.com> > > wrote: > > > > > Could you try running 'show files' from the sqllline prompt to see if > > that > > > gives you any results for files Drill is able to find? > > > > > > On Thu, Oct 23, 2014 at 10:43 AM, Mohit Anchlia < > mohitanchlia@gmail.com> > > > wrote: > > > > > > > Could somebody look at this error and advise what might be wrong? It > > > seems > > > > I am doing everything that's documented. > > > > On Wed, Oct 22, 2014 at 2:20 PM, Mohit Anchlia < > mohitanchlia@gmail.com > > > > > > > wrote: > > > > > > > > > I am getting the following error even though that file exists in > hdfs > > > > > > > > > > 0: jdbc:drill:zk=local> select * from > > > > > hdfs.`/user/train/xd/tweets/tmp/tweets-0.txt`; > > > > > Oct 22, 2014 5:16:31 PM > > > org.eigenbase.sql.validate.SqlValidatorException > > > > > > > > > > SEVERE: org.eigenbase.sql.validate.SqlValidatorException: Table > > > > > 'hdfs./user/train/xd/tweets/tmp/tweets-0.txt' not found > > > > > Oct 22, 2014 5:16:31 PM org.eigenbase.util.EigenbaseException > > > > > > SEVERE: org.eigenbase.util.EigenbaseContextException: From line 1, > > > column > > > > > 15 to line 1, column 18: Table > > > > > 'hdfs./user/train/xd/tweets/tmp/tweets-0.txt' not found > > > > > Query failed: Failure while parsing sql. Table > > > > > 'hdfs./user/train/xd/tweets/tmp/tweets-0.txt' not found > > > > > [7e1d5c73-0521-480e-b74b-a4fa50e3f4a7] > > > > > Error: exception while executing query: Failure while trying to get > > > next > > > > > result batch. (state=,code=0) > > > > > > > > > > > > > > > I created new plugin called hdfs. > > > > > > > > > > { > > > > > "type": "file", > > > > > "enabled": true, > > > > > "connection": "hdfs://10.225.156.201:9000/", > > > > > "workspaces": { > > > > > "json": { > > > > > "location": "/user/train/xd/tweets/tmp", > > > > > "writable": false, > > > > > "storageformat": "json" > > > > > } > > > > > }, > > > > > "formats": { > > > > > "json": { > > > > > "type": "json" > > > > > } > > > > > } > > > > > } > > > > > > > > > > > > > > > --089e0111bffe61dd5205061afef0--