Correct syntax hadoop config fs --namenode hdfs://localhost:8020
Correct syntax
hadoop config fs --namenode hdfs://localhost:8020