Procedure
-
Double-click tHDFSPut to define the
component in its Basic settings
view.
- Select, for example, Apache 0.20.2 from the Hadoop version list.
- In the NameNode URI, the Username and the Group fields, enter the connection parameters to the HDFS. If you are using WebHDFS, the location should be webhdfs://masternode:portnumber; WebHDFS with SSL is not supported yet.
- Next to the Local directory field, click the [...] button to browse to the folder with the file to be loaded into the HDFS. In this scenario, the directory has been specified while configuring tFileOutputDelimited: C:/hadoopfiles/putFile/.
- In the HDFS directory field, type in the intended location in HDFS to store the file to be loaded. In this example, it is /testFile.
- Click the Overwrite file field to stretch the drop-down.
- From the menu, select always.
- In the Files area, click the plus button to add a row in which you define the file to be loaded.
- In the File mask column, enter *.txt to replace newLine between quotation marks and leave the New name column as it is. This allows you to extract all the .txt files in the specified directory without changing their names. In this example, the file is in.txt.