Chris Payne
10/16/2023, 5:57 PMcase class BasicCaseClass (id: Int)
class EnhancePackageMapperTest extends AnyFlatSpec with Matchers with BeforeAndAfter{
val flinkCluster = new MiniClusterWithClientResource(
new MiniClusterResourceConfiguration.Builder()
.setNumberSlotsPerTaskManager(2)
.setNumberTaskManagers(1)
.build
)
before {
flinkCluster.before()
}
after {
flinkCluster.after()
}
"streaming data" should "collect values and sink correctly" in {
val env = StreamExecutionEnvironment.getExecutionEnvironment
env.getConfig.disableGenericTypes()
val basicOne = BasicCaseClass(1)
val basicTwo = BasicCaseClass(2)
val testStream = env.fromElements(basicOne, basicTwo)
val testStreamAction = testStream.map(x => x.id + 1)
val result = env.execute()
}
}
error code:
java.lang.UnsupportedOperationException: Generic types have been disabled in the ExecutionConfig and type com.ual.jarvis.BasicCaseClass is treated as a generic type.
I'm having some performance issues in my production application, and upon looking at the flame graph we're spending a good chunk of time with kryo serialization, i'm hoping to improve performance by navigating away from the kryo serializer.Alexey Novakov
10/18/2023, 12:59 PM