<?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 Re: Centralized DB for multiple hue servers in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151843#M28584</link>
    <description>&lt;P&gt;Do I need to create a table and schema if I prefer to use mysql as my db engine?  Will schema be created by hue itself when I restart the hue service?&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2016 11:00:33 GMT</pubDate>
    <dc:creator>radhakrishnan_r</dc:creator>
    <dc:date>2016-05-18T11:00:33Z</dc:date>
    <item>
      <title>Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151838#M28579</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wish to load balance multiple hue servers under a load balancer. Each hue server keeps the record in its own prostgre database. For running a multiple hue servers,  I need to keep these records in a centralized DB. Is it possible to maintain the entire hue servers in my cluster in a centralized db?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:52:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151838#M28579</guid>
      <dc:creator>radhakrishnan_r</dc:creator>
      <dc:date>2026-04-21T13:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151839#M28580</link>
      <description>&lt;P&gt;That should work I think. Just connect all your Hue instances to your central DB. It won't work with the embedded SQLite, but you have already switched to Postgres.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 06:53:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151839#M28580</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-05-18T06:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151840#M28581</link>
      <description>&lt;P&gt;Yes, It works, I have made single centralized
external ORACLE DB for my 3 instances of hue.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 07:10:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151840#M28581</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-05-18T07:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151841#M28582</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10473/radhakrishnanr.html" nodeid="10473"&gt;@Radhakrishnan Rk&lt;/A&gt; Yes, you should be able to point multiple Hue Servers to same database unless it is default SQLite i.e. MySQL/Postgres/Oracle. And then configure your loadbalancer i.e. haproxy/httpd/nginx etc. for the same. &lt;/P&gt;&lt;P&gt;Note: I am assuming multiple Hue Servers are for load balancing purpose i.e. One Hue server supports max 50 concurrent transactions. And in this case, ensure that you have same config setup i.e. ldap etc. for all Hue Server instances.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 07:13:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151841#M28582</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2016-05-18T07:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151842#M28583</link>
      <description>&lt;P&gt;Yes, perfect Radha&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 07:17:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151842#M28583</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-05-18T07:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151843#M28584</link>
      <description>&lt;P&gt;Do I need to create a table and schema if I prefer to use mysql as my db engine?  Will schema be created by hue itself when I restart the hue service?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 11:00:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151843#M28584</guid>
      <dc:creator>radhakrishnan_r</dc:creator>
      <dc:date>2016-05-18T11:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151844#M28585</link>
      <description>&lt;P&gt;Scheme should be created automatically, Follow below steps:&lt;/P&gt;&lt;P&gt;To set up Hue to use a MySQL database:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new user in MySQL, and grant privileges to it to manage the database using the MySQL database admin utility:&lt;PRE&gt;# mysql -u root -p&amp;lt;
CREATE USER $HUEUSER IDENTIFIED BY '$HUEPASSWORD';
GRANT ALL PRIVILEGES on *.* to ‘$HUEUSER’@’localhost’ WITH GRANT OPTION;
GRANT ALL on $HUEUSER.* to ‘$HUEUSER’@’localhost’ IDENTIFIED BY $HUEPASSWORD;
FLUSH PRIVILEGES;&lt;/PRE&gt;&lt;P&gt;where $HUEUSER is the Hue user name and $HUEPASSWORD is the Hue user password.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Create the MySQL database for Hue:
&lt;P&gt;&lt;CODE&gt;# mysql -u root -p&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;CREATE DATABASE $DBNAME;&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;Open the &lt;CODE&gt;/etc/hue/conf/hue.ini&lt;/CODE&gt; file and edit the [[database]] section (modify for your MySQL setup).&lt;PRE&gt;[[database]] 
engine=mysql
host=$DATABASEIPADDRESSORHOSTNAME
port=$PORT
user=$HUEUSER
password=$HUEPASSWORD
name=$DBNAME&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;Synchronize Hue with the external database to create the schema and load the data.
&lt;P&gt;&lt;CODE&gt;/usr/lib/hue/build/env/bin/hue syncdb --noinput&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Start Hue.
&lt;P&gt;&lt;CODE&gt;/etc/init.d/hue start&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 18 May 2016 11:24:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151844#M28585</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-05-18T11:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151845#M28586</link>
      <description>&lt;P&gt;Thank you so much, I try with this configs.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 16:56:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151845#M28586</guid>
      <dc:creator>radhakrishnan_r</dc:creator>
      <dc:date>2016-05-18T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151846#M28587</link>
      <description>&lt;P&gt;&lt;A rel="user" href="#"&gt;@Radhakrishnan Rk&lt;/A&gt; : I have tried below steps and it worked, this might help more:&lt;/P&gt;&lt;P&gt;1. If Hue is not installed, pick a node and with root permissions run the following command yum install hue*  &lt;/P&gt;&lt;P&gt;2. Make appropriate changes to /etc/hue/conf/hue.ini from Kerberos and LDAP perspectives in hue.ini &lt;/P&gt;&lt;P&gt;3. Pick a node where MySQL need to be installed, with root permissions, run the following command: yum install MySQL &lt;/P&gt;&lt;P&gt;4. MySQL service will be stopped, by default. &lt;/P&gt;&lt;P&gt;5. Edit /etc/my.cnf and change the max_allowed_packet setting, set to the following: max_allowed_packet = 512M &lt;/P&gt;&lt;P&gt;6. Stop the Hue instances, if any. &lt;/P&gt;&lt;P&gt;7. Copy hue_db_dump.sql to a temporary location on the node where MySQL is installed &lt;/P&gt;&lt;P&gt;8. /etc/init.d/MySQL start &lt;/P&gt;&lt;P&gt;9. On the node where MySQL instance is installed, as root user, execute the following commands at the Linux prompt mysql -e "drop database hue; create database hue; use hue; source /tmp/hue_db_dump.sql;" mysql -e "GRANT ALL ON *.* to hue@'&amp;lt;node_with_hue_instance&amp;gt;' IDENTIFIED BY 'hue';" mysql -e "DELETE FROM hue.django_content_type; ALTER TABLE hue.beeswax_session ALTER proprietary SET DEFAULT 0;" &lt;/P&gt;&lt;P&gt;10. On the node where Hue is installed take a backup of hue.ini cp /etc/hue/conf/hue.ini /etc/hue/conf/hue.ini.bkup 1&lt;/P&gt;&lt;P&gt;1. On all the Hue instances edit /etc/hue/conf/hue.ini, to point the database to MySQL &lt;/P&gt;&lt;P&gt;12. Start all Hue instances, login to test.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 21:09:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151846#M28587</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-05-18T21:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151847#M28588</link>
      <description>&lt;P&gt;Thank you for all your responses. It works fine. But I got some error while restarting hue service in all hosts.&lt;/P&gt;&lt;P&gt;[centos@ip-172-31-56-224 ~]$ sudo -i
[root@ip-172-31-56-224 ~]# /etc/init.d/hue restart &lt;/P&gt;&lt;P&gt;Shutting down hue:                                         [  OK  ]
Traceback (most recent call last): &lt;/P&gt;&lt;P&gt;  File "/usr/lib/hue/build/env/bin//hue", line 9, in &amp;lt;module&amp;gt;
    load_entry_point('desktop==2.6.1', 'console_scripts', 'hue')() &lt;/P&gt;&lt;P&gt;  File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line 41, in entry
    from desktop import settings, appmanager
  File "/usr/lib/hue/desktop/core/src/desktop/settings.py", line 52, in &amp;lt;module&amp;gt;
    desktop.log.basic_logging(os.environ[ENV_HUE_PROCESS_NAME]) &lt;/P&gt;&lt;P&gt;  File "/usr/lib/hue/desktop/core/src/desktop/log/__init__.py", line 125, in basic_logging
    logging.config.fileConfig(log_conf)
  File "/usr/lib64/python2.6/logging/config.py", line 84, in fileConfig
    handlers = _install_handlers(cp, formatters)&lt;/P&gt;&lt;P&gt;
  File "/usr/lib64/python2.6/logging/config.py", line 162, in _install_handlers
    h = klass(*args)&lt;/P&gt;&lt;P&gt;
  File "/usr/lib64/python2.6/logging/handlers.py", line 112, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) &lt;/P&gt;&lt;P&gt;  File "/usr/lib64/python2.6/logging/handlers.py", line 64, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay) &lt;/P&gt;&lt;P&gt;  File "/usr/lib64/python2.6/logging/__init__.py", line 835, in __init__
    StreamHandler.__init__(self, self._open()) &lt;/P&gt;&lt;P&gt;  File "/usr/lib64/python2.6/logging/__init__.py", line 854, in _open
    stream = open(self.baseFilename, self.mode) &lt;/P&gt;&lt;P&gt;IOError: [Errno 13] Permission denied: '/usr/lib/hue/logs/access.log' &lt;/P&gt;&lt;P&gt;Starting hue:                                              [  OK  ] &lt;/P&gt;&lt;P&gt;[root@ip-172-31-56-224 ~]# /etc/init.d/hue status &lt;/P&gt;&lt;P&gt;supervisor (pid  12586) is running... &lt;/P&gt;&lt;P&gt;[root@ip-172-31-56-224 ~]# &lt;/P&gt;&lt;P&gt;Will it impact my environment?&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Radhakrishnan.R&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 16:37:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/151847#M28588</guid>
      <dc:creator>radhakrishnan_r</dc:creator>
      <dc:date>2016-05-22T16:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/316825#M28589</link>
      <description>&lt;P&gt;We have tried the same thing on HDP clusters but it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what we did.&lt;/P&gt;&lt;P&gt;Install Hue2.3&amp;nbsp; instances on two servers.&lt;/P&gt;&lt;P&gt;Installed Mysql on one server and created database and required user as per the instructions.&lt;/P&gt;&lt;P&gt;Modified both hue.ini files to point the same database.&lt;/P&gt;&lt;P&gt;Ran syncb commands on Both hue instances.&lt;/P&gt;&lt;P&gt;One hue is working fine, the other hue is throwing below error while running any queries on beeswax.&lt;/P&gt;&lt;P&gt;except beeswax remaining(Hcatlog,Hdfs browser are working fine.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN class="left"&gt;Error occurred executing hive query: Field 'session_id' doesn't have a default value &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 18:38:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/316825#M28589</guid>
      <dc:creator>Rajuambala</dc:creator>
      <dc:date>2021-05-20T18:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Centralized DB for multiple hue servers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/316856#M28590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/19634"&gt;@Rajuambala&lt;/a&gt;&amp;nbsp;as this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 07:25:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Centralized-DB-for-multiple-hue-servers/m-p/316856#M28590</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-05-21T07:25:37Z</dc:date>
    </item>
  </channel>
</rss>

