Browse Source

[compute] fixed the example installation for hive/impala computes

Change-Id: I1f17c9d7f0920898ba5916dec0d6d08473580904
Amit Srivastava 1 year ago
parent
commit
fb0bf97e18
1 changed files with 3 additions and 2 deletions
  1. 3 2
      apps/beeswax/src/beeswax/views.py

+ 3 - 2
apps/beeswax/src/beeswax/views.py

@@ -625,8 +625,9 @@ def install_examples(request):
       if dialect == 'beeswax':
       if dialect == 'beeswax':
         dialect = 'hive'
         dialect = 'hive'
       db_name = request.POST.get('db_name', 'default')
       db_name = request.POST.get('db_name', 'default')
-      connector_id = request.POST.get('connector_id')
-      beeswax_install_examples.Command().handle(dialect=dialect, db_name=db_name, user=request.user, request=request)
+      interpreter = common.find_compute(dialect=dialect, user=request.user)
+      beeswax_install_examples.Command().handle(dialect=dialect, db_name=db_name, user=request.user,
+                                                request=request, interpreter=interpreter)
       response['status'] = 0
       response['status'] = 0
     except Exception as err:
     except Exception as err:
       LOG.exception(err)
       LOG.exception(err)