G G created HBASE-10382:
---------------------------
Summary: HBase fails to start when hbase.rootdir contains a
whitespace character
Key: HBASE-10382
URL: https://issues.apache.org/jira/browse/HBASE-10382
Project: HBase
Issue Type: Bug
Affects Versions: 0.96.0
Reporter: G G
When hbase.rootdir contains a whitespace, e.g. when it is set to "C:\Program
Files\..." then HBase fails to start with the following exception being logged:
{noformat}
java.lang.IllegalArgumentException: Illegal character in path at index 50:
file:/C:/Users/cwat-ggsenger/.dynaTrace/easyTravel
2.0.0/easyTravel/database/hbase-data/data
at java.net.URI.create(URI.java:859)
at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:131)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:123)
at org.apache.hadoop.hbase.fs.HFileSystem.<init>(HFileSystem.java:79)
at
org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1182)
at
org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:795)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.net.URISyntaxException: Illegal character in path at index 50:
file:/C:/Users/cwat-ggsenger/.dynaTrace/easyTravel
2.0.0/easyTravel/database/hbase-data/data
at java.net.URI$Parser.fail(URI.java:2829)
at java.net.URI$Parser.checkChars(URI.java:3002)
at java.net.URI$Parser.parseHierarchical(URI.java:3086)
at java.net.URI$Parser.parse(URI.java:3034)
at java.net.URI.<init>(URI.java:595)
at java.net.URI.create(URI.java:857)
... 6 more
{noformat}
This does *not* apply to the hbase.zookeeper.property.dataDir property, which
may contain whitespace characters.
I tried using a workaround by providing the complete URL instead of a path name
(e.g. file:/C:/Program%20Files/...) but in this case %20 is not interpreted as
a whitespace but literally, so that HBase creates the path
C:\Program%20Files\...".
Finally I was able to create a workaround by using DOS-style path names like
C:\PROGRA~1\....
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)