<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Error while querying HIve tables from HUE in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295069#M217580</link>
    <description>&lt;P&gt;Team ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are seeing below errors when querying hive from HUE .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error 1 :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[29/Apr/2020 07:07:22 -0700] middleware ERROR Error saving profile information&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/hue/apps/useradmin/src/useradmin/middleware.py", line 104, in process_request&lt;BR /&gt;profile.save()&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 808, in save&lt;BR /&gt;force_update=force_update, update_fields=update_fields)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 838, in save_base&lt;BR /&gt;updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 905, in _save_table&lt;BR /&gt;forced_update)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 955, in _do_update&lt;BR /&gt;return filtered._update(values) &amp;gt; 0&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 667, in _update&lt;BR /&gt;return query.get_compiler(self.db).execute_sql(CURSOR)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/sql/compiler.py", line 1204, in execute_sql&lt;BR /&gt;cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/sql/compiler.py", line 899, in execute_sql&lt;BR /&gt;raise original_exception&lt;BR /&gt;OperationalError: database is locked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 2:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[29/Apr/2020 07:06:51 -0700] exception ERROR Internal Server Error: /hue/accounts/login&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/exception.py", line 41, in inner&lt;BR /&gt;response = get_response(request)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/base.py", line 249, in _legacy_get_response&lt;BR /&gt;response = self._get_response(request)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/base.py", line 187, in _get_response&lt;BR /&gt;response = self.process_exception_by_middleware(e, request)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/base.py", line 185, in _get_response&lt;BR /&gt;response = wrapped_callback(request, *callback_args, **callback_kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/decorators.py", line 185, in inner&lt;BR /&gt;return func(*args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/django_axes-2.2.0-py2.7.egg/axes/decorators.py", line 271, in decorated_login&lt;BR /&gt;response = func(request, *args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/auth/views.py", line 206, in dt_login&lt;BR /&gt;'user': request.user&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/lib/django_util.py", line 241, in render&lt;BR /&gt;**kwargs&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/lib/django_util.py", line 154, in _render_to_response&lt;BR /&gt;return django_mako.render_to_response(template, *args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 127, in render_to_response&lt;BR /&gt;return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 116, in render_to_string_normal&lt;BR /&gt;result = template.render(**data_dict)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py", line 462, in render&lt;BR /&gt;return runtime._render(self, self.callable_, args, data)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 838, in _render&lt;BR /&gt;**_kwargs_for_callable(callable_, data))&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 873, in _render_context&lt;BR /&gt;_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 899, in _exec_template&lt;BR /&gt;callable_(context, *args, **kwargs)&lt;BR /&gt;File "/tmp/tmpVKDTTV/desktop/login.mako.py", line 176, in render_body&lt;BR /&gt;__M_writer(unicode( commonfooter(None, messages) ))&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/views.py", line 559, in commonfooter&lt;BR /&gt;hue_settings = Settings.get_settings()&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/models.py", line 130, in get_settings&lt;BR /&gt;settings, created = Settings.objects.get_or_create(id=1)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/manager.py", line 85, in manager_method&lt;BR /&gt;return getattr(self.get_queryset(), name)(*args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 464, in get_or_create&lt;BR /&gt;return self.get(**lookup), False&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 374, in get&lt;BR /&gt;num = len(clone)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 232, in __len__&lt;BR /&gt;self._fetch_all()&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 1121, in _fetch_all&lt;BR /&gt;self._result_cache = list(self._iterable_class(self))&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 53, in __iter__&lt;BR /&gt;results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/sql/compiler.py", line 899, in execute_sql&lt;BR /&gt;raise original_exception&lt;BR /&gt;TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bharad&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 14:20:14 GMT</pubDate>
    <dc:creator>bhara</dc:creator>
    <dc:date>2020-04-29T14:20:14Z</dc:date>
    <item>
      <title>Error while querying HIve tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295069#M217580</link>
      <description>&lt;P&gt;Team ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are seeing below errors when querying hive from HUE .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error 1 :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[29/Apr/2020 07:07:22 -0700] middleware ERROR Error saving profile information&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/hue/apps/useradmin/src/useradmin/middleware.py", line 104, in process_request&lt;BR /&gt;profile.save()&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 808, in save&lt;BR /&gt;force_update=force_update, update_fields=update_fields)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 838, in save_base&lt;BR /&gt;updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 905, in _save_table&lt;BR /&gt;forced_update)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 955, in _do_update&lt;BR /&gt;return filtered._update(values) &amp;gt; 0&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 667, in _update&lt;BR /&gt;return query.get_compiler(self.db).execute_sql(CURSOR)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/sql/compiler.py", line 1204, in execute_sql&lt;BR /&gt;cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/sql/compiler.py", line 899, in execute_sql&lt;BR /&gt;raise original_exception&lt;BR /&gt;OperationalError: database is locked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 2:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[29/Apr/2020 07:06:51 -0700] exception ERROR Internal Server Error: /hue/accounts/login&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/exception.py", line 41, in inner&lt;BR /&gt;response = get_response(request)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/base.py", line 249, in _legacy_get_response&lt;BR /&gt;response = self._get_response(request)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/base.py", line 187, in _get_response&lt;BR /&gt;response = self.process_exception_by_middleware(e, request)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/base.py", line 185, in _get_response&lt;BR /&gt;response = wrapped_callback(request, *callback_args, **callback_kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/decorators.py", line 185, in inner&lt;BR /&gt;return func(*args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/django_axes-2.2.0-py2.7.egg/axes/decorators.py", line 271, in decorated_login&lt;BR /&gt;response = func(request, *args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/auth/views.py", line 206, in dt_login&lt;BR /&gt;'user': request.user&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/lib/django_util.py", line 241, in render&lt;BR /&gt;**kwargs&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/lib/django_util.py", line 154, in _render_to_response&lt;BR /&gt;return django_mako.render_to_response(template, *args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 127, in render_to_response&lt;BR /&gt;return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 116, in render_to_string_normal&lt;BR /&gt;result = template.render(**data_dict)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py", line 462, in render&lt;BR /&gt;return runtime._render(self, self.callable_, args, data)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 838, in _render&lt;BR /&gt;**_kwargs_for_callable(callable_, data))&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 873, in _render_context&lt;BR /&gt;_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 899, in _exec_template&lt;BR /&gt;callable_(context, *args, **kwargs)&lt;BR /&gt;File "/tmp/tmpVKDTTV/desktop/login.mako.py", line 176, in render_body&lt;BR /&gt;__M_writer(unicode( commonfooter(None, messages) ))&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/views.py", line 559, in commonfooter&lt;BR /&gt;hue_settings = Settings.get_settings()&lt;BR /&gt;File "/usr/local/hue/desktop/core/src/desktop/models.py", line 130, in get_settings&lt;BR /&gt;settings, created = Settings.objects.get_or_create(id=1)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/manager.py", line 85, in manager_method&lt;BR /&gt;return getattr(self.get_queryset(), name)(*args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 464, in get_or_create&lt;BR /&gt;return self.get(**lookup), False&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 374, in get&lt;BR /&gt;num = len(clone)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 232, in __len__&lt;BR /&gt;self._fetch_all()&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 1121, in _fetch_all&lt;BR /&gt;self._result_cache = list(self._iterable_class(self))&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 53, in __iter__&lt;BR /&gt;results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/sql/compiler.py", line 899, in execute_sql&lt;BR /&gt;raise original_exception&lt;BR /&gt;TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bharad&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 14:20:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295069#M217580</guid>
      <dc:creator>bhara</dc:creator>
      <dc:date>2020-04-29T14:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying HIve tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295082#M217584</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50045"&gt;@bhara&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both error messages points out you need to tune your Hue performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First thing you need to check if you are using the default SQLite DB. If so, you should move the database from the default database across to another database backend such as MySql/Postgres/Oracle, which handles locking better than the default SQLite DB. Hue should not be run on SQLite in an environment with more than 1 concurrent user. Here is the doc on how to switch the DB:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/5/latest/topics/hue_dbs_0.html" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/5/latest/topics/hue_dbs_0.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also check this&amp;nbsp;Hue performance tuning guide for more information on tuning Hue like load balancing etc:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gethue.com/performance-tuning/" target="_blank"&gt;https://gethue.com/performance-tuning/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and hope this helps!&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 16:43:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295082#M217584</guid>
      <dc:creator>lwang</dc:creator>
      <dc:date>2020-04-29T16:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying Hive tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295087#M217586</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/5016"&gt;@lwang&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have installed HUE through Ambari by following below document with the help of &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/steven-dfheinz/HDP2-Hue4-Service" target="_blank" rel="noopener"&gt;https://github.com/steven-dfheinz/HDP2-Hue4-Service&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to successfully&amp;nbsp; install&amp;nbsp; and bring up the services . I chose my metadata database as oracle as attached . But when i look into oracle database i don't see and metadata tables created . How do i check where Hue desktop is having its repository .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bharad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 23:19:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295087#M217586</guid>
      <dc:creator>bhara</dc:creator>
      <dc:date>2020-04-29T23:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying Hive tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295092#M217588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50045"&gt;@bhara&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check the Hue configuration from Hue UI to confirm if Hue is using Oracle database.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Login as Hue admin user&lt;/LI&gt;
&lt;LI&gt;change the URL to&amp;nbsp;&lt;STRONG&gt;https://&amp;lt;hue-host&amp;gt;:8888/hue/desktop/dump_config&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Then click &lt;STRONG&gt;desktop&lt;/STRONG&gt; section&lt;/LI&gt;
&lt;LI&gt;Then search &lt;STRONG&gt;database&lt;/STRONG&gt; from the page&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I attached a couple screenshots for above step 3 and 4.&lt;/P&gt;
&lt;P&gt;Step 3 screenshot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="desktop section" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27316iC507898EA49656C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="config_hue.png" alt="desktop section" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;desktop section&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 4 screenshot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="database configurations" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27317iD8174D25EE778C48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="database_hue.png" alt="database configurations" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;database configurations&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 18:22:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295092#M217588</guid>
      <dc:creator>lwang</dc:creator>
      <dc:date>2020-04-29T18:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying HIve tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295096#M217591</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50045"&gt;@bhara&lt;/a&gt;&amp;nbsp; The error is very specific "&lt;SPAN&gt;OperationalError: database is locked"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you checked the database.table you are querying is locked or not? &amp;nbsp;&amp;nbsp;&lt;BR /&gt;If the error is indeed from the oracle metastore, is that database or table locked?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could test another query on another table as well, to see if it is just that table locked. &amp;nbsp;After removing the lock, does the query work again? &amp;nbsp; Sometimes hive can lock tables, and never unlock them. &amp;nbsp;You would need to query the hive metastore directly, and manually remove these locks if they persist.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 20:08:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295096#M217591</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-04-29T20:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying Hive tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295097#M217592</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/5016"&gt;@lwang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to get the details . But when i configure my oracle database i am seeing below error .I dont see any tables were also create in oracle metadata db .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[29/Apr/2020 12:36:36 +0000] exception ERROR Internal Server Error: /&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/exception.py", line 41, in inner&lt;BR /&gt;response = get_response(request)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/base.py", line 244, in _legacy_get_response&lt;BR /&gt;response = middleware_method(request)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/middleware/locale.py", line 25, in process_request&lt;BR /&gt;language = translation.get_language_from_request(request, check_path=i18n_patterns_used)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/translation/__init__.py", line 211, in get_language_from_request&lt;BR /&gt;return _trans.get_language_from_request(request, check_path)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/translation/trans_real.py", line 519, in get_language_from_request&lt;BR /&gt;lang_code = request.session.get(LANGUAGE_SESSION_KEY)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/contrib/sessions/backends/base.py", line 68, in get&lt;BR /&gt;return self._session.get(key, default)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/contrib/sessions/backends/base.py", line 207, in _get_session&lt;BR /&gt;self._session_cache = self.load()&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/contrib/sessions/backends/db.py", line 35, in load&lt;BR /&gt;expire_date__gt=timezone.now()&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/manager.py", line 85, in manager_method&lt;BR /&gt;return getattr(self.get_queryset(), name)(*args, **kwargs)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 374, in get&lt;BR /&gt;num = len(clone)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 232, in __len__&lt;BR /&gt;self._fetch_all()&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 1121, in _fetch_all&lt;BR /&gt;self._result_cache = list(self._iterable_class(self))&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 53, in __iter__&lt;BR /&gt;results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)&lt;BR /&gt;File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/sql/compiler.py", line 899, in execute_sql&lt;BR /&gt;raise original_exception&lt;BR /&gt;DatabaseError: ORA-00942: table or view does not exist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are my databse detaisl i put in hue.ini&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[[database]]&lt;BR /&gt;# Database engine is typically one of:&lt;BR /&gt;# postgresql_psycopg2, mysql, sqlite3 or oracle.&lt;BR /&gt;#&lt;BR /&gt;# Note that for sqlite3, 'name', below is a path to the filename. For other backends, it is the database name&lt;BR /&gt;# Note for Oracle, options={"threaded":true} must be set in order to avoid crashes.&lt;BR /&gt;# Note for Oracle, you can use the Oracle Service Name by setting "host=" and "port=" and then "name=(host):(port)/(service_name)".&lt;BR /&gt;# Note for MariaDB use the 'mysql' engine.&lt;BR /&gt;engine=oracle&lt;BR /&gt;host=&lt;BR /&gt;port=0&lt;BR /&gt;user=hue&lt;BR /&gt;password=xxxxx&lt;BR /&gt;# conn_max_age option to make database connection persistent value in seconds&lt;BR /&gt;# &lt;A href="https://docs.djangoproject.com/en/1.11/ref/databases/#persistent-connections" target="_blank" rel="noopener"&gt;https://docs.djangoproject.com/en/1.11/ref/databases/#persistent-connections&lt;/A&gt;&lt;BR /&gt;## conn_max_age=0&lt;BR /&gt;# Execute this script to produce the database password. This will be used when 'password' is not set.&lt;BR /&gt;## password_script=/path/script&lt;BR /&gt;name=&lt;BR /&gt;options={"threaded":true}&lt;BR /&gt;# Database schema, to be used only when public schema is revoked in postgres&lt;BR /&gt;## schema=public&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i see the below coming up when i open hue UI with error page .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="99px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="99.2333px"&gt;DATABASES&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 23:20:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295097#M217592</guid>
      <dc:creator>bhara</dc:creator>
      <dc:date>2020-04-29T23:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying HIve tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295099#M217593</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to run the same query from hive ,but from hue i see database lock . When i did some research i got to know that&amp;nbsp; hue stores the user requests in metadata database . so when i checked repository data base i dont see any tables created . so i tried configuring metadata repository by configuring to oracle database and i am running into issues (in the above post ) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bharad&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 20:15:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295099#M217593</guid>
      <dc:creator>bhara</dc:creator>
      <dc:date>2020-04-29T20:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying HIve tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295101#M217595</link>
      <description>&lt;P&gt;Yah it seems that error is usually related to the stock db. &amp;nbsp; &amp;nbsp;If you can't see any tables in the oracle, &amp;nbsp;then after configure for oracle and restart it must not have installed the metadata tables. &amp;nbsp; You will need to get them installed and I suspect the lock error will go away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check here for some oracle steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.gethue.com/administrator/administration/database/#oracle" target="_blank"&gt;https://docs.gethue.com/administrator/administration/database/#oracle&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 20:22:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295101#M217595</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-04-29T20:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying HIve tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295103#M217596</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp; i am trying to get the backup of sqllite database to import into oracle database as i dont have database dump from ambari .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bharad&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 20:59:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295103#M217596</guid>
      <dc:creator>bhara</dc:creator>
      <dc:date>2020-04-29T20:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying HIve tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295196#M217620</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50045"&gt;@bhara&lt;/a&gt;&amp;nbsp;did you follow all the steps to use Oracle?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 14:35:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/295196#M217620</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-04-30T14:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error while querying HIve tables from HUE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/298707#M219323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are also getting the same error almost every week for any database. Can we get any permanent solution for this? After waiting for sometime it get resolved itself. But i want to know the root cause for this and if it database or table gets locked, how i can release that lock for those DB and table in MySQL database.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 16:20:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-querying-HIve-tables-from-HUE/m-p/298707#M219323</guid>
      <dc:creator>DarveshK</dc:creator>
      <dc:date>2020-06-26T16:20:05Z</dc:date>
    </item>
  </channel>
</rss>

