Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-8363

query_server is empty when indexing data from RDBMS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 4.1.0
    • Fix Version/s: None
    • Component/s: con.sqoop
    • Environment:

      Linux OEL6.9

      Hue 4.1

      Description

      I am trying to index data from and External Database unsing Indexer. I can select the database, and as soon as I select the table, it gives me an error and the log shows:

      [08/Jun/2018 13:58:37 -0700] middleware   INFO     Processing exception: 'server_name': Traceback (most recent call last):

        File "/usr/hdp/current/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 112, in get_response

          response = wrapped_callback(request, *callback_args, **callback_kwargs)

        File "/usr/hdp/current/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/transaction.py", line 371, in inner

          return func(*args, **kwargs)

        File "/usr/hdp/current/hue/desktop/libs/indexer/src/indexer/api3.py", line 164, in guess_field_types

          db = rdbms.get(request.user, query_server=query_server)

        File "/usr/hdp/current/hue/desktop/libs/librdbms/src/librdbms/server/dbms.py", line 37, in get

          if query_server['server_name'] == 'mysql':

      KeyError: 'server_name'

       

      Seems like the query_server object is getting back empty. I believe it should not use RDBMS since I selected JDBC.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Matti Theyaa Matti
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: