从scala命令行使用KRYO注册类

时间:2016-01-14 18:02:45

标签: scala apache-spark kryo

当我尝试从scala提示符运行命令时,我收到以下错误:

(TID 0, 192.168.20.81): java.lang.IllegalArgumentException:  

Class is not registered: scala.Tuple3[]    
Class is not registered: org.apache.spark.sql.Row[]

Note: To register this class use: kryo.register(scala.Tuple3[].class);
Note: To register this class use: kryo.register(org.apache.spark.sql.Row[].class);

当我运行“推荐”命令来注册我得到的课程时:

scala> kryo.register(scala.Tuple3[].class)
<console>:1: error: identifier expected but ']' found.
   kryo.register(scala.Tuple3[].class)

0 个答案:

没有答案