I am getting this error when I try and boot up a DataNode. From what I have read, the RPC paramters are only used for a HA configuration, which I am not setting up (I think)
Obviously,your core-site.xml has configure error.
fs.defaultFS hdfs://namenode:8020
Your fs.defaultFS setting as hdfs://namenode:8020,but your machine hostname is datanode1.So you just need change namenode to datanode1 will be OK.
fs.defaultFS
hdfs://namenode:8020
datanode1
namenode