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 EAEE718DF2 for ; Wed, 24 Jun 2015 08:59:35 +0000 (UTC) Received: (qmail 43926 invoked by uid 500); 24 Jun 2015 08:59:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 43859 invoked by uid 500); 24 Jun 2015 08:59:35 -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 43843 invoked by uid 99); 24 Jun 2015 08:59:34 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2015 08:59:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 34E141A600A for ; Wed, 24 Jun 2015 08:59:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.15 X-Spam-Level: *** X-Spam-Status: No, score=3.15 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=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bg7O71UTn9Jz for ; Wed, 24 Jun 2015 08:59:28 +0000 (UTC) Received: from mail-yh0-f44.google.com (mail-yh0-f44.google.com [209.85.213.44]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 9FB674BB8D for ; Wed, 24 Jun 2015 08:59:28 +0000 (UTC) Received: by yhak3 with SMTP id k3so14042649yha.2 for ; Wed, 24 Jun 2015 01:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=usn+yRvQR25yVuul51I5KAxxKPMygVFFC63QSkSbPsU=; b=cj6twFl7Ahk3yrc+7uy1xtlhwCiYnB2BxRTQurMqFKbKufeGPtDC1kbSRx/dNuV6Et sZB2AQGipc+kbB6IxSUyFu83WYMvaKROoZmBygBcj5zxwcUnM8b/3uBTVhJQHXdfhstx gLCUh5zyD9eKGSg4QlAveK6rWW89SJBeHqfz2XCeNzmTkOETjXzwvj8qvnDCfABrDKJz ghC6G3zeYJavsL51PEz1GJ2mRVvw4ZrtjUx+RPG47mWEdxXcd23+3YaxGoaP6X2ldQXi /gOS9Cs0Jzzwu24mnRQDf5OW5LOGNBPzFxxGrHbGHHngzuYB1j0nye++K3byhoNF/KzV 37BQ== MIME-Version: 1.0 X-Received: by 10.13.245.69 with SMTP id e66mr44603443ywf.176.1435136368291; Wed, 24 Jun 2015 01:59:28 -0700 (PDT) Received: by 10.37.0.66 with HTTP; Wed, 24 Jun 2015 01:59:28 -0700 (PDT) Date: Wed, 24 Jun 2015 01:59:28 -0700 Message-ID: Subject: Re: Cloning Hive Trunk: HadoopArchives Dependency Not Found From: Nishant Kelkar To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=94eb2c0885be6fb60105193fb9fe --94eb2c0885be6fb60105193fb9fe Content-Type: text/plain; charset=UTF-8 Hi all, So I am a beginner to Hive, pardon me if I'm doing something wrong. I recently cloned the Hive dev trunk (master branch) via Git. I then went into my IDE (IntelliJ) and started looking around. At first, it resolved a lot of dependencies. However, after my IDE finished pulling from different sources, I saw that it was still missing the *HadoopArchives* dependency. Later on, I was trying to build the hive/ql sub-project with 'mvn clean compile', but I'm getting the following error: *---BEGIN---* [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hive-exec: Compilation failure: Compilation failure: [ERROR] /Users/nishantkelkar/hive/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java:[213,31] cannot find symbol [ERROR] symbol: class HadoopArchives [ERROR] location: package org.apache.hadoop.tools [ERROR] /Users/nishantkelkar/hive/ql/src/java/org/apache/hadoop/hive/ql/hooks/ATSHook.java:[42,41] cannot find symbol [ERROR] symbol: class TimelineClient [ERROR] location: package org.apache.hadoop.yarn.client.api [ERROR] /Users/nishantkelkar/hive/ql/src/java/org/apache/hadoop/hive/ql/hooks/ATSHook.java:[57,18] cannot find symbol [ERROR] symbol: class TimelineClient [ERROR] location: class org.apache.hadoop.hive.ql.hooks.ATSHook [ERROR] /Users/nishantkelkar/hive/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java:[1351,9] cannot find symbol [ERROR] symbol: class HadoopArchives [ERROR] location: class org.apache.hadoop.hive.ql.exec.DDLTask [ERROR] /Users/nishantkelkar/hive/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java:[1351,34] cannot find symbol [ERROR] symbol: class HadoopArchives [ERROR] location: class org.apache.hadoop.hive.ql.exec.DDLTask [ERROR] /Users/nishantkelkar/hive/ql/src/java/org/apache/hadoop/hive/ql/hooks/ATSHook.java:[72,26] cannot find symbol [ERROR] symbol: variable TimelineClient [ERROR] location: class org.apache.hadoop.hive.ql.hooks.ATSHook [ERROR] -> [Help 1] *---END---* I looked at the pom.xml, and the following is highlighted in red: org.apache.hadoop hadoop-archives ${hadoop-23.version} true This basically means that IntelliJ/Maven was not able to find the dependency under the Maven repo. I saw the ticket HIVE-9048 and HadoopArchives should be a sub-dependency of the hadoop-tools dependency right? Here's a copy of the relevant mirrors that I'm using in my settings.xml: Conjars * US Conjars http://conjars.org/repo US central US Central http://repo.maven.apache.org/maven2 Does anyone have an idea why this could be happening? I was kind of expecting just cloning from Git, and running 'mvn clean compile' and seeing everything pass and build with success. Best Regards, Nishant Kelkar --94eb2c0885be6fb60105193fb9fe--