"FileNotFoundException" happens while the file doesn't exist while using "Write" activity

"FileNotFoundException" happens while the file doesn't exist while using "Write" activity

book

Article ID: KB0073804

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data 6.3.1 and above

Description

The HDFS file write activity provides options for append and overwrite in the general tab.
Case 1 - When Both append and Overwrite is not selected, file is not present in the HDFS -> Success, new file is created
Case 2 - Append is not selected and Overwrite is selected, file is not present in the HDFS -> Success, new file is created.
Case 3 - Append is selected and Overwrite is not selected(Overwrite checkbox is hidden), file is not present in the HDFS -> Failed, FileNotFound Exception.

The reason why case 3 is failed is that the webhdfs API expects file to be present for append operation. The webhdfs REST URL includes File path while submitting the append request.

Environment

Product: TIBCO ActiveMatrix BusinessWorks(TM) Plug-in for Big Data Version: 6.3.1 and above OS: All Supported Operating Systems

Issue/Introduction

"FileNotFoundException" happens while the file doesn't exist while using "Write" activity