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:
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:
Port Number: 22
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.
You will receive a message informing the successful connection.
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 Cloudera. We 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.
Right Click on input.txt file click the option “upload”.
Observe that the file “input.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.
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.