Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 416CC2009F3 for ; Fri, 6 May 2016 02:33:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4013C160A05; Fri, 6 May 2016 00:33:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8C344160A04 for ; Fri, 6 May 2016 02:33:52 +0200 (CEST) Received: (qmail 94819 invoked by uid 500); 6 May 2016 00:33:51 -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 94807 invoked by uid 99); 6 May 2016 00:33:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2016 00:33:51 +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 C6F891A1257 for ; Fri, 6 May 2016 00:33:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.802 X-Spam-Level: X-Spam-Status: No, score=-0.802 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id j2c_NfM4JK63 for ; Fri, 6 May 2016 00:33:49 +0000 (UTC) Received: from mail-io0-f170.google.com (mail-io0-f170.google.com [209.85.223.170]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 1040E5F2F2 for ; Fri, 6 May 2016 00:33:49 +0000 (UTC) Received: by mail-io0-f170.google.com with SMTP id u185so116073974iod.3 for ; Thu, 05 May 2016 17:33:49 -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; bh=8XbBOmNJ64p6UMRx2yjOjDdCSFfkq7o2RqpGMHHc3Bo=; b=M/5ZuAEV2CbFvSD7xWdPA2qurCcpQLz8K7zwOA975bySDf3yg6hsYgh/el4072WPFv ML7gjTcIIlaGkXIdRGdi1QgrmZP0eJSroA/CWAC5xx31Klel637dtv5UlzdcIkzdVEhG 8FNdIee85cVpAG0WtbMYhiFzAIha0Twbmkx3tguw8EQ6gog1m+EZ3kNBKh36a76Ftqiz 79MSTzf2O9drizMCuRLkZ1oYt6lXP1r/RQUFr/6+kRg0++H+f+8YfTAU965iuHGaoibS 6yn/4fudiAWcL6ro+w06YypjexEGCZTGCSO1wSNAuS0wiPIHxqV2aWYnORZ5cwRXDvMa ub5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=8XbBOmNJ64p6UMRx2yjOjDdCSFfkq7o2RqpGMHHc3Bo=; b=gxBpxbRuFsaPB2Sd2mY6a2QhHe5rr85avdbPSDlJ0zqPvczJxWu1iGOdMGOAyVhnoQ Jw9bf8A5gvp4pIQF2jjLp2YeLWYDtkfUa3mPJ2784w7bs7yeadXXFD6amhgZlmXPDiar h1fPBzPQUspX5vghs8CnWEvfWxq4bcNue4Ys+dTiwC7V/w/9P6wO/0VQ0ApUe4Imo/H1 P0v3hi4AUP4BU/SfiIlcgw9644iBit9lj8+y7zTs9LGVwSJUDLn400Oh1JDSCkGkHR9P 4/oM2sagQopYPBJEFNUxnM0VEom05+QKFi1T3QD+bN/ML8VBBSe8W9GDXzuHkweMuGAH gQjA== X-Gm-Message-State: AOPr4FUYOvD2wRW6M0/osPz7fINhwdqeHzQ8D80BGUa0Uj/mbSXeH0ZgitNHffDvHM92XAwZmpLNPxDvxNCpFA== MIME-Version: 1.0 X-Received: by 10.107.142.194 with SMTP id q185mr20188056iod.37.1462494828044; Thu, 05 May 2016 17:33:48 -0700 (PDT) Received: by 10.79.126.87 with HTTP; Thu, 5 May 2016 17:33:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 5 May 2016 17:33:47 -0700 Message-ID: Subject: Re: Running unit tests? From: Thejas Nair To: dev Content-Type: text/plain; charset=UTF-8 archived-at: Fri, 06 May 2016 00:33:53 -0000 Does this work from base hive directory ? (runs a specific test ) mvn clean install -DskipTests && cd itests/ && mvn test -Dtest=TestCliDriver '-Dqfile=index_compact_2.q' On Wed, May 4, 2016 at 10:54 AM, Ravi Prakash wrote: > Hi! > > Could someone please tell me how to run the clientpositive/clientnegative > itests/qtest tests ? This document : > https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#HiveDeveloperFAQ-HowdoIruntheclientpositive/clientnegativeunittests? > mentions running ant package as the first step, but I don't see a build.xml > in the root directory, itests directory or qtests. > > When I run the maven commands (cd itests/qtest;mvn test -Dtest=TestCliDriver > ) > > I get this error: > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.558 sec > <<< FAILURE! - in org.apache.hadoop.hive.cli.TestCliDriver > initializationError(org.apache.hadoop.hive.cli.TestCliDriver) Time > elapsed: 0.006 sec <<< ERROR! > java.lang.NoClassDefFoundError: > org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at > org.apache.hadoop.hive.ql.QTestUtil$QTestSetup.preTest(QTestUtil.java:1722) > at org.apache.hadoop.hive.ql.QTestUtil.(QTestUtil.java:425) > at > org.apache.hadoop.hive.cli.TestCliDriver.(TestCliDriver.java:53) > > Could you please update the documentation for the latest source? > > Thanks > Ravi