In my previous blog post I wrote about How to Add a New Debugger for Eclipse Che. In this article, I am glad to introduce a real debug adaptor, the Pig Latin Debug Adapter, delivered as a VS Code extension.
A Brief Introduction to Apache Pig and Pig Latin
Apache Pig is a project for processing large amounts of data stored in the Hadoop database. It is made up of two parts — a high level programming language called Pig Latin, designed for ease of parallel execution, and an execution runtime based on the Java Virtual Machine.
Pig Latin is a popular language for Hadoop application developers, because it makes tasks like normalization of large amounts of data easy.
What are the benefits of the Pig debugger?
Currently Apache Pig has several operators to debug a pig script. It implies injecting operators into a script and perform step by step execution with result verifying. Obviously it isn’t very convenient… It is better to have a real debugger to set breakpoints, evaluate arbitrary statements, checking schema and much more... And it is here!
How to try it out…
When your workspace is started click
Add Configurations in the
Debug menu and add debug configuration for
Pig Debug in the
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"name": "Debugging a pig file",
test.pig file in the editor and click F5 to start a debug session:
Enjoy debugging Pig Latin scripts! :)
Join the community: