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