[
https://issues.apache.org/jira/browse/HBASE-11327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Demai Ni updated HBASE-11327:
-----------------------------
Attachment: HBASE-11327-trunk-v0.patch
> ExportSnapshot hit stackoverflow error when target snapshotDir doesn't
> contain uri
> ----------------------------------------------------------------------------------
>
> Key: HBASE-11327
> URL: https://issues.apache.org/jira/browse/HBASE-11327
> Project: HBase
> Issue Type: Bug
> Components: snapshots
> Affects Versions: 0.98.2
> Reporter: Demai Ni
> Assignee: Demai Ni
> Priority: Minor
> Fix For: 0.99.0, 0.98.4
>
> Attachments: HBASE-11327-0.98-v0.patch, HBASE-11327-trunk-v0.patch
>
>
> {code}
> $hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot
> snapshotT1_dn -copy-to /user/demai/backup1
> Exception in thread "main" java.lang.StackOverflowError
> at java.util.regex.Pattern$Slice.match(Pattern.java:3490)
> at java.util.regex.Pattern$Start.match(Pattern.java:3066)
> at java.util.regex.Matcher.search(Matcher.java:1116)
> at java.util.regex.Matcher.find(Matcher.java:546)
> at
> org.apache.hadoop.conf.Configuration.substituteVars(Configuration.java:681)
> at org.apache.hadoop.conf.Configuration.get(Configuration.java:893)
> at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:175)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:167)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:360)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:167)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:360)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:167)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:360)
> {code}
> the following command will work with uri
> {code}
> hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot snapshotT1_dn
> -copy-to hdfs://hdtest014.svl.ibm.com:9000/user/demai/backup2
> {code}
> The bug is the same as
> [Hadoop-9069|https://issues.apache.org/jira/browse/HADOOP-9069]. Since the
> hadoop jira has been sitting there for more than a year, use this jira for a
> local hbase fix for now.
> Many thanks for [~mbertozzi] help on this one.
--
This message was sent by Atlassian JIRA
(v6.2#6252)