(GLUE-1902) Script Editor
Transaction:
/DVD/GL38
Datavard Glue Script Editor contains a collection of tools that help users to apply traditional data analytics and business intelligence skills to big data tools. Using Script Editor, it is possible to develop, test and run scripts for big data tools directly from SAP-GUI.
Scripts usage
Scripts are usually used for following purposes:
- ETL (extract, transform, load) for Hadoop data
- Integration of advanced analytics with existing data flow – run advanced analytics on top of data in Hadoop triggered by process chains
- Joining diverse datasets to gain valuable business insight
- Performing real-time, complex queries on datasets
Datavard Glue Script Editor supports an application for these services:
- Pig
- Hive
- Impala
Initial Screen
Create Script
Use following steps to create a Glue Script:
- Enter script name and press Create
If script witch such a name already exists, a warning message is displayed.
2. Fill in Description and Script type
Following types are available - Hive, Impala, and Pig
3. Specify OOZIE RFC destination - connection to Oozie
Oozie is a workflow scheduler system to manage Apache Hadoop jobs. It is integrated with the rest of the Hadoop stack supporting several types of Hadoop jobs out of the box (such as Java map-reduce, Streaming map-reduce, Pig, Hive, Sqoop and Distcp) as well as system-specific jobs (such as Java programs and shell scripts).
4. Specify HDFS RFC destination - connection to HDFS (Hadoop filesystem)
5. Create a body of the script
6. Save and activate
Display and edit script
From initial screen, you can display or edit the existing script.
Activated script cannot be edited, you have to deactivate it first to perform the changes.
Note
Please note, that it is required to reactivate the script to make changes available.
Execute script
You can execute a script from the Initial Screen either in dialog or as a background job.
A script can be also executed in dialog from Display/Edit screen, just press Execute icon or F8.
When executing the script in a dialog, a popup with log information comes up after the execution is finished.
the job must be specified. The same principles as described in chapter 5.1.3 must be applied. Likewise described in the mentioned chapter, the information about jobs can be seen in Simple Job Selection screen. The navigation to the screen is triggered by clicking on "Job Overview" button in the toolbar.
By clicking on "Script Log" button, the SAP Analyse Application Logs transaction is open with predefined parameters so that it searches for Glue script jobs only. Using this functionality it is possible to see in more details the execution details and investigate potential problems.
When executing the script in a background, you can use the SAP Analyse Application Logs transaction to see the logs. You can access it also using Script Log button.