ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gautam Borad <gbo...@gmail.com>
Subject Re: Error while building.
Date Sat, 10 Jan 2015 06:21:08 GMT
Hi Sitaraman,
    Please try compiling with -DskipTests, the problem seem to be with path
issue on Windows.

On Fri, Jan 9, 2015 at 2:18 PM, Sitaraman Vilayannur <
vrsitaramanietflists@gmail.com> wrote:

> Hi,
>   I am just starting out on Ranger. When i used the command
>  mvn -DskipTests=false clean compile package install assembly:assembly
> to build i get the following error, what am i missing? Thanks
> Sitaraman
>
> -------------------------------------------------------
>
>  T E S T S
>
> -------------------------------------------------------
>
> Running
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest
>
> log4j:WARN No appenders could be found for logger
> (org.apache.hadoop.util.Shell).
>
> log4j:WARN Please initialize the log4j system properly.
>
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
>
> java.io.IOException: Bad configuration of
> hadoop.security.credential.provider.path at
>
>  jceks://fileC:\Users\HomeXPS/testkeystore.jceks
>
>         at
> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(Cr
>
> edentialProviderFactory.java:70)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell$Command.getCredentialProv
>
> ider(CredentialShell.java:164)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell$CreateCommand.validate(Cr
>
> edentialShell.java:323)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell.run(CredentialShell.java:
>
> 67)
>
>         at
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest.
>
> setup(RangerCredentialProviderTest.java:50)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>
> 39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>
> pl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:597)
>
>         at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMetho
>
> d.java:47)
>
>         at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable
>
> .java:12)
>
>         at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.
>
> java:44)
>
>         at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
>
> 24)
>
>         at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27
>
> )
>
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
>
> ava:70)
>
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
>
> ava:50)
>
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>
>         at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.jav
>
> a:264)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provi
>
> der.java:153)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java
>
> :124)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoa
>
> der(ForkedBooter.java:200)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBoo
>
> ter.java:153)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
> Caused by: java.net.URISyntaxException: Illegal character in authority at
> index 8: jc
>
> eks://fileC:\Users\HomeXPS/testkeystore.jceks
>
>         at java.net.URI$Parser.fail(URI.java:2810)
>
>         at java.net.URI$Parser.parseAuthority(URI.java:3148)
>
>         at java.net.URI$Parser.parseHierarchical(URI.java:3059)
>
>         at java.net.URI$Parser.parse(URI.java:3015)
>
>         at java.net.URI.<init>(URI.java:577)
>
>         at
> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(Cr
>
> edentialProviderFactory.java:55)
>
>         ... 28 more
>
> There are no valid CredentialProviders configured.
>
> Credential will not be created.
>
> Consider using the -provider option to indicate the provider to use.
>
> java.io.IOException: Bad configuration of
> hadoop.security.credential.provider.path at
>
>  jceks://fileC:\Users\HomeXPS/testkeystore.jceks
>
>         at
> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(Cr
>
> edentialProviderFactory.java:70)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell$Command.getCredentialProv
>
> ider(CredentialShell.java:164)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell$DeleteCommand.validate(Cr
>
> edentialShell.java:254)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell.run(CredentialShell.java:
>
> 67)
>
>         at
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest.
>
> teardown(RangerCredentialProviderTest.java:85)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>
> 39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>
> pl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:597)
>
>         at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMetho
>
> d.java:47)
>
>         at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable
>
> .java:12)
>
>         at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.
>
> java:44)
>
>         at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33
>
> )
>
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
>
> ava:70)
>
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
>
> ava:50)
>
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>
>         at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.jav
>
> a:264)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provi
>
> der.java:153)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java
>
> :124)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoa
>
> der(ForkedBooter.java:200)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBoo
>
> ter.java:153)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
> Caused by: java.net.URISyntaxException: Illegal character in authority at
> index 8: jc
>
> eks://fileC:\Users\HomeXPS/testkeystore.jceks
>
>         at java.net.URI$Parser.fail(URI.java:2810)
>
>         at java.net.URI$Parser.parseAuthority(URI.java:3148)
>
>         at java.net.URI$Parser.parseHierarchical(URI.java:3059)
>
>         at java.net.URI$Parser.parse(URI.java:3015)
>
>         at java.net.URI.<init>(URI.java:577)
>
>         at
> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(Cr
>
> edentialProviderFactory.java:55)
>
>         ... 27 more
>
> There are no valid CredentialProviders configured.
>
> Nothing will be deleted.
>
> Consider using the -provider option to indicate the provider to use.
>
> java.io.IOException: Bad configuration of
> hadoop.security.credential.provider.path at
>
>  jceks://fileC:\Users\HomeXPS/testkeystore.jceks
>
>         at
> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(Cr
>
> edentialProviderFactory.java:70)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell$Command.getCredentialProv
>
> ider(CredentialShell.java:164)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell$CreateCommand.validate(Cr
>
> edentialShell.java:323)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell.run(CredentialShell.java:
>
> 67)
>
>         at
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest.
>
> setup(RangerCredentialProviderTest.java:50)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>
> 39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>
> pl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:597)
>
>         at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMetho
>
> d.java:47)
>
>         at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable
>
> .java:12)
>
>         at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.
>
> java:44)
>
>         at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
>
> 24)
>
>         at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27
>
> )
>
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
>
> ava:70)
>
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
>
> ava:50)
>
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>
>         at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.jav
>
> a:264)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provi
>
> der.java:153)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java
>
> :124)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoa
>
> der(ForkedBooter.java:200)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBoo
>
> ter.java:153)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
> Caused by: java.net.URISyntaxException: Illegal character in authority at
> index 8: jc
>
> eks://fileC:\Users\HomeXPS/testkeystore.jceks
>
>         at java.net.URI$Parser.fail(URI.java:2810)
>
>         at java.net.URI$Parser.parseAuthority(URI.java:3148)
>
>         at java.net.URI$Parser.parseHierarchical(URI.java:3059)
>
>         at java.net.URI$Parser.parse(URI.java:3015)
>
>         at java.net.URI.<init>(URI.java:577)
>
>         at
> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(Cr
>
> edentialProviderFactory.java:55)
>
>         ... 28 more
>
> There are no valid CredentialProviders configured.
>
> Credential will not be created.
>
> Consider using the -provider option to indicate the provider to use.
>
> java.io.IOException: Bad configuration of
> hadoop.security.credential.provider.path at
>
>  jceks://fileC:\Users\HomeXPS/testkeystore.jceks
>
>         at
> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(Cr
>
> edentialProviderFactory.java:70)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell$Command.getCredentialProv
>
> ider(CredentialShell.java:164)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell$DeleteCommand.validate(Cr
>
> edentialShell.java:254)
>
>         at
> org.apache.hadoop.security.alias.CredentialShell.run(CredentialShell.java:
>
> 67)
>
>         at
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest.
>
> teardown(RangerCredentialProviderTest.java:85)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>
> 39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>
> pl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:597)
>
>         at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMetho
>
> d.java:47)
>
>         at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable
>
> .java:12)
>
>         at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.
>
> java:44)
>
>         at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33
>
> )
>
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
>
> ava:70)
>
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
>
> ava:50)
>
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>
>         at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.jav
>
> a:264)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provi
>
> der.java:153)
>
>         at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java
>
> :124)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoa
>
> der(ForkedBooter.java:200)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBoo
>
> ter.java:153)
>
>         at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
> Caused by: java.net.URISyntaxException: Illegal character in authority at
> index 8: jc
>
> eks://fileC:\Users\HomeXPS/testkeystore.jceks
>
>         at java.net.URI$Parser.fail(URI.java:2810)
>
>         at java.net.URI$Parser.parseAuthority(URI.java:3148)
>
>         at java.net.URI$Parser.parseHierarchical(URI.java:3059)
>
>         at java.net.URI$Parser.parse(URI.java:3015)
>
>         at java.net.URI.<init>(URI.java:577)
>
>         at
> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(Cr
>
> edentialProviderFactory.java:55)
>
>         ... 27 more
>
> There are no valid CredentialProviders configured.
>
> Nothing will be deleted.
>
> Consider using the -provider option to indicate the provider to use.
>
> Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.823 sec
> <<< FAILURE
>
> ! - in
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest
>
>
> testCredentialProvider(org.apache.ranger.authorization.hadoop.utils.RangerCredentialP
>
> roviderTest)  Time elapsed: 0.543 sec  <<< FAILURE!
>
> java.lang.AssertionError: expected:<0> but was:<1>
>
>         at org.junit.Assert.fail(Assert.java:88)
>
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>
>         at org.junit.Assert.assertEquals(Assert.java:118)
>
>         at org.junit.Assert.assertEquals(Assert.java:555)
>
>         at org.junit.Assert.assertEquals(Assert.java:542)
>
>         at
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest.
>
> setup(RangerCredentialProviderTest.java:54)
>
>
>
>
> testCredentialProvider(org.apache.ranger.authorization.hadoop.utils.RangerCredentialP
>
> roviderTest)  Time elapsed: 0.543 sec  <<< FAILURE!
>
> java.lang.AssertionError: expected:<0> but was:<1>
>
>         at org.junit.Assert.fail(Assert.java:88)
>
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>
>         at org.junit.Assert.assertEquals(Assert.java:118)
>
>         at org.junit.Assert.assertEquals(Assert.java:555)
>
>         at org.junit.Assert.assertEquals(Assert.java:542)
>
>         at
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest.
>
> teardown(RangerCredentialProviderTest.java:89)
>
>
>
>
> testCredentialString(org.apache.ranger.authorization.hadoop.utils.RangerCredentialPro
>
> viderTest)  Time elapsed: 0.207 sec  <<< FAILURE!
>
> java.lang.AssertionError: expected:<0> but was:<1>
>
>         at org.junit.Assert.fail(Assert.java:88)
>
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>
>         at org.junit.Assert.assertEquals(Assert.java:118)
>
>         at org.junit.Assert.assertEquals(Assert.java:555)
>
>         at org.junit.Assert.assertEquals(Assert.java:542)
>
>         at
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest.
>
> setup(RangerCredentialProviderTest.java:54)
>
>
>
>
> testCredentialString(org.apache.ranger.authorization.hadoop.utils.RangerCredentialPro
>
> viderTest)  Time elapsed: 0.207 sec  <<< FAILURE!
>
> java.lang.AssertionError: expected:<0> but was:<1>
>
>         at org.junit.Assert.fail(Assert.java:88)
>
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>
>         at org.junit.Assert.assertEquals(Assert.java:118)
>
>         at org.junit.Assert.assertEquals(Assert.java:555)
>
>         at org.junit.Assert.assertEquals(Assert.java:542)
>
>         at
> org.apache.ranger.authorization.hadoop.utils.RangerCredentialProviderTest.
>
> teardown(RangerCredentialProviderTest.java:89)
>
>
>
>
>
> Results :
>
>
>
> Failed tests:
>
>   RangerCredentialProviderTest.setup:54 expected:<0> but was:<1>
>
>   RangerCredentialProviderTest.teardown:89 expected:<0> but was:<1>
>
>   RangerCredentialProviderTest.setup:54 expected:<0> but was:<1>
>
>   RangerCredentialProviderTest.teardown:89 expected:<0> but was:<1>
>
>
>
> Tests run: 4, Failures: 4, Errors: 0, Skipped: 0
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] There are test failures.
>
>
>
> Please refer to
> F:\Consulting\DataGuise\Software\ApacheRanger\incubator-ranger-master
>
> \incubator-ranger-master\agents-cred\target\surefire-reports for the
> individual test
>
> results.
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] For more information, run Maven with the -e switch
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 15 minutes 7 seconds
>



-- 
Regards,
Gautam.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message