Dear all,
By running my code, i got the following error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.nio.ByteBuffer.wrap(ByteBuffer.java:350)
at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:237)
at java.lang.StringCoding.encode(StringCoding.java:272)
at java.lang.String.getBytes(String.java:946)
at org.apache.hadoop.hbase.util.Bytes.toBytes(Bytes.java:425)
at UsersOperations.addPatients(UsersOperations.java:231)
at ClientTest.main(ClientTest.java:203)
In my code, I am only adding 200,000 records (6 rows each).
Although the Java Heap size for namenode, datanode, secondary namenode = 3
GB.
So any idea ??