Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想自定义将 csv 文件拆分为 hadoop 中的对象,然后将对象列表作为映射器的输入。我不确定 hadoop 的映射器是否可以将对象作为输入?如果可能的话,请告诉我。
感谢您的回复普拉文。这真的很有帮助。我按照教程进行操作,它帮助了我。
自定义 InputFormat 在这种情况下应该很好。这是有关创建相同内容的教程。可以将 K 或 V 分配给传递给映射器的对象。天气是K还是V并不重要。