Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-396

Impala's 1.0.1 Shell Broke Python 2.4 Compatibility (AttributeError: 'module' object has no attribute 'field_size_limit)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 1.0.1
    • Impala 1.1
    • Clients

    Description

      Hey guys -

      The following error is displayed if you execute the impala-shell on a system which has Python 2.4 (ie: any RHEL 5.x system)

      Traceback (most recent call last):
        File "/opt/cloudera/parcels/IMPALA-1.0.1-1.p0.431/bin/../lib/impala-shell/impala_shell.py", line 30, in ?
          from shell_output import OutputStream, DelimitedOutputFormatter, PrettyOutputFormatter
        File "/opt/cloudera/parcels/IMPALA-1.0.1-1.p0.431/lib/impala-shell/lib/shell_output.py", line 21, in ?
          csv.field_size_limit(sys.maxint)
      AttributeError: 'module' object has no attribute 'field_size_limit'
      

      The field_size_limit attribute was introduced in Python 2.5, see CSV Docs Here

      Attachments

        1. IMPALA-396.diff
          0.4 kB
          Ricky Saltzer

        Activity

          People

            ishaan Ishaan Joshi
            rickysaltzer Ricky Saltzer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: