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

Tool to look at HLogs -- parse and tail -f

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Later
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: wal
    • Labels:
      None

      Description

      We need a tool for looking at wals. A tail -f would be sweet though it might be ugly having to open each time it wants to dump next lot of edits out wal log.

      From Kannan:

      20:45 <kannan> WALEdit already has a toString().
      20:46 <kannan> And append/sync support allows you to read concurrently a file that is being written too... (like JDs replication).
      20:46 <kannan> So it would be good if I could do a bin/hbase hlogprint -f hdfs://...../.logs/<filename> -v -p
      20:46 <kannan> much like the HFile pretty printer... except the HLog one is effectively a tail -f.
      

        Attachments

        1. HBASE-2889_2.patch
          2 kB
          Nicolas Spiegelberg
        2. 2889.txt
          7 kB
          stack

          Issue Links

            Activity

              People

              • Assignee:
                stack stack
                Reporter:
                stack stack
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: