[
https://issues.apache.org/jira/browse/HDFS-11092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15631730#comment-15631730
]
John Zhuge commented on HDFS-11092:
-----------------------------------
Similar stack overflow with {{-Dfs.defaultFS=abc.com/}} (Hadoop 2.6.0 based
code):
{noformat}
Exception in thread "main" java.lang.StackOverflowError
at java.util.Arrays.copyOf(Arrays.java:2219)
at java.util.ArrayList.grow(ArrayList.java:242)
at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:216)
at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:208)
at java.util.ArrayList.add(ArrayList.java:440)
at
org.apache.hadoop.conf.Configuration.handleDeprecation(Configuration.java:626)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:1230)
at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:192)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:184)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:369)
...
{noformat}
> Stackoverflow if only root directory is used in Command Line
> ------------------------------------------------------------
>
> Key: HDFS-11092
> URL: https://issues.apache.org/jira/browse/HDFS-11092
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.7.2
> Reporter: Darius Murawski
>
> Command: hadoop fs -fs 172.16.12.79/ -mkdir -p /usr/hduser
> Results in a Stack Overflow
> {{code}}
> Exception in thread "main" java.lang.StackOverflowError
> at java.lang.String.indexOf(String.java:1503)
> at java.net.URI$Parser.scan(URI.java:2951)
> at java.net.URI$Parser.parseHierarchical(URI.java:3104)
> at java.net.URI$Parser.parse(URI.java:3063)
> at java.net.URI.<init>(URI.java:588)
> at java.net.URI.create(URI.java:850)
> at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:180)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:172)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:357)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:172)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:357)
> (...)
> {{code}}
> The Problem is the Slash at the End of the IP Address. When I remove it, the
> command is executed correctly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]