Help Center> MapReduce Service> Component Operation Guide (LTS)> Using Loader> Common Issues About Loader> Failed to Run Jobs Related to the sftp-connector Connector
Updated on 2024-05-29 GMT+08:00

Failed to Run Jobs Related to the sftp-connector Connector

Symptom

  • The jobs related to the sftp-connector connector fail to be executed and "Failed to obtain the SFTP stream" is displayed. xxx (Failed to send channel request.)
  • Error "subsystem request failed on channel 0. Connection closed" occurs in the SFTP service.
    Figure 1 SFTP error

Answer

This error occurs because the SFTP service is not enabled.

Procedure

  1. Modify the sshd_config file, save the modification, and exit.

    cd /etc/ssh

    vi sshd_config

    Subsystem sftp /usr/libexec/openssh/sftp-server
    Figure 2 Modifying the sshd_config file

  1. Restart the SFTP service.

    systemctl restart sshd.service