Ramhdfs is a project mainly written in Java, it's free.
An implementation of the FileSystem API in Hadoop that stores everything in memory.