Java Out of Memory exception in Ubuntu when using Flume/Hadoop Java Out of Memory exception in Ubuntu when using Flume/Hadoop hadoop hadoop

Java Out of Memory exception in Ubuntu when using Flume/Hadoop


Set JAVA_OPTS value at flume-env.sh and start flume agent.


It appears the problem had to do with the batch size and transactionCapacity. I changed them to the following:

TwitterAgent.sinks.HDFS.hdfs.batchSize = 100TwitterAgent.channels.MemChannel.transactionCapacity = 1000

This works without me even needing to change the JAVA_OPTS value.