accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-3184) MiniAccumuloCluster getFileSystem doesn't work without MiniDFSCluster
Date Mon, 06 Apr 2015 02:13:12 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-3184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Josh Elser updated ACCUMULO-3184:
---------------------------------
    Fix Version/s:     (was: 1.7.0)
                   1.7.1
                   1.8.0

> MiniAccumuloCluster getFileSystem doesn't work without MiniDFSCluster
> ---------------------------------------------------------------------
>
>                 Key: ACCUMULO-3184
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3184
>             Project: Accumulo
>          Issue Type: Bug
>          Components: mini
>    Affects Versions: 1.5.2, 1.6.1
>            Reporter: Josh Elser
>            Priority: Trivial
>              Labels: newbie
>             Fix For: 1.5.3, 1.6.3, 1.8.0, 1.7.1
>
>
> Tried to get the underlying filesystem from {{MIniAccumuloClusterImpl#getFileSystem()}}
and got a URISyntaxException
> {noformat}
> java.lang.RuntimeException: java.net.URISyntaxException: Expected authority at index
7: file://
> 	at org.apache.accumulo.minicluster.impl.MiniAccumuloClusterImpl.getFileSystem(MiniAccumuloClusterImpl.java:729)
> 	at org.apache.accumulo.test.MissingWalHeaderCompletesRecoveryIT.test(MissingWalHeaderCompletesRecoveryIT.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.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.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> 	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
> Caused by: java.net.URISyntaxException: Expected authority at index 7: file://
> 	at java.net.URI$Parser.fail(URI.java:2829)
> 	at java.net.URI$Parser.failExpecting(URI.java:2835)
> 	at java.net.URI$Parser.parseHierarchical(URI.java:3083)
> 	at java.net.URI$Parser.parse(URI.java:3034)
> 	at java.net.URI.<init>(URI.java:595)
> 	at org.apache.accumulo.minicluster.impl.MiniAccumuloClusterImpl.getFileSystem(MiniAccumuloClusterImpl.java:727)
> 	... 12 more
> {noformat}
> It appears that the two callers of this method within our codebase are using MiniDFSCluster
which must work. It would be nice to catch when we are not using MiniDFS and return the LocalFileSystem
instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message