Hadoop 学习笔记:java.lang.NoSuchMethodException: DataJoin$TaggedWritable.<init>()

来源:互联网 发布:python后端开发 编辑:程序博客网 时间:2024/06/05 09:42

运行 Hadoop in Action 里面关于datajoin的例子时报这个错,解决方案是为TaggedWritable 类加一个无参构造方法。原因是Hadoop uses reflection to create this object, and requires a default constructor (no args).

详:

http://stackoverflow.com/questions/10201500/hadoop-reduce-side-join-using-datajoin