You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by Xu Cang <xc...@salesforce.com> on 2018/02/13 23:51:41 UTC

phoenix newbie build question

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

Re: phoenix newbie build question

Posted by Xu Cang <xc...@salesforce.com>.
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 <el...@apache.org> 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
>>
>>

Re: phoenix newbie build question

Posted by Josh Elser <el...@apache.org>.
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
>