Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-1224

Calling "SELECT t.* from <table> AS t" to get meta information is too expensive for big tables

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.20.1
    • None
    • None
    • None
    • all platforms, generic jdbc driver

    • Reviewed

    Description

      The SqlManager uses the query, "SELECT t.* from <table> AS t" to get table spec is too expensive for big tables, and it was called twice to generate column names and types. For tables that are big enough to be map-reduced, this is too expensive to make sqoop useful.

      Attachments

        1. MAPREDUCE-1224.patch
          0.7 kB
          Spencer Ho
        2. SqlManager.java
          13 kB
          Spencer Ho

        Activity

          People

            spencerho Spencer Ho
            spencerho Spencer Ho
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: