Image with examples from https://www.tutorialspoint.com/apache_pig/apache_pig_join_operator.htm
Based on hakanserce/docker-apache-pig, adds examples
docker pull visgean/baked-pig
In order to use the Docker image use:
docker run -i -t visgean/baked-pig /etc/bootstrap.sh -bash
In order to use the Docker image use:
docker run -i -t visgean/baked-pig /etc/bootstrap.sh -bash
Start pig in local mode:
pig -x local
customers = LOAD '/examples/customers.txt' USING PigStorage(',')
as (id:int, name:chararray, age:int, address:chararray, salary:int);
orders = LOAD '/examples/orders.txt' USING PigStorage(',')
as (oid:int, date:chararray, customer_id:int, amount:int);
coustomer_orders = JOIN customers BY id, orders BY customer_id;
Dump coustomer_orders;
Content type
Image
Digest
Size
918.5 MB
Last updated
almost 7 years ago
docker pull visgean/baked-pig