Running the Sample Project

This sample project contains one process that shows how to manage and query data.

Prerequisites

Ensure that you have imported the sample project to TIBCO Business Studio, as described in Importing the Sample Project.

Procedure

  1. Configure the module properties that are used in the sample project:
    1. In the Project Explorer view, expand DataCollectionAndQueryProj > Module Descriptors and double-click Module Properties.
    2. Expand Example and configure the following properties that are used in the shared resources:
      • HCATALOG_URL=server_URL
      • HDFS_URL=server_URL
      • Project_Path=TIBCO_HOME/bw/palettes/bigdata/version_number/Samples
  2. Expand Resource > SharedResources, edit the connections that are used in the sample project, and then click Test Connection to validate your connections.
    1. Double-click HcatalogConn.sharedhadoopresource to edit the HCatalog connection.
    2. Double-click HDFSConn.sharedhdfsresource to edit the HDFS connection.
  3. Expand the Module Descriptors resource, and then double-click Components.
  4. In the Component Configurations area, ensure that the DataCollectionAndQuery.DemoWorkflow component is selected.
  5. On the toolbar, click the icon to save your changes.
  6. From the menu, click Run > Run Configurations to run the selected process.
  7. In the left panel of the Run Configurations dialog, expand BusinessWorks Application > BWApplication.
  8. In the right panel, click the Applications tab, select the check box next to DataCollectionAndQueryProj.application.
  9. Click Run to run the process.
  10. Click the icon to stop the process.

Result

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