Working with Sample Project

This sample process shows how to manage and query data. For example, how to operate files in HDFS, transfer files between HDFS and local file system, create Hive table, and query data.

Prerequisites

Before running the project, you need to import the sample project to TIBCO Business Studio and configure the shared resource in the sample. See Importing Sample Project and Configuring Module Properties.

Procedure

  1. Expand the DataCollectionAndQueryProj project in Project Explorer.
  2. Click Processes > DataCollectionAndQuery > DemoWorkflow.bwp.
  3. Expand Module Descriptors and double-click Components.
  4. Ensure only the DataCollectionAndQuery.DemoWorkflow component is selected in the Component Configurations area.
  5. Click Run > Run Configurations.
  6. Expand BusinessWorks Application and click BWApplication.
  7. Ensure only the DataCollectionAndQueryProj.application is selected in the Applications tab.
  8. Click Run.
  9. Click Terminate to stop the process.

Result

If the process performs successfully, 100 records in the customers.csv file created by the CreateHiveTableRefertToData activity are returned in the Output tab of the HiveQuery activity.