Running the Pig demo

Examples demonstrate how to use Pig to work with CQL tables.

Three examples demonstrate how to use Pig to work with CQL tables.

Start Pig 

Procedure

  1. Start DataStax Enterprise as an analytics (Hadoop) node:
    • Packaged installs:

      Set HADOOP_ENABLED=1 in the /etc/default/dse file, and then use this command to start an analytics node:

      $ sudo service dse start
    • Tarball installs:
      $ DSE_install_directory/bin/dse cassandra -t
  2. Start the Pig shell:
    • Packaged installs: $ dse pig
    • Tarball installs: $ DSE_install_directory/bin/dse pig

    The Pig grunt prompt appears, and you can now enter Pig commands.