You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Ronny Hidayat <pr...@gmail.com> on 2017/09/26 03:30:14 UTC

Build Process Apache Ranger

Hi all,

I am new in using Apache Ranger plugin.
So I download plugin from https://github.com/apache/ranger.
Then I build using "$ mvn clean compile package install
assembly:assembly" command.
But I get error message like this :

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerSASLSSLTest
log4j:WARN No appenders could be found for logger
(org.apache.zookeeper.server.ZooKeeperServerMain).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more info.
[INFO] Running org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerTest
log4j:WARN No appenders could be found for logger
(org.apache.zookeeper.server.ZooKeeperServerMain).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more info.
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
19.1 s - in org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerTest
[INFO] Running org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest
log4j:WARN No appenders could be found for logger
(org.apache.kerby.kerberos.kerb.identity.backend.AbstractIdentityBackend).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more info.
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
elapsed: 12.479 s <<< FAILURE! - in
org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest
[ERROR] testAuthorizedRead(org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest)
 Time elapsed: 0.728 s  <<< ERROR!
org.apache.kafka.common.errors.TopicAuthorizationException: Not
authorized to access topics: [test]

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   KafkaRangerAuthorizerGSSTest.testAuthorizedRead »
TopicAuthorization Not autho...
[INFO]
[ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0

How to resolve this problem ?

Thanks.

Re: Build Process Apache Ranger

Posted by Ronny Hidayat <pr...@gmail.com>.
I'm using openjdk version "1.8.0_131", Apache Maven 3.3.9 and linux ubuntu
Thanks.

2017-09-26 15:57 GMT+07.00, Colm O hEigeartaigh <co...@apache.org>:
> What JDK and maven versions are you using by the way (and what OS)?
>
> Colm.
>
> On Tue, Sep 26, 2017 at 7:39 AM, Ronny Hidayat <pr...@gmail.com>
> wrote:
>
>> Hi Don Bosco Durai,
>>
>> It work.
>>
>> Thank you very much.
>>
>> 2017-09-26 10:46 GMT+07.00, Don Bosco Durai <bo...@apache.org>:
>> > You can try with -DskipTests options.
>> >
>> > Also, there is Docker option to build.
>> >
>> > Bosco
>> >
>> >
>> >
>> > On 9/25/17, 8:30 PM, "Ronny Hidayat" <pr...@gmail.com> wrote:
>> >
>> >     Hi all,
>> >
>> >     I am new in using Apache Ranger plugin.
>> >     So I download plugin from https://github.com/apache/ranger.
>> >     Then I build using "$ mvn clean compile package install
>> >     assembly:assembly" command.
>> >     But I get error message like this :
>> >
>> >     [INFO] -------------------------------------------------------
>> >     [INFO]  T E S T S
>> >     [INFO] -------------------------------------------------------
>> >     [INFO] Running
>> > org.apache.ranger.authorization.kafka.authorizer.
>> KafkaRangerAuthorizerSASLSSLTest
>> >     log4j:WARN No appenders could be found for logger
>> >     (org.apache.zookeeper.server.ZooKeeperServerMain).
>> >     log4j:WARN Please initialize the log4j system properly.
>> >     log4j:WARN See
>> > http://logging.apache.org/log4j/1.2/faq.html#noconfig
>> >     for more info.
>> >     [INFO] Running
>> > org.apache.ranger.authorization.kafka.authorizer.
>> KafkaRangerAuthorizerTest
>> >     log4j:WARN No appenders could be found for logger
>> >     (org.apache.zookeeper.server.ZooKeeperServerMain).
>> >     log4j:WARN Please initialize the log4j system properly.
>> >     log4j:WARN See
>> > http://logging.apache.org/log4j/1.2/faq.html#noconfig
>> >     for more info.
>> >     [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed:
>> >     19.1 s - in
>> > org.apache.ranger.authorization.kafka.authorizer.
>> KafkaRangerAuthorizerTest
>> >     [INFO] Running
>> > org.apache.ranger.authorization.kafka.authorizer.
>> KafkaRangerAuthorizerGSSTest
>> >     log4j:WARN No appenders could be found for logger
>> >
>> > (org.apache.kerby.kerberos.kerb.identity.backend.
>> AbstractIdentityBackend).
>> >     log4j:WARN Please initialize the log4j system properly.
>> >     log4j:WARN See
>> > http://logging.apache.org/log4j/1.2/faq.html#noconfig
>> >     for more info.
>> >     [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
>> >     elapsed: 12.479 s <<< FAILURE! - in
>> >
>> > org.apache.ranger.authorization.kafka.authorizer.
>> KafkaRangerAuthorizerGSSTest
>> >     [ERROR]
>> > testAuthorizedRead(org.apache.ranger.authorization.kafka.authorizer.
>> KafkaRangerAuthorizerGSSTest)
>> >      Time elapsed: 0.728 s  <<< ERROR!
>> >     org.apache.kafka.common.errors.TopicAuthorizationException: Not
>> >     authorized to access topics: [test]
>> >
>> >     [INFO]
>> >     [INFO] Results:
>> >     [INFO]
>> >     [ERROR] Errors:
>> >     [ERROR]   KafkaRangerAuthorizerGSSTest.testAuthorizedRead »
>> >     TopicAuthorization Not autho...
>> >     [INFO]
>> >     [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0
>> >
>> >     How to resolve this problem ?
>> >
>> >     Thanks.
>> >
>> >
>> >
>> >
>>
>
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
>

Re: Build Process Apache Ranger

Posted by Colm O hEigeartaigh <co...@apache.org>.
What JDK and maven versions are you using by the way (and what OS)?

Colm.

On Tue, Sep 26, 2017 at 7:39 AM, Ronny Hidayat <pr...@gmail.com>
wrote:

> Hi Don Bosco Durai,
>
> It work.
>
> Thank you very much.
>
> 2017-09-26 10:46 GMT+07.00, Don Bosco Durai <bo...@apache.org>:
> > You can try with -DskipTests options.
> >
> > Also, there is Docker option to build.
> >
> > Bosco
> >
> >
> >
> > On 9/25/17, 8:30 PM, "Ronny Hidayat" <pr...@gmail.com> wrote:
> >
> >     Hi all,
> >
> >     I am new in using Apache Ranger plugin.
> >     So I download plugin from https://github.com/apache/ranger.
> >     Then I build using "$ mvn clean compile package install
> >     assembly:assembly" command.
> >     But I get error message like this :
> >
> >     [INFO] -------------------------------------------------------
> >     [INFO]  T E S T S
> >     [INFO] -------------------------------------------------------
> >     [INFO] Running
> > org.apache.ranger.authorization.kafka.authorizer.
> KafkaRangerAuthorizerSASLSSLTest
> >     log4j:WARN No appenders could be found for logger
> >     (org.apache.zookeeper.server.ZooKeeperServerMain).
> >     log4j:WARN Please initialize the log4j system properly.
> >     log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
> >     for more info.
> >     [INFO] Running
> > org.apache.ranger.authorization.kafka.authorizer.
> KafkaRangerAuthorizerTest
> >     log4j:WARN No appenders could be found for logger
> >     (org.apache.zookeeper.server.ZooKeeperServerMain).
> >     log4j:WARN Please initialize the log4j system properly.
> >     log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
> >     for more info.
> >     [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time
> elapsed:
> >     19.1 s - in
> > org.apache.ranger.authorization.kafka.authorizer.
> KafkaRangerAuthorizerTest
> >     [INFO] Running
> > org.apache.ranger.authorization.kafka.authorizer.
> KafkaRangerAuthorizerGSSTest
> >     log4j:WARN No appenders could be found for logger
> >
> > (org.apache.kerby.kerberos.kerb.identity.backend.
> AbstractIdentityBackend).
> >     log4j:WARN Please initialize the log4j system properly.
> >     log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
> >     for more info.
> >     [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
> >     elapsed: 12.479 s <<< FAILURE! - in
> >
> > org.apache.ranger.authorization.kafka.authorizer.
> KafkaRangerAuthorizerGSSTest
> >     [ERROR]
> > testAuthorizedRead(org.apache.ranger.authorization.kafka.authorizer.
> KafkaRangerAuthorizerGSSTest)
> >      Time elapsed: 0.728 s  <<< ERROR!
> >     org.apache.kafka.common.errors.TopicAuthorizationException: Not
> >     authorized to access topics: [test]
> >
> >     [INFO]
> >     [INFO] Results:
> >     [INFO]
> >     [ERROR] Errors:
> >     [ERROR]   KafkaRangerAuthorizerGSSTest.testAuthorizedRead »
> >     TopicAuthorization Not autho...
> >     [INFO]
> >     [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0
> >
> >     How to resolve this problem ?
> >
> >     Thanks.
> >
> >
> >
> >
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Re: Build Process Apache Ranger

Posted by Ronny Hidayat <pr...@gmail.com>.
Hi Don Bosco Durai,

It work.

Thank you very much.

2017-09-26 10:46 GMT+07.00, Don Bosco Durai <bo...@apache.org>:
> You can try with -DskipTests options.
>
> Also, there is Docker option to build.
>
> Bosco
>
>
>
> On 9/25/17, 8:30 PM, "Ronny Hidayat" <pr...@gmail.com> wrote:
>
>     Hi all,
>
>     I am new in using Apache Ranger plugin.
>     So I download plugin from https://github.com/apache/ranger.
>     Then I build using "$ mvn clean compile package install
>     assembly:assembly" command.
>     But I get error message like this :
>
>     [INFO] -------------------------------------------------------
>     [INFO]  T E S T S
>     [INFO] -------------------------------------------------------
>     [INFO] Running
> org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerSASLSSLTest
>     log4j:WARN No appenders could be found for logger
>     (org.apache.zookeeper.server.ZooKeeperServerMain).
>     log4j:WARN Please initialize the log4j system properly.
>     log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
>     for more info.
>     [INFO] Running
> org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerTest
>     log4j:WARN No appenders could be found for logger
>     (org.apache.zookeeper.server.ZooKeeperServerMain).
>     log4j:WARN Please initialize the log4j system properly.
>     log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
>     for more info.
>     [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>     19.1 s - in
> org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerTest
>     [INFO] Running
> org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest
>     log4j:WARN No appenders could be found for logger
>
> (org.apache.kerby.kerberos.kerb.identity.backend.AbstractIdentityBackend).
>     log4j:WARN Please initialize the log4j system properly.
>     log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
>     for more info.
>     [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
>     elapsed: 12.479 s <<< FAILURE! - in
>
> org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest
>     [ERROR]
> testAuthorizedRead(org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest)
>      Time elapsed: 0.728 s  <<< ERROR!
>     org.apache.kafka.common.errors.TopicAuthorizationException: Not
>     authorized to access topics: [test]
>
>     [INFO]
>     [INFO] Results:
>     [INFO]
>     [ERROR] Errors:
>     [ERROR]   KafkaRangerAuthorizerGSSTest.testAuthorizedRead »
>     TopicAuthorization Not autho...
>     [INFO]
>     [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0
>
>     How to resolve this problem ?
>
>     Thanks.
>
>
>
>

Re: Build Process Apache Ranger

Posted by Don Bosco Durai <bo...@apache.org>.
You can try with -DskipTests options.

Also, there is Docker option to build.

Bosco



On 9/25/17, 8:30 PM, "Ronny Hidayat" <pr...@gmail.com> wrote:

    Hi all,
    
    I am new in using Apache Ranger plugin.
    So I download plugin from https://github.com/apache/ranger.
    Then I build using "$ mvn clean compile package install
    assembly:assembly" command.
    But I get error message like this :
    
    [INFO] -------------------------------------------------------
    [INFO]  T E S T S
    [INFO] -------------------------------------------------------
    [INFO] Running org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerSASLSSLTest
    log4j:WARN No appenders could be found for logger
    (org.apache.zookeeper.server.ZooKeeperServerMain).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
    for more info.
    [INFO] Running org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerTest
    log4j:WARN No appenders could be found for logger
    (org.apache.zookeeper.server.ZooKeeperServerMain).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
    for more info.
    [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
    19.1 s - in org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerTest
    [INFO] Running org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest
    log4j:WARN No appenders could be found for logger
    (org.apache.kerby.kerberos.kerb.identity.backend.AbstractIdentityBackend).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
    for more info.
    [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
    elapsed: 12.479 s <<< FAILURE! - in
    org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest
    [ERROR] testAuthorizedRead(org.apache.ranger.authorization.kafka.authorizer.KafkaRangerAuthorizerGSSTest)
     Time elapsed: 0.728 s  <<< ERROR!
    org.apache.kafka.common.errors.TopicAuthorizationException: Not
    authorized to access topics: [test]
    
    [INFO]
    [INFO] Results:
    [INFO]
    [ERROR] Errors:
    [ERROR]   KafkaRangerAuthorizerGSSTest.testAuthorizedRead »
    TopicAuthorization Not autho...
    [INFO]
    [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0
    
    How to resolve this problem ?
    
    Thanks.