From dev-return-49414-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Wed Feb 14 02:27:15 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 16F81180656 for ; Wed, 14 Feb 2018 02:27:14 +0100 (CET) Received: (qmail 34072 invoked by uid 500); 14 Feb 2018 01:27:14 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 34056 invoked by uid 99); 14 Feb 2018 01:27:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2018 01:27:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BC993C0AB8 for ; Wed, 14 Feb 2018 01:27:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=salesforce.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id aCflUOAKw2aH for ; Wed, 14 Feb 2018 01:27:11 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CE8CE5F187 for ; Wed, 14 Feb 2018 01:27:10 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id c128so24820077qkb.4 for ; Tue, 13 Feb 2018 17:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salesforce.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=YTmPnkOv+U/CI4hpaCTem4CgA7cUVs7Xy1N9Wy0ojfU=; b=Od0XD1vtsyLrCrrk1b6b+ufZOPZ4DOq6iF7prUWQuZDwkUSV93K3S3lrKLCVMlZUp4 XorebcxgQpkMUl5VpU+TVADSfoX4ZwJQMaUd4Rml3nLCwXbYo4j0l/bzkcGhSsiyPtYs sU5bEsCJR4pzdgaZhL5H8DpB3jfllBL2BVLcs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YTmPnkOv+U/CI4hpaCTem4CgA7cUVs7Xy1N9Wy0ojfU=; b=HOF3bmkQcAsrEcpb59jCL2S4bw8szBgDzVHyvU0nlOmjgvEaChzLX/2tqFYRYAiWDk Z+unAMdWaz+sJp/yB08wNBIHK1q+M61JvHMvIcRFTTfuoZNEjzO5OwFgQnZ9SKEaFq2V 0re4lwzxFz7AoP8ty2Wj6ODTlJEbMQvYlzvc3vMoThKHdMY5pyBbklDrviwSx1rMhUKm eGVrqAbjGMnKI5/idtyQddfLoG4eMm3/fc+ZP7pF+YceNCg933vKdlp+nCErDepQ3TJ3 USr3L4P3XqRNmlmgd9Y5c/Dr9ShkMGe+usUIp1iQBntwWslvsDRwMdoVKyQ4ozLVMzz+ hLbA== X-Gm-Message-State: APf1xPDqwmA6+5KgdyoOpMEXF/EfFqa+5MzG0FsUDS8XMx7eqqY3Wc3U 5awuVIBemxrfEKtnfaCcoWtPpLXvUQ1qCQ6Wiaf5yjoSnNA= X-Google-Smtp-Source: AH8x226BRSztbmiAKDz0T2wjWhggdbDAioy035XL5CMdrLVioDazKq2tzQG7OzkkhaRMoafMysGrPXXsRs8Tg3TB76U= X-Received: by 10.233.220.130 with SMTP id q124mr5255197qkf.170.1518571629651; Tue, 13 Feb 2018 17:27:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.60.219 with HTTP; Tue, 13 Feb 2018 17:27:09 -0800 (PST) In-Reply-To: References: From: Xu Cang Date: Tue, 13 Feb 2018 17:27:09 -0800 Message-ID: Subject: Re: phoenix newbie build question To: dev@phoenix.apache.org Content-Type: multipart/alternative; boundary="94eb2c044bea8d7c0a056522021c" --94eb2c044bea8d7c0a056522021c Content-Type: text/plain; charset="UTF-8" Hi Josh, Thanks for your reply. I got java1.8 and maven 3.3.9 as below. Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.8.0_151, vendor: Oracle Corporation Ok. Sounds good. Thank you. Xu On Tue, Feb 13, 2018 at 4:55 PM, Josh Elser wrote: > Hi Xu, > > What version of Java and Maven are you using? > > I wouldn't be super worried about the test failures -- it's likely just an > indication that the unit test is reliant on something in the local > environment which isn't there on your computer (e.g. a default krb5.conf). > Ideally, we can figure out why it failed and fix it for the future, but > would need to get to the bottom of it.. > > > On 2/13/18 6:51 PM, Xu Cang wrote: > >> Hi, >> >> I am trying to build Phoenix (on Ubuntu) and run tests by following >> 'build.txt' instruction from code repo. >> >> Commands I ran: >> >> 1. mvn install -DskipTests >> 2. mvn process-sources >> 3. mvn package >> >> Thenm I got this error: >> >> [ERROR] >> testMultipleConnectionsAsSameUserWithoutLogin(org.apache.pho >> enix.jdbc.SecureUserConnectionsTest) >> Time elapsed: 0.013 s <<< ERROR! >> java.lang.RuntimeException: Couldn't get the current user!! >> at >> org.apache.phoenix.jdbc.SecureUserConnectionsTest.testMultip >> leConnectionsAsSameUserWithoutLogin(SecureUserConnectionsTest.java:378) >> >> [INFO] >> [INFO] Results: >> [INFO] >> [ERROR] Errors: >> [ERROR] >> SecureUserConnectionsTest.testMultipleConnectionsAsSameUserW >> ithoutLogin:378 >> Runtime >> [INFO] >> [ERROR] Tests run: 1592, Failures: 0, Errors: 1, Skipped: 3 >> [INFO] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Apache Phoenix ..................................... SUCCESS [ >> 0.924 s] >> [INFO] Phoenix Core ....................................... FAILURE [ >> 35.155 s] >> >> >> The error comes from this code piece: >> >> * try {* >> * this.user = User.getCurrent();* >> * } catch (IOException e) {* >> * throw new RuntimeException("Couldn't get the current >> user!!");* >> * }* >> >> >> My question is, am I missing any dependencies in order to get this user? >> Any pointer or help is appreciated. Thanks, >> >> >> (BTW, IndexUtilTest.java unit test ran successfully. ) >> >> Best Regards, >> Xu >> >> --94eb2c044bea8d7c0a056522021c--