When performing HDFs Namenode-format
Error
Error occurred during initialization of VMS
Java.lang.Error:Properties Init:could not determine current working directory.
At Java.lang.System.initProperties (Native Method)
At Java.lang.System.initializeSystemClass (system.java:1166)
There are probably two cases of this error:
1. There is a problem configuring environment variables after installation of JDK
2. Current directory is not available
I took a look at the JAVA_HOME environment variable configured in/etc/profile, no error
So I quit the current directory, re-executed HDFs Namenode-format, executed successfully
Reason Description:
If the current directory is deleted, executing the shell command in this directory will cause an error.
Exit the current directory to resolve
Error occurred during initialization of VM java.lang.Error:Properties init:could not determine current working directory .