Return-Path: X-Original-To: apmail-impala-dev-archive@minotaur.apache.org Delivered-To: apmail-impala-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67FB219B0E for ; Tue, 5 Apr 2016 05:11:17 +0000 (UTC) Received: (qmail 20379 invoked by uid 500); 5 Apr 2016 05:11:17 -0000 Delivered-To: apmail-impala-dev-archive@impala.apache.org Received: (qmail 20341 invoked by uid 500); 5 Apr 2016 05:11:17 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Delivered-To: moderator for dev@impala.incubator.apache.org Received: (qmail 9462 invoked by uid 99); 5 Apr 2016 00:56:19 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.448 X-Spam-Level: * X-Spam-Status: No, score=1.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1t+Gg++MZpobPPuXBygp1T7i3oy2NszAREF47TVtoVI=; b=WjskcaNz1Cbku0wbwAx68jrfc7Nps6hSExlyBm17GMy4AQ1fYCufgllMN8pYF/GmrV wBD21AR0pHkR53n2UjYIvt8TYo0Opnsng7WSj9WH/C42SyzHXu+pyzR2MGdjNinguZB4 H66B0fcTNQUV13X3bo5wDmFN+Il+AqbckthOkTFlPG2lm6GLMWJI0XgdIz230IHxPaf5 YtyK2dEUDgrPdFtd0LiDJvRWKmRNasV8INSggx1it7SVNJxLBNgUhL3iuevqIut4Tjbl 4CU5nNSKktOwglq2olKhvuNoGXNOqNsF9XK2+T3b97Oc/OQpCpLQVwvybDN/ndfEtVGP Sidg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1t+Gg++MZpobPPuXBygp1T7i3oy2NszAREF47TVtoVI=; b=O8lTUxgGhwWNug4rVSEfLzVx+slPTiRBrjRbYhhK34j/hcxP35sBJhcj1go3ydqSam krO+aJkL2mNznEf37hcHjuCN8OXYdn70tOIIWnAjKl7woO9tkJxwSA1PVuhiNqTJlmr2 Uo9A/7RSjtVfrLfDOLUoQvEIepofd1wpYSznTbd/RkRoxz7aTnYzMBhBA3dM0AV6fFPZ fkxmo9mSDfCmaY5zpbgJsKo2cqK3QxDtpkLpIM9w7MK470SqOQ++6+BYiMlLBIWV4oAE 6wlvWtzwf3RD5cVqB95jWk2R1AUeEB0mI6CwmsyF8QcG5xUy67pT0y0f5cpc4lCxONwK dEmg== X-Gm-Message-State: AD7BkJJqgh9tzIHIo4F8JXS1oA9HJb4RCMMkVXdNbxZEiAhHzi84JvcH4dq1zwiwp28g3bfcCfcWUZYARplqdw== X-Received: by 10.107.18.214 with SMTP id 83mr18567686ios.130.1459817768909; Mon, 04 Apr 2016 17:56:08 -0700 (PDT) MIME-Version: 1.0 References: <7e055592-093a-45da-86ca-5d7239977e9a@cloudera.org> In-Reply-To: From: Pradeep Nayak Date: Tue, 05 Apr 2016 00:55:58 +0000 Message-ID: Subject: Re: maven error while compiling the front end code To: Skye Wanderman-Milne Cc: Impala Dev , dev@impala.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113eceba8d8315052fb24f47 --001a113eceba8d8315052fb24f47 Content-Type: text/plain; charset=UTF-8 Also just wanted to understand one more thing. http://www.cloudera.com/documentation/enterprise/5-5-x/topics/impala_s3.html It mentions that impala needs to have a default file system which is hdfs, but not just s3a, or any other filesystem which extends Hadoop FileSystem class ? Is there plans to support non hdfs filesystem as default ? Meanwhile I got around the problem earlier. I can query tables, do a count(*), etc. However join is causing a problem... *select * from tab1 join tab2;* *Query: select * from tab1 join tab2* *ERROR:* *Failed to connect to FS* *Error(255): Unknown error 255* Pradeep On Mon, Apr 4, 2016 at 3:31 PM Pradeep Nayak wrote: > That's what been puzzling me as well :(. Let me get back to you with that > information. > > Pradeep > > On Mon, Apr 4, 2016 at 3:28 PM Skye Wanderman-Milne > wrote: > >> Actually, I didn't read your exception carefully and didn't notice that >> it can't find an Impala class, so it's probably not a dependency issue. >> >> Can you restart your cluster, rerun a select * query, and then search >> your logs for that "NoClassDefFoundError"? That will tell us which process >> the error is coming from. That class is included in the FE jar, so I'm not >> sure why it wouldn't be able to find it. >> >> >> On Mon, Apr 4, 2016 at 3:14 PM, Pradeep Nayak >> wrote: >> >>> Sure Skye. I didn't notice the to: list as well until you pointed out. I >>> really appreciate your help here. >>> >>> I haven't modified the pom.xml for the front-end here: >>> https://github.com/cloudera/Impala/blob/cdh5.5.2-release/fe/pom.xml >>> >>> I am just building with this at the moment. mvn clean package >>> -DSkipTests = true from the fe folder. >>> >>> >>> On Mon, Apr 4, 2016 at 3:11 PM Skye Wanderman-Milne >>> wrote: >>> >>>> Ah didn't mean to take this off the dev list. Also add our new >>>> dev@impala.incubator list. >>>> >>>> Can you check what dependency versions you're pulling in from maven? My >>>> guess is that you're somehow building with non-CDH5.5.2 frontend >>>> dependencies. >>>> >>>> On Mon, Apr 4, 2016 at 3:04 PM, Pradeep Nayak >>>> wrote: >>>> >>>>> Umm, I am trying to test this on a dev cluster which has cloudera >>>>> parcels already installed. I just re-placed >>>>> impala-frontend-0.1-SNAPSHOT.jar with my version. Do I need to change >>>>> anything on the dev cluster ? >>>>> >>>>> On Mon, Apr 4, 2016 at 2:43 PM Skye Wanderman-Milne >>>>> wrote: >>>>> >>>>>> Try: source $IMPALA_HOME/bin/set-classpath.sh >>>>>> >>>>>> If you recently switched branches, you may want to close your current >>>>>> terminal, open a new one, and re-source $IMPALA_HOME/bin/impala-config.sh >>>>>> and set-classpath.sh. >>>>>> >>>>>> Then restart your cluster (start-impala-cluster.py) >>>>>> >>>>>> On Mon, Apr 4, 2016 at 2:39 PM, Pradeep Nayak >>>>>> wrote: >>>>>> >>>>>>> Thanks Skye. >>>>>>> >>>>>>> I am in my impala shell. I get this following error. I see this is >>>>>>> already compiled as part of impala-frontend. This happens only when I try >>>>>>> to do a "select * from " I can do "show tables; create table >>>>>>> " etc. Any pointers ? >>>>>>> >>>>>>> ERROR: AnalysisException: java.lang.NoClassDefFoundError: Could not >>>>>>> initialize class com.cloudera.impala.util.HdfsCachingUtil >>>>>>> >>>>>>> CAUSED BY: ExecutionException: java.lang.NoClassDefFoundError: Could >>>>>>> not initialize class com.cloudera.impala.util.HdfsCachingUtil >>>>>>> >>>>>>> CAUSED BY: NoClassDefFoundError: Could not initialize class >>>>>>> com.cloudera.impala.util.HdfsCachingUtil >>>>>>> >>>>>>> CAUSED BY: TableLoadingException: java.lang.NoClassDefFoundError: >>>>>>> Could not initialize class com.cloudera.impala.util.HdfsCachingUtil >>>>>>> >>>>>>> CAUSED BY: ExecutionException: java.lang.NoClassDefFoundError: Could >>>>>>> not initialize class com.cloudera.impala.util.HdfsCachingUtil >>>>>>> >>>>>>> CAUSED BY: NoClassDefFoundError: Could not initialize class >>>>>>> com.cloudera.impala.util.HdfsCachingUtil >>>>>>> >>>>>>> I used this tree: >>>>>>> https://github.com/cloudera/Impala/tree/cdh5.5.2-release >>>>>>> >>>>>>> On Mon, Apr 4, 2016 at 12:01 PM Skye Wanderman-Milne < >>>>>>> skye@cloudera.com> wrote: >>>>>>> >>>>>>>> I think it should be >>>>>>>> https://github.com/cloudera/Impala/tree/cdh5-2.3.0_5.5.2 >>>>>>>> >>>>>>>> On Mon, Apr 4, 2016 at 12:00 PM, Pradeep Nayak < >>>>>>>> pradeep1288@gmail.com> wrote: >>>>>>>> >>>>>>>>> Also to what release this parcel *5.5.2-1.cdh5.5.2.p0.4 *map to >>>>>>>>> on github ? I am unable to find a tag/branch for this parcel type. >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Apr 4, 2016 at 11:58 AM Skye Wanderman-Milne < >>>>>>>>> skye@cloudera.com> wrote: >>>>>>>>> >>>>>>>>>> Ah yes, both 1 and 2 are correct. Glad you figured it out! >>>>>>>>>> >>>>>>>>>> On Mon, Apr 4, 2016 at 11:56 AM, Pradeep Nayak < >>>>>>>>>> pradeep1288@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> I just figured. >>>>>>>>>>> 1. For the first time you need to use the ./buildall.sh and for >>>>>>>>>>> subsequent fe compilation I can just use maven >>>>>>>>>>> 2. It doesn't build on Macbook >>>>>>>>>>> 3. I set up a Ubuntu vm and got this compiled. >>>>>>>>>>> >>>>>>>>>>> Pradeep >>>>>>>>>>> >>>>>>>>>>> On Mon, Apr 4, 2016 at 11:07 AM Skye Wanderman-Milne < >>>>>>>>>>> skye@cloudera.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hey Pradeep, >>>>>>>>>>>> >>>>>>>>>>>> You should try running the $IMPALA_HOME/buildall.sh script in >>>>>>>>>>>> order to build Impala. It has a lot of necessary setup to build Impala. >>>>>>>>>>>> Here are the commands from buildall.sh that should provide the >>>>>>>>>>>> impala-data-source-api jar for building the FE: >>>>>>>>>>>> >>>>>>>>>>>> # build the external data source API >>>>>>>>>>>> pushd ${IMPALA_HOME}/ext-data-source >>>>>>>>>>>> ${IMPALA_HOME}/bin/mvn-quiet.sh install -DskipTests >>>>>>>>>>>> popd >>>>>>>>>>>> >>>>>>>>>>>> See >>>>>>>>>>>> https://github.com/cloudera/Impala/blob/cdh5-trunk/buildall.sh#L283 >>>>>>>>>>>> >>>>>>>>>>>> Hope that helps! >>>>>>>>>>>> Skye >>>>>>>>>>>> >>>>>>>>>>>> On Sat, Apr 2, 2016 at 12:55 PM, Pradeep Nayak < >>>>>>>>>>>> pradeep1288@gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> I just cloned the Impala source from github, and I am trying >>>>>>>>>>>>> to compile the front end per Impala wiki. I get the error below. I am using >>>>>>>>>>>>> maven 3. >>>>>>>>>>>>> >>>>>>>>>>>>> [ERROR] Failed to execute goal on project impala-frontend: >>>>>>>>>>>>> Could not resolve dependencies for project >>>>>>>>>>>>> com.cloudera.impala:impala-frontend:jar:0.1-SNAPSHOT: Failure to find >>>>>>>>>>>>> com.cloudera.impala:impala-data-source-api:jar:1.0-SNAPSHOT in >>>>>>>>>>>>> https://repository.cloudera.com/content/groups/cdh-releases-rcs >>>>>>>>>>>>> was cached in the local repository, resolution will not be reattempted >>>>>>>>>>>>> until the update interval of cdh.rcs.releases.repo has elapsed or updates >>>>>>>>>>>>> are forced -> [Help 1 >>>>>>>>>>>>> >>>>>>>>>>>>> This is the command I used: mvn clean package >>>>>>>>>>>>> dependency:copy-dependencies -DskipTests=true >>>>>>>>>>>>> >>>>>>>>>>>>> Any idea getting around this problem ? >>>>>>>>>>>>> >>>>>>>>>>>>> Cheers! >>>>>>>>>>>>> Pradeep >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>>>>> Google Groups "Impala Dev" group. >>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from >>>>>>>>>>>>> it, send an email to impala-dev+unsubscribe@cloudera.org. >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>>> Google Groups "Impala Dev" group. >>>>>>>>>>> To unsubscribe from this group and stop receiving emails from >>>>>>>>>>> it, send an email to impala-dev+unsubscribe@cloudera.org. >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> >>>>>> >>>> >> --001a113eceba8d8315052fb24f47--