Why Does the Distcp Command Fail in the Secure Cluster, Causing an Exception?
Question
Why distcp command fails in the secure cluster with the following error displayed?
Client side exception
Invalid arguments: Unexpected end of file from server
Server side exception
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Answer
The preceding error may occur if webhdfs:// is used in the distcp command. The reason is that the big data cluster uses the HTTPS mechanism, that is, dfs.http.policy is set to HTTPS_ONLY in core-site.xml file. To avoid the error, replace webhdfs:// with swebhdfs:// in the file.
For example:
./hadoop distcp swebhdfs://IP:PORT/testfile hdfs://IP:PORT/testfile1
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot