If the jar package is not imported or the connection fails, it is not the case of this article.
This error is that the file on your hdfs is empty, you only need
hdfs
hadoop fs -mkdir /input/
No error will be reported if you create a file.