--
post: rha...@googlegroups.com ||
unsubscribe: rhadoop+u...@googlegroups.com ||
web: https://groups.google.com/d/forum/rhadoop?hl=en-US
---
You received this message because you are subscribed to the Google Groups "RHadoop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhadoop+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
hdfs.init();
f = hdfs.file("/user/sampledata/reg.csv","r",buffersize=104857600);
m = hdfs.read(f);
c = rawToChar(m);
dataa = read.table(textConnection(c), sep = ",",header = TRUE,fill = TRUE);
head(dataa) ## work and show the head of dataa this reg.csv file is of 93Mb
object.size(c) 65632 bytes > object.size(m) 65576 bytes > object.size(f) 264 bytes
> object.size(dataa) 116808 bytes > object.size(g) 264 bytes > object.size(h) 65576 bytes > object.size(d) 65632 bytes > object.size(sata) 116808 bytes > ncol(sata) [1] 11 > ncol(dataa) [1] 11 > nrow(sata) [1] 1965 > nrow(dataa) [1] 1965
2801660 and actual nrow of halffreg.csv is 1000830. ncol of both csv file is 11. And head(dataa) and head(sata) both work
fine and display head.
Actual nrow of reg.csv is2801660 and actual nrow of halffreg.csv is 1000830. ncol of both csv file is 11. And head(dataa) and head(sata) both work
fine and display head.
--