Big Data and Hadoop (168 Blogs) Become a Certified Professional

Transfer files from Windows to Cloudera Demo VM

Last updated on Apr 28,2020 22K Views

This blog describes step by step procedure to  transfer files from windows to Cloudera Demo VM. To achieve this task, you need an FTP (File Transfer Protocol) software such as FileZilla or WinSCP. In  this blog, we will use FileZilla to demonstrate the whole procedure.

Tutorial for Transfering files from Windows to Cloudera Demo VM

Step1: Download and Install FileZilla

    • Download and install FileZilla for Windows from this link.
  • Open FileZilla. The following screen will appear:

Step 2: Establish Connection with Cloudera

To establish the connection we need  four parameters:

  • Hostname:  In this field we should give the IP address of Cloudera.
  • Username: This is the username of Cloudera Demo VM. By default it is ‘cloudera ’.
  • Password:  By default the password for Cloudera demo VM is ‘cloudera’.
  • Port Number: We need to mention the port number to access the file transfer service on the Cloudera Demo VM. As it is a SSH connection, use the port number ‘22’.

Find the IP address of the host in Cloudera Demo VM. Open a terminal in Cloudera and execute the following command: ifconfig

It will display the host IP address as shown in the following image:

Step 2: Establish Connection with Cloudera

The circled number in the image is the IP address of your Cloudera Host.

Now, we have all the four values that need to be specified for the Windows and FileZilla connection.
The values are:

Host: 192.168.126.174
Username: cloudera
Password: cloudera
Port Number: 22

Step 2: Establish Connection with Cloudera

Update these parameters in the appropriate fields of FileZilla and click on Quick Connect as shown in the above image.

Once you click on Quick connect a message will pop up as shown in the below image.

Step 2: Establish Connection with Cloudera

Click OK.

You will receive a message informing the successful connection.

Filezilla-3

You can observe in the above figure that under the left side  panel, it lists the directories and files present in that directory of Windows and under the right side panel of the FileZilla, it lists the directory and files present in that directory of Cloudera.

Step 3: Transferring the File to Cloudera.

Select the directory on your local system that contains the file(s) you would like to transfer to ClouderaWe will transfer the file “input.txt” present in location ‘D: sample’ to Cloudera VM host.

Similarly, select the location/directory of Cloudera to which you would like to transfer the “input.txt” file. We will transfer the file to Desktop of Cloudera host.

Step 3: Transferring the File to Cloudera.

Right Click on input.txt file click the option “upload”.

Step 3: Transferring the File to Cloudera.

Observe that the fileinput.txt under the Cloudera Host Desktop as shown in the following image. You will also receive the success status image as highlighted in the image.

Step 3: Transferring the File to Cloudera.

Congratulations! You have successfully transferred the files from your Windows PC to Cloudera Demo VM host.

Got a question for us? Please mention them in the comments section.

Related Posts:

Install Hadoop Cluster on Amazon EC2

Helpful Hadoop Shell commands

Comments
16 Comments
  • Prerna Gulati says:

    I have to transfer the ojdbc.jar to vmware workstation. I am using ubuntu14.04 on vm ware workstation where i can execute sqoop commands.
    But I am stucked with some errors while using FileZilla.
    I put the values of username,password,port,host and encountered the below error.
    please help.

    Status: Connection attempt failed with “ECONNREFUSED – Connection refused by server”.
    Error: Could not connect to server
    Status: Waiting to retry…
    Status: Connecting to 192.168.43.130:9000…
    Status: Connection attempt failed with “ECONNREFUSED – Connection refused by server”.
    Error: Could not connect to server

  • mayank punjahi says:

    Image provided by Edureka gives IP address as inet6, how to get IP address? when I run ifconfig on VM Terminal, it gives this:
    inet6 addr: fe80::a00:27ff:fe70:7b0d/64

  • Anil Bhargava says:

    I am unable to connect on Cloudera CDH via Oracle VM. This keeps on moving this way:

    Status: Waiting to retry…
    Status: Connecting to 10.0.2.15…
    Response: fzSftp started, protocol_version=7
    Command: open “cloudera@10.0.2.15” 22
    Error: Connection timed out after 20 seconds of inactivity
    Error: Could not connect to server

    I don’t know what next to be done to connect.

  • Zujer says:

    Awesome it works :)

    • EdurekaSupport says:

      Thanks for checking out the blog, Zujer! We’re glad you found it useful. Do subscribe to stay posted on upcoming blogs. Cheers!

  • Gopi says:

    I am using MacBook air and when I tried to ftp I got below error

    Status: Connecting to XX.X.X.15…

    Response: fzSftp started

    Command: open “cloudera@XX.X.X.15” 22

    Error: Connection timed out

    Error: Could not connect to server
    Can you help?

    • EdurekaSupport says:

      Hi Gopi, You can try by changing the network adapter to bridged/different adapters and check if you are able to connect to Cloudera using FileZilla.

      • VRma AnShul says:

        thanks a lot it worked for me…the only thing i was doing wrong after changing adapter was entering old ip address….thnks mentors

  • vijay says:

    hey when iclick on quickconnect it says
    Error: Connection timed out

    Error: Could not connect to server

    what to do ?
    my host address is 10.0.2.15

    • EdurekaSupport says:

      Hi Vijay,

      It might be because of two reasons. 1) Your system is not able to connect to that IP. To do this please follow the steps as in the screenshot- network0 and network1. 2)VMWare adapters
      might not be able to connect. Hence we need to upgrade the VMWare player by clicking on the option the Download and Install when we receive a reminder as in the screenshot ” software update”. Hope this helps.

  • Prabhu says:

    Hi,

    At step 3 when I try to transfer my files to the cloudera server, I am getting a permission denied error.

    I noticed that when I try to copy files from one folder to another folder in the cloudera server itself thru command line (using cp command) I am getting the permission denied error and I have to use sudo cp command to copy the files.

    My question is how to overcome the permission denied error when copying files thru FTP when i am not the root user.

Join the discussion

Browse Categories

webinar REGISTER FOR FREE WEBINAR
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP

Subscribe to our Newsletter, and get personalized recommendations.