<?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: Hue OperationalError: no such column: search_collection.owner_id error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hue-OperationalError-no-such-column-search-collection-owner/m-p/40139#M26117</link>
    <description>&lt;P&gt;This issue was corrected by using the sqlite3 command line interface and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(alter table search_collection add column owner_id int NULL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No issues were seen after that.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 00:31:06 GMT</pubDate>
    <dc:creator>DataSplainer</dc:creator>
    <dc:date>2016-04-26T00:31:06Z</dc:date>
    <item>
      <title>Hue OperationalError: no such column: search_collection.owner_id error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hue-OperationalError-no-such-column-search-collection-owner/m-p/40133#M26115</link>
      <description>&lt;P&gt;I'm following the instructions: &lt;A title="Using an External Database for Hue Using the Command Line" href="http://www.cloudera.com/documentation/enterprise/5-5-x/topics/cdh_ig_hue_database.html" target="_blank"&gt;http://www.cloudera.com/documentation/enterprise/5-5-x/topics/cdh_ig_hue_database.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When dumping the sqlite database, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sudo -u hue /opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/build/env/bin/hue dumpdata &amp;gt; /tmp/huedump.json
CommandError: Unable to serialize database: no such column: search_collection.owner_id&lt;/PRE&gt;&lt;P&gt;We started on version 5.3.3, upgraded to 5.4.7, and have now completed an upgrade to 5.7.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to fix/get around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:53:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hue-OperationalError-no-such-column-search-collection-owner/m-p/40133#M26115</guid>
      <dc:creator>DataSplainer</dc:creator>
      <dc:date>2026-04-21T13:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hue OperationalError: no such column: search_collection.owner_id error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hue-OperationalError-no-such-column-search-collection-owner/m-p/40135#M26116</link>
      <description>&lt;P&gt;For reference, the table in the database looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CREATE TABLE "search_collection" (&lt;BR /&gt;"properties" text NOT NULL,&lt;BR /&gt;"sorting_id" integer NOT NULL,&lt;BR /&gt;"name" varchar(40) NOT NULL,&lt;BR /&gt;"facets_id" integer NOT NULL,&lt;BR /&gt;"enabled" bool NOT NULL,&lt;BR /&gt;"label" varchar(100) NOT NULL,&lt;BR /&gt;"is_core_only" bool NOT NULL,&lt;BR /&gt;"result_id" integer NOT NULL,&lt;BR /&gt;"cores" text NOT NULL,&lt;BR /&gt;"id" integer NOT NULL PRIMARY KEY);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the create table command in hue looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;db.create_table('search_collection', (&lt;BR /&gt;('properties', self.gf('django.db.models.fields.TextField')(default='{}')),&lt;BR /&gt;('sorting', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['search.Sorting'])),&lt;BR /&gt;('name', self.gf('django.db.models.fields.CharField')(max_length=40)),&lt;BR /&gt;('facets', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['search.Facet'])),&lt;BR /&gt;('enabled', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),&lt;BR /&gt;('label', self.gf('django.db.models.fields.CharField')(max_length=100)),&lt;BR /&gt;('is_core_only', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),&lt;BR /&gt;('result', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['search.Result'])),&lt;BR /&gt;('cores', self.gf('django.db.models.fields.TextField')(default='{}')),&lt;BR /&gt;('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the field "owner_id" is definitely not there, and it looks like it shouldn't be, so why is it an error? Can I just create an owner_id field with some default value, or will that mess up something worse?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 21:00:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hue-OperationalError-no-such-column-search-collection-owner/m-p/40135#M26116</guid>
      <dc:creator>DataSplainer</dc:creator>
      <dc:date>2016-04-25T21:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hue OperationalError: no such column: search_collection.owner_id error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hue-OperationalError-no-such-column-search-collection-owner/m-p/40139#M26117</link>
      <description>&lt;P&gt;This issue was corrected by using the sqlite3 command line interface and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(alter table search_collection add column owner_id int NULL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No issues were seen after that.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 00:31:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hue-OperationalError-no-such-column-search-collection-owner/m-p/40139#M26117</guid>
      <dc:creator>DataSplainer</dc:creator>
      <dc:date>2016-04-26T00:31:06Z</dc:date>
    </item>
  </channel>
</rss>

