- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hue Load Database failed after switch to external MySQL
Created on ‎12-14-2015 04:54 PM - edited ‎09-16-2022 02:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The history for this issue:
Installed CDH4 1.5 years ago. Used MySQL for all metadata except for Hue users (a simple oversight).
Switched to CDH5 in September 2015. Still using SQLite for Hue.
Upgraded to CDH5.5.8 last Thursday. Still using SQLite for Hue.
I finally decided to convert Hue to use MySQL instead of the default SQLite. I succeeded in 'Save Database' to the Json file, after some trouble with permissions succeeded in 'Synchronize Database'. Now, 'Load Database' fails.
The json database in question has 1.5 years' worth of present and former users. It is 3 million lines long! Should I expect this to load at all?
To recap: exported a giant Hue history json-blob under CDH 5.5.8, switched to MySQL, it won't load back.
Created ‎12-15-2015 06:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your candor 🙂
In my use case, it would be handy to unload and reload everything for a particular user. Most of our user history was inactive users, and only a few wanted their queries back.
Created ‎12-14-2015 06:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We recommend to truncate the histories tables:
http://gethue.com/how-to-manage-the-hue-database-with-the-shell/
http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_ig_hue_database...
In practice exporting documents like
http://gethue.com/exporting-and-importing-oozie-workflows/
might be simpler.
It is planned to make everything exportable in the UI like above:
https://issues.cloudera.org/browse/HUE-3089
Created ‎12-15-2015 06:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your candor 🙂
In my use case, it would be handy to unload and reload everything for a particular user. Most of our user history was inactive users, and only a few wanted their queries back.
