Exemplo n.º 1
0
 def upgrade(self):
     tables = [self.EVENT_TABLE]
     column_families = {"f": dict(max_versions=1)}
     with self.conn_pool.connection() as conn:
         hbase_utils.create_tables(conn, tables, column_families)
Exemplo n.º 2
0
 def upgrade(self):
     tables = [self.RESOURCE_TABLE, self.METER_TABLE, self.EVENT_TABLE]
     column_families = {'f': dict(max_versions=1)}
     with self.conn_pool.connection() as conn:
         hbase_utils.create_tables(conn, tables, column_families)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 5
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)