Ejemplo n.º 1
0
 def setUp(self):
     super(PyFlinkBlinkBatchTableTestCase, self).setUp()
     self.t_env = TableEnvironment.create(
         EnvironmentSettings.new_instance().in_batch_mode().use_blink_planner().build())
     self.t_env.get_config().get_configuration().set_string("parallelism.default", "2")
     self.t_env.get_config().get_configuration().set_string(
         "python.fn-execution.bundle.size", "1")
Ejemplo n.º 2
0
 def setUp(self):
     super(PyFlinkBatchTableTestCase, self).setUp()
     self.t_env = TableEnvironment.create(EnvironmentSettings.in_batch_mode())
     self.t_env.get_config().get_configuration().set_string("parallelism.default", "2")
     self.t_env.get_config().get_configuration().set_string(
         "python.fn-execution.bundle.size", "1")
     self.t_env._remote_mode = True
Ejemplo n.º 3
0
 def setUp(self):
     super(PyFlinkLegacyBlinkBatchTableTestCase, self).setUp()
     self.t_env = BatchTableEnvironment.create(
         environment_settings=EnvironmentSettings.new_instance()
         .in_batch_mode().use_blink_planner().build())
     self.t_env._j_tenv.getPlanner().getExecEnv().setParallelism(2)
     self.t_env.get_config().get_configuration().set_string(
         "python.fn-execution.bundle.size", "1")
Ejemplo n.º 4
0
 def setUp(self):
     super(PyFlinkBlinkBatchTableTestCase, self).setUp()
     self.t_env = BatchTableEnvironment.create(
         environment_settings=EnvironmentSettings.new_instance()
         .in_batch_mode().use_blink_planner().build())
     self.t_env.get_config().get_configuration().set_string(
         "taskmanager.memory.task.off-heap.size", "80mb")
     self.t_env._j_tenv.getPlanner().getExecEnv().setParallelism(2)
Ejemplo n.º 5
0
 def setUp(self):
     super(PyFlinkBlinkStreamTableTestCase, self).setUp()
     self.env = StreamExecutionEnvironment.get_execution_environment()
     self.env.set_parallelism(2)
     self.t_env = StreamTableEnvironment.create(
         self.env,
         environment_settings=EnvironmentSettings.new_instance(
         ).in_streaming_mode().use_blink_planner().build())
Ejemplo n.º 6
0
 def setUp(self):
     super(PyFlinkStreamTableTestCase, self).setUp()
     self.t_env = TableEnvironment.create(
         EnvironmentSettings.in_streaming_mode())
     self.t_env.get_config().get_configuration().set_string(
         "parallelism.default", "2")
     self.t_env.get_config().get_configuration().set_string(
         "python.fn-execution.bundle.size", "1")
     self.t_env._execution_mode = "process"
Ejemplo n.º 7
0
 def setUp(self):
     super(PyFlinkBlinkStreamTableTestCase, self).setUp()
     self.env = StreamExecutionEnvironment.get_execution_environment()
     self.env.set_parallelism(2)
     self.t_env = StreamTableEnvironment.create(
         self.env, environment_settings=EnvironmentSettings.new_instance()
             .in_streaming_mode().use_blink_planner().build())
     self.t_env.get_config().get_configuration().set_string(
         "taskmanager.memory.task.off-heap.size", "80mb")
Ejemplo n.º 8
0
 def setUp(self):
     super(PyFlinkBlinkStreamTableTestCase, self).setUp()
     self.env = StreamExecutionEnvironment.get_execution_environment()
     self.env.set_parallelism(2)
     self.t_env = StreamTableEnvironment.create(
         self.env, environment_settings=EnvironmentSettings.new_instance()
             .in_streaming_mode().use_blink_planner().build())
     self.t_env.get_config().get_configuration().set_string(
         "python.fn-execution.bundle.size", "1")
Ejemplo n.º 9
0
 def setUp(self):
     super(PyFlinkBlinkBatchTableTestCase, self).setUp()
     self.t_env = BatchTableEnvironment.create(
         environment_settings=EnvironmentSettings.new_instance(
         ).in_batch_mode().use_blink_planner().build())
     self.t_env._j_tenv.getPlanner().getExecEnv().setParallelism(2)