Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5111

IndexTool gives NPE when trying to do a direct build without an output-path set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.14.1
    • 4.15.0, 5.1.0, 4.14.2
    • None
    • None

    Description

      The IndexTool has several modes. If the -direct or -partial-rebuild flags are not set, the tool assumes the user wants to rebuild the index by creating HFiles and then bulk-loading them back into HBase, and requires an extra -output-path flag to deterine where the temporary HFiles should live.

      In practice, we've found that -direct mode (which loads using HBase Puts) is quicker. However, even though there's logic to not require the -output-path flag when -direct mode is chosen, the IndexTool will throw an NPE if it's not present.

      Attachments

        1. PHOENIX-5111.patch
          3 kB
          Gokcen Iskender
        2. PHOENIX-5111.patch
          3 kB
          Gokcen Iskender

        Activity

          People

            giskender Gokcen Iskender
            gjacoby Geoffrey Jacoby
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: