NFS Server in Java

I search an implementation of a network (or distributed) file system like NFS in Java. The goal is to extend it and do some research stuff with it. On the web I found some implementation e.g. DJ NFS, but the open question is how mature and fast they are.

Can anyone purpose a good starting point, has anyone experience with such things?

P.S. I know Hadoop DFS and I used it for some projects, but Hadoop is not a good fit for the things I want to do here.

--EDIT-- Hadoop is really focused on highly scalable, high throughput computing without the possibilities to overwrite parts of a file and so an. The goal is you could use the filesystem e.g. for user home directories.

--EDIT-- More Details: The idea is to modify such a implementation so that the files are not stored directly on a local filesystem, but to apply data de-duplication.

Asked by: Alfred924 | Posted: 28-01-2022

Answer 1

Have a look at They implement a NFSv4.1 server in Java.

Answered by: Sydney939 | Posted: 01-03-2022

Answer 2

You may want to take a look at Alfresco JLAN:

Alfresco JLAN uses a virtual file system interface that allows you to plug in your own file system implementation with the core server handling all of the network protocol exchange between the client and server. JLAN is also the only Java implementation of Window’s CIFS (Common Internet File System), in addition to supporting NFS and FTP.

Answered by: Anna311 | Posted: 01-03-2022

Answer 3

I can't say I've actually played with anything other than HDFS, but here are some links that might help you.

Answered by: Elise837 | Posted: 01-03-2022

Answer 4

Checkout YANFS I haven't used it, but it might be worth looking at. The project page is here over on and you have to get at the source with CVS

Answered by: Tess136 | Posted: 01-03-2022

Similar questions

filesystems - java inner classes filenames too long

I'm translating programs of some language to nested java classes. At some point, the level of nesting becomes so deep that I get: compiling error while writing : Test$2...$1.class (File name too long) where ... is a long string. I'm using an ext3 filesystem, so i'm limited to 256 character long filenames. Also, I would like to keep on with this translation method (to inner c...

map - Java NIO framework for filesystems instead of networks?

There are several high quality frameworks that hide the complexity of NIO based network programming (mina, netty, grizzly, etc.). Are there similar frameworks that simplify NIO based file-system programming? For example, as a learning exercise, I would like to implement a disk backed Map based on this (awesome!) article:

filesystems - Why is the user.dir system property working in Java?

Almost every article I read told me that you can't have chdir in Java. The accepted answer to this question says you can't do it in Java. However, here's some of the stuff I tried: geo@codebox:~$ java -version java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotS...

filesystems - How do I create a directory within the current working directory, in Java

What is the most succinct way to create a directory called "Foo" underneath the current working directory of my Java application (if it does not already exist)? Or, a slightly different angle: What is the Java equivalent of Directory.CreateDirectory("Foo") in .NET?

filesystems - How to get path to special system directories using Java

How to extract the path "c:/documents and settings/user" using Java... Is there any method??

filesystems - Deleting locked files with Java?

We have to delete some directories and their contents using Java running on Windows. I was worried about running into the directory files being locked. We could just invoke Unlocker to do the delete. Or is there a more Java centric way to handle this situation?

filesystems - java add incremental number to file exist before

I need to to add an incremental number to file exist before ,i know how to chek that and how to add the number at the end but i need an idea how to incriment the number every time look this e.g. to understand me C:\MyFiles\File.pdf exists so try C:\MyFiles\File1.pdf and next time C:\MyFiles\File2.pdf dont know how get the last incrementation and plz see my code i can increment only one time

filesystems - How to get a meaningful message for failed calls to Java File objects (mkdir, rename, delete)

While using File.mkdir, and friends I notice that they don't throw exceptions on failure! Thankfully FindBugs pointed this out and now my code at least checks the return value but I still see no way to get meaningful information about why the call fails! How do I find out why calls to these File methods fail? Is there ...

filesystems - Can Java access the search file system feature in the operating system?

In the recent versions of windows, you can hit the start menu and start typing to search for files across the filesystem. Is there a way to do that programmatically in Java? My specific purpose is to allow the user to choose a file or directory. The user could start typing a file name directly inside the application and it could start showing suggestions. Much easier than navigating directories in a typical file ch...

filesystems - How do I check the user permission for a folder using java

I want check whether a logged in user has permissions like "write" or "Read and Execute" for a folder that the user is using as destination for an installation. Basically I am using the InstallAnyWhere to prepare the installer. I want the installer to check the given destination has the above permissions for the loggedin user or not, if the user does not have these permission the installer should throw a warning m...

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)