We will start with a very simple example. In this chapter, our use case is to delete a given folder on HDFS via Oozie. In our case study, we get data daily in one folder in HDFS, but we want to delete the previous day's data. We want to keep just latest version in our system. Let's solve our business problem:
Log in to Hue and go to Workflows | Editor.
In the top row of editor, there are various types of actions. Select the Hadoop Fs action.
Drag the Hadoop Fs action to the editor as shown in the next screenshot.
Give a meaningful name to this action, for example,
my_delete_folder_action
.Give the path of the folder that you want to delete. I have used
/user/hue/learn_oozie/my_first_oozie_job
. I have also set the name of the Workflow asMy First Oozie Job
, as shown in the following screenshot: