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

Fix increment index in KeyValueSortReducer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.99.0, 0.94.20, 0.98.3
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The index is never incremented inside the loop, therefore context.setStatus also is never set.

      int index = 0;
      for (KeyValue kv: map) {
        context.write(row, kv);
        if (index > 0 && index % 100 == 0) context.setStatus("Wrote " + index);
      }
      

        Attachments

        1. HBASE-11212.patch
          0.7 kB
          Gustavo Anatoly

          Activity

            People

            • Assignee:
              gustavoanatoly Gustavo Anatoly
              Reporter:
              gustavoanatoly Gustavo Anatoly
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: