@Si
Try below command
hdfs dfsadmin -Dfs.defaultFS=hdfs://<name service> -fetchImage /tmp
Make sure the name service configs are already in place.
The general command line syntax is
bin/hadoop command [genericOptions] [commandOptions]
Generic options supported are
-conf <configuration file> specify an application configuration file
-D <property=value> use value for given property
-fs <local|namenode:port> specify a namenode