Github user xubo245 commented on the issue:
https://github.com/apache/carbondata/pull/1713
@ravipesala It's ok in my computer with Xmx=4g. You can increase the value
of Xmx or decrease the value of totalNum.
The memory requirements is similar
org.apache.carbondata.examples.CompareTest---
