Search code examples
apache-pig

Hello world in clean pig workspace


I wonder wheter it is possible to do the classic 'Hello world!' in Apache Pig.

Pig is somewhat related to SQL and hive where one could simply do:

SELECT 'Hello Wold';

However, I have been unable to find a way to 'create something from nothing' in Pig.


Note that if you are able to load in 1 line of data or more, you could of course do the following:

  1. Load
  2. limit 1
  3. Generate Hello World

However, this is not what I am looking for. I hope to find a way to create a hello world example without having any kind of data available.

In case you wonder: I am mostly asking this out of curiosity, but it could also be convenient to speed up the testing of code by just doing something in code (without having to touch the file system).


Solution

  • After all these years, I am now fairly confident that it is NOT possible to create something from nothing with Apache Pig.