0

这是我的java代码。

    InputStream inputStream = new FileInputStream(new File(
            "/home/689693/Desktop/sunitha/customer360/churn/test/test.csv"));
    DataInput dataInput = new DataInputStream(inputStream);

    Dataset dataSet = Dataset.read(dataInput);

    Data data = new Data(dataSet);
    System.out.println(data.size());

这抛出

    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.apache.mahout.classifier.df.data.Dataset.readFields(Dataset.java:316)
at org.apache.mahout.classifier.df.data.Dataset.read(Dataset.java:309)
at com.tcs.test.MahoutExample.main(MahoutExample.java:26)
4

0 回答 0