How shall I convert String to Writable object in my Hadoop Mapper How shall I convert String to Writable object in my Hadoop Mapper hadoop hadoop

How shall I convert String to Writable object in my Hadoop Mapper


I have a feeling that all you need is just

context.write(tweetId, new Text(tweetReverse));

That is, you just create a new Text object (which implements Writable) and pass a String in the constructor.