我正在尝试运行 ignite 基本示例,但由于 spark TaskNotSerializable 错误而失败。你能帮帮我吗?
val ignite = Ignition.start("/usr/local/ignite/config/example-ignite.xml");
val cfg = ignite.configuration()
val ic = new IgniteContext[Integer, Integer](sc, () => cfg)
Ignition.setClientMode(true);
val sharedRdd = ic.fromCache("example")
val x = sqlContext.sparkContext.parallelize(1 to 10000, 10).map(i => (new Integer(i), new Integer(i)))
sharedRdd.savePairs(x)