phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Elser <els...@apache.org>
Subject Re: phoenix newbie build question
Date Wed, 14 Feb 2018 00:55:28 GMT
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.phoenix.jdbc.SecureUserConnectionsTest)
> Time elapsed: 0.013 s  <<< ERROR!
> java.lang.RuntimeException: Couldn't get the current user!!
> at
> org.apache.phoenix.jdbc.SecureUserConnectionsTest.testMultipleConnectionsAsSameUserWithoutLogin(SecureUserConnectionsTest.java:378)
> 
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR]
>   SecureUserConnectionsTest.testMultipleConnectionsAsSameUserWithoutLogin: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
> 

Mime
View raw message