Assume that an NFS server contains a file /a/b and that an NFS client mounts
the NFS server’s root directory in the location /x, so that the client can now name the file as /x/a/b. Further assume that this is the only client and that the
client executes the following two commands:
chdir /x/a
rm b
The REMOVE message from the client to the server gets through, and
the server removes the file. Unfortunately, the response from the
server to the client is lost and the client resends the message to
remove the (now non-existent) file. The server receives the resent
message. What happens next depends on the server implementation.
Which of the following are correct statements?
A. If the server maintains an in-memory reply cache in which it
records all operations it previously executed, and there are no
server failures, the server will return “OK”.
B. If the server maintains an in-memory reply cache but the server
has failed, restarted, and its reply cache is empty, both of the
following responses are possible: the server may return “file not
found” or “OK”.
C. If the server is stateless, it will return “file not
found”.
D. Because REMOVE is an idempotent operation, any server
implementation will return “OK”.
Do little bit of research on Apache Spark. What is it and how is it different from MapReduce? Compare their pros and cons.
The solution to the problem is
A. If the server maintains an in-memory reply cache in which it records all operations it previously executed, and there are no server failures, the server will return “OK”.
Explaination to above answer:
In NFS client and server architecture a lot of files are accessed and handled at once. There may be a scenario where a client may issue many system calls on a single file, each call converting to NFS operations. To keep track of each actions on a file NFS uses FILE HANDLES.
FILES HANDLES are assigned to clients and are unique identifier to a file. FILE HANDLES uniquely represent a file in NFS system.
So when REMOVE operation is performed on a file that is just deleted and response from server to client is lost. It will print OK message on client side beacause of server side caching.
Assume that an NFS server contains a file /a/b and that an NFS client mounts the...
Assignment One program will be the update server and the other will be the update client. Here is how the two programs should interact with each other: Server 1. the server starts up and reads the version number in the data.bin file and stores it in memory. 2. The server binds to a port and awaits connections. Client 1. The client starts up and it will first read the version number found within it's own data.bin file. 2. The client...
could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...
Risk management in Information Security today Everyday information security professionals are bombarded with marketing messages around risk and threat management, fostering an environment in which objectives seem clear: manage risk, manage threat, stop attacks, identify attackers. These objectives aren't wrong, but they are fundamentally misleading.In this session we'll examine the state of the information security industry in order to understand how the current climate fails to address the true needs of the business. We'll use those lessons as a foundation...