Ejemplo n.º 1
0
 def get(self):
     transfer_id = self.get_argument("transferid")
     d_transfer = get_transfer_by_transferid(transfer_id)
     self.render(
         "./transfer_edit.html",
         transfer_server=get_sync_server(),
         dm_transfer_type=get_dmm_from_dm('09'),
         db_server=get_sync_db_server(),
         transfer_id=transfer_id,
         transfer_tag=d_transfer['transfer_tag'],
         transfer_db_type=d_transfer['transfer_type'],
         task_desc=d_transfer['task_desc'],
         server_id=d_transfer['server_id'],
         sour_db_id=d_transfer['sour_db_id'],
         sour_schema=d_transfer['sour_schema'],
         sour_table=d_transfer['sour_table'],
         sour_where=d_transfer['sour_where'],
         dest_db_id=d_transfer['dest_db_id'],
         dest_schema=d_transfer['dest_schema'],
         script_path=d_transfer['script_path'],
         script_name=d_transfer['script_file'],
         python3_home=d_transfer['python3_home'],
         batch_size=d_transfer['batch_size'],
         api_server=d_transfer['api_server'],
         status=d_transfer['status'],
     )
Ejemplo n.º 2
0
 def get(self):
     sync_id = self.get_argument("sync_id")
     d_sync = get_sync_by_syncid(sync_id)
     self.render(
         "./sync_clone.html",
         sync_server=get_sync_server(),
         db_server=get_sync_db_server(),
         dm_db_type=get_dmm_from_dm('02'),
         dm_sync_ywlx=get_dmm_from_dm('08'),
         dm_sync_data_type=get_dmm_from_dm('09'),
         dm_sync_time_type=get_dmm_from_dm('10'),
         server_id=d_sync['server_id'],
         sour_db_server=d_sync['sour_db_server'],
         desc_db_server=d_sync['desc_db_server'],
         sync_tag=d_sync['sync_tag'] + '_clone',
         sync_ywlx=d_sync['sync_ywlx'],
         sync_data_type=d_sync['sync_data_type'],
         script_base=d_sync['script_base'],
         script_name=d_sync['script_name'],
         run_time=d_sync['run_time'],
         task_desc=d_sync['task_desc'] + '_clone',
         python3_home=d_sync['python3_home'],
         sync_schema=d_sync['sync_schema'],
         sync_schema_dest=d_sync['sync_schema_dest'],
         sync_tables=d_sync['sync_tables'],
         sync_batch_size=d_sync['sync_batch_size'],
         sync_batch_size_incr=d_sync['sync_batch_size_incr'],
         sync_gap=d_sync['sync_gap'],
         sync_col_name=d_sync['sync_col_name'],
         sync_col_val=d_sync['sync_col_val'],
         sync_time_type=d_sync['sync_time_type'],
         sync_repair_day=d_sync['sync_repair_day'],
         api_server=d_sync['api_server'],
         status=d_sync['status'],
     )
Ejemplo n.º 3
0
 def get(self):
     archive_id = self.get_argument("archive_id")
     d_archive = get_archive_by_archiveid(archive_id)
     self.render(
         "./archive_clone.html",
         dm_db_type=get_dmm_from_dm('02'),
         dm_archive_server=get_sync_server(),
         dm_archive_type=get_dmm_from_dm('09'),
         dm_archive_time_type=get_dmm_from_dm('20'),
         dm_archive_rentition=get_dmm_from_dm('21'),
         dm_archive_instance=get_sync_db_server_by_type(
             d_archive['archive_db_type'])['message'],
         archive_id=archive_id,
         archive_tag=d_archive['archive_tag'] + '_clone',
         task_desc=d_archive['comments'] + '_clone',
         archive_server=d_archive['server_id'],
         archive_db_type=d_archive['archive_db_type'],
         sour_db_id=d_archive['sour_db_id'],
         sour_schema=d_archive['sour_schema'],
         sour_table=d_archive['sour_table'],
         archive_time_col=d_archive['archive_time_col'],
         archive_rentition=d_archive['archive_rentition'],
         rentition_time=d_archive['rentition_time'],
         rentition_time_type=d_archive['rentition_time_type'],
         if_cover=d_archive['if_cover'],
         dest_db_id=d_archive['dest_db_id'],
         dest_schema=d_archive['dest_schema'],
         script_path=d_archive['script_path'],
         script_name=d_archive['script_file'],
         run_time=d_archive['run_time'],
         python3_home=d_archive['python3_home'],
         batch_size=d_archive['batch_size'],
         api_server=d_archive['api_server'],
         status=d_archive['status'],
     )
Ejemplo n.º 4
0
 def get(self):
     self.render(
         "./transfer_add.html",
         sync_server=get_sync_server(),
         db_server=get_sync_db_server(),
         dm_transfer_type=get_dmm_from_dm('09'),
     )
Ejemplo n.º 5
0
 def get(self):
     sync_tag   = self.get_argument("sync_tag")
     d_sync     = get_minio_by_minioid(sync_tag)
     self.render("./minio_edit.html",
                 sync_tag       = d_sync['sync_tag'],
                 task_desc      = d_sync['comments'],
                 sync_server    = d_sync['server_id'],
                 sync_type      = d_sync['sync_type'],
                 sync_dir       = d_sync['sync_path'],
                 sync_service   = d_sync['sync_service'],
                 minio_server   = d_sync['minio_server'],
                 minio_user     = d_sync['minio_user'],
                 minio_pass     = d_sync['minio_pass'],
                 python3_home   = d_sync['python3_home'],
                 script_base    = d_sync['script_path'],
                 script_name    = d_sync['script_file'],
                 run_time       = d_sync['run_time'],
                 api_server     = d_sync['api_server'],
                 status         = d_sync['status'],
                 minio_bucket   = d_sync['minio_bucket'],
                 minio_dpath    = d_sync['minio_dpath'],
                 minio_incr     = d_sync['minio_incr'],
                 minio_incr_type= d_sync['minio_incr_type'],
                 dm_sync_server = get_sync_server(),
                 dm_sync_type   = get_dmm_from_dm('34'),
                 dm_sync_time_type=get_dmm_from_dm('10')
                 )
Ejemplo n.º 6
0
 def get(self):
     self.render("./sync_add.html",
                 sync_server=get_sync_server(),
                 db_server=get_sync_db_server(),
                 dm_db_type=get_dmm_from_dm('02'),
                 dm_sync_ywlx=get_dmm_from_dm('08'),
                 dm_sync_data_type=get_dmm_from_dm2('09', '1,2,3,4'),
                 dm_sync_time_type=get_dmm_from_dm('10'))
Ejemplo n.º 7
0
 def get(self):
     self.render(
         "./archive_add.html",
         archive_server=get_sync_server(),
         dm_db_type=get_dmm_from_dm('02'),
         dm_archive_type=get_dmm_from_dm('09'),
         dm_archive_time_type=get_dmm_from_dm('20'),
         dm_archive_rentition=get_dmm_from_dm('21'),
     )
Ejemplo n.º 8
0
 def get(self):
     self.render("./sync_bigdata_add.html",
                 sync_server=get_sync_server(),
                 db_server=get_datax_sync_db_server(),
                 dm_db_type=get_dmm_from_dm('02'),
                 dm_sync_ywlx=get_dmm_from_dm('08'),
                 dm_sync_data_type=get_dmm_from_dm2('09', '5,6'),
                 dm_sync_time_type=get_dmm_from_dm('10'),
                 dm_sync_zk_host=get_dmm_from_dm('15'),
                 dm_sync_hbase_thrift=get_dmm_from_dm('16'))
Ejemplo n.º 9
0
 def get(self):
     sync_id = self.get_argument("sync_id")
     d_sync = query_datax_by_id(sync_id)
     self.render(
         "./sync_bigdata_clone.html",
         sync_id=sync_id,
         sync_server=get_sync_server(),
         db_server=get_datax_sync_db_server(),
         dm_db_type=get_dmm_from_dm('02'),
         dm_sync_ywlx=get_dmm_from_dm('08'),
         dm_sync_data_type=get_dmm_from_dm('09'),
         dm_sync_time_type=get_dmm_from_dm('10'),
         dm_sync_zk_host=get_dmm_from_dm('15'),
         dm_sync_hbase_thrift=get_dmm_from_dm('16'),
         sync_tag=d_sync['sync_tag'].split('_v')[0] + '_v' +
         str(int(d_sync['sync_tag'].split('_v')[1]) + 1),
         server_id=d_sync['server_id'],
         sour_db_server=d_sync['sour_db_id'],
         sync_schema=d_sync['sync_schema'],
         sync_table=d_sync['sync_table'],
         sync_columns=d_sync['sync_columns'],
         sync_incr_col=d_sync['sync_incr_col'],
         zk_hosts=d_sync['zk_hosts'],
         hbase_thrift=d_sync['hbase_thrift'],
         sync_hbase_table=d_sync['sync_hbase_table'],
         sync_hbase_rowkey=d_sync['sync_hbase_rowkey_sour'],
         sync_hbase_rowkey_s=d_sync['sync_hbase_rowkey_separator'],
         es_service=d_sync['es_service'],
         es_index_name=d_sync['es_index_name'],
         es_type_name=d_sync['es_type_name'],
         sync_ywlx=d_sync['sync_ywlx'],
         sync_type=d_sync['sync_type'],
         script_path=d_sync['script_path'],
         run_time=d_sync['run_time'],
         comments=d_sync['comments'].split('_v')[0] + '_v' +
         str(int(d_sync['sync_tag'].split('_v')[1]) + 1),
         datax_home=d_sync['datax_home'],
         sync_time_type=d_sync['sync_time_type'],
         sync_gap=d_sync['sync_gap'],
         api_server=d_sync['api_server'],
         status=d_sync['status'],
         python3_home=d_sync['python3_home'],
     )
Ejemplo n.º 10
0
 def get(self):
     self.render("./minio_add.html",
                 dm_sync_server=get_sync_server(),
                 dm_sync_type=get_dmm_from_dm('34'),
                 dm_sync_time_type=get_dmm_from_dm('10')
                 )