When configuring my hadoop namenode for the first time, I know I need to run
bin/hadoop namenode -format
but running this a second time, after loading data into HDFS, will wipe out everything and reformat. Is there an easy way to tell if a namenode has already been formatted?
Well you can check this file store1/name/current/VERSION
If it exist then it is already formatted.
PS: You do format only once in life in production system. Its better to do in the installation process or manually in emergency restoration time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With