Example #1
0
 def upgrade(self):
     tables = [self.ALARM_HISTORY_TABLE, self.ALARM_TABLE]
     column_families = {'f': dict()}
     with self.conn_pool.connection() as conn:
         hbase_utils.create_tables(conn, tables, column_families)
         hbase_migration.migrate_tables(conn, tables)
Example #2
0
 def upgrade(self):
     tables = [self.RESOURCE_TABLE, self.METER_TABLE]
     column_families = {'f': dict(max_versions=1)}
     with self.conn_pool.connection() as conn:
         hbase_utils.create_tables(conn, tables, column_families)
         hbase_migration.migrate_tables(conn, tables)
Example #3
0
 def upgrade(self):
     tables = [self.RESOURCE_TABLE, self.METER_TABLE]
     column_families = {'f': dict(max_versions=1)}
     with self.conn_pool.connection() as conn:
         hbase_utils.create_tables(conn, tables, column_families)
         hbase_migration.migrate_tables(conn, tables)
Example #4
0
 def upgrade(self):
     tables = [self.ALARM_HISTORY_TABLE, self.ALARM_TABLE]
     column_families = {'f': dict()}
     with self.conn_pool.connection() as conn:
         hbase_utils.create_tables(conn, tables, column_families)
         hbase_migration.migrate_tables(conn, tables)