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

Dataload fails due to ImportError: cannot import name OrderedDict from impala-shell

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 3.3.0
    • Impala 3.3.0
    • Clients
    • ghx-label-5

    Description

      Dataload on centos 6 (with Python 2.6) fails when running "Caching test tables":

      15:14:59 ImportError: cannot import name OrderedDict
      15:14:59 Traceback (most recent call last):
      15:14:59   File "/data/jenkins/workspace/impala-cdh6.x-exhaustive-centos6/repos/Impala/shell/impala_shell.py", line 42, in <module>
      15:14:59     from option_parser import get_option_parser, get_config_from_file
      15:14:59   File "/data/jenkins/workspace/impala-cdh6.x-exhaustive-centos6/repos/Impala/shell/option_parser.py", line 34, in <module>
      15:14:59     from collections import OrderedDict

      Unfortunately, OrderedDict was introduced in Python 2.7 according to this table:

      https://docs.python.org/2/library/collections.html

      Python 2.6 strikes again.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fredyw Fredy Wijaya
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment