|
@@ -716,12 +716,13 @@ public abstract class Storage extends StorageInfo {
|
|
} catch(OverlappingFileLockException oe) {
|
|
} catch(OverlappingFileLockException oe) {
|
|
// Cannot read from the locked file on Windows.
|
|
// Cannot read from the locked file on Windows.
|
|
String lockingJvmName = Path.WINDOWS ? "" : (" " + file.readLine());
|
|
String lockingJvmName = Path.WINDOWS ? "" : (" " + file.readLine());
|
|
- LOG.error("It appears that another namenode" + lockingJvmName
|
|
|
|
- + " has already locked the storage directory");
|
|
|
|
|
|
+ LOG.error("It appears that another node " + lockingJvmName
|
|
|
|
+ + " has already locked the storage directory: " + root, oe);
|
|
file.close();
|
|
file.close();
|
|
return null;
|
|
return null;
|
|
} catch(IOException e) {
|
|
} catch(IOException e) {
|
|
- LOG.error("Failed to acquire lock on " + lockF + ". If this storage directory is mounted via NFS, "
|
|
|
|
|
|
+ LOG.error("Failed to acquire lock on " + lockF
|
|
|
|
+ + ". If this storage directory is mounted via NFS, "
|
|
+ "ensure that the appropriate nfs lock services are running.", e);
|
|
+ "ensure that the appropriate nfs lock services are running.", e);
|
|
file.close();
|
|
file.close();
|
|
throw e;
|
|
throw e;
|