Created on 07-20-2015 04:49 AM - edited 09-16-2022 02:34 AM
Hi,
I want to migrate the Hue database from sqlite3 to MySQL and dump the data from sqlite to a JSON file:
logged on as user "hue" (who is the "owner" of Hue)
$ /opt/cloudera/parcels/CDH-5.4.4-1.cdh5.4.4.p0.4/lib/hue/build/env/bin/hue dumpdata >hue_dumpdata.2015-07-20.json
CommandError: Unable to serialize database: no such table: desktop_document2
When I use sqlite to display the list of tables, I can see it there:
$ sqlite3 /var/hadoop/data/hue/desktop.db
SQLite version 3.6.20
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables '%';
auth_group oozie_datainput
auth_group_permissions oozie_dataoutput
...
desktop_document oozie_generic
desktop_document2 oozie_history
desktop_document2_dependencies oozie_hive
...
What's wrong with this?
Thanks in advance.
Regards,
Slavo
Created 07-20-2015 09:19 AM
Created 07-20-2015 09:19 AM