If you are running for the first time, please check whether hadoop is installed or not and command to check hadoop version is
hadoop version
If you can view version of hadoop succesfully, then try coping files from local to hdfs and command goes below.