Error while using copyfromlocal command in hortonworks practice exam

when i am trying to copy file from local directory to hdfs in horton works practice exam using command
hadoop fs -copyFromLocal /home/hortonworks/datasets/flightdelays/weather.csv hdfs:namenode:8080/user/hortonworks/weather
i am facing below error
copyfromlocal :Failed on local exception: com.google.protobuf.InvalidProtocolBufferException:
Protocol message end-group tag did not match expected tag.;
Host Details : local host is: “namenode/172.17.0.2”; destination host is: “namenode”:8080;

Hdfs port no should be 8020,
hdfs://namenode:8020/user/…

1 Like