Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-11327

ExportSnapshot hit stackoverflow error when target snapshotDir doesn't contain uri

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.98.2
    • Fix Version/s: 0.99.0, 0.98.4
    • Component/s: snapshots
    • Labels:
      None

      Description

      $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)
      
      

      the following command will work with uri

      hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot snapshotT1_dn -copy-to hdfs://hdtest014.svl.ibm.com:9000/user/demai/backup2
      

      The bug is the same as 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 Matteo Bertozzi help on this one.

        Attachments

        1. HBASE-11327-0.98-v0.patch
          0.9 kB
          Demai Ni
        2. HBASE-11327-trunk-v0.patch
          0.9 kB
          Demai Ni

          Activity

            People

            • Assignee:
              nidmhbase Demai Ni
              Reporter:
              nidmhbase Demai Ni
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: