Running the Pig demo (deprecated) 

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

Hadoop is deprecated for use with DataStax Enterprise. DSE Hadoop and BYOH (Bring Your Own Hadoop) are deprecated. Pig is also deprecated and will be removed when Hadoop is removed.

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

Start Pig 

Procedure

Note: DataStax Demos do not work with either LDAP or internal authorization (username/password) enabled.

  1. Start DataStax Enterprise as an analytics (Hadoop) node:
    • Installer-Services and Package installations:
      1. Set HADOOP_ENABLED=1 in /etc/default/dse.
      2. Start an analytics node:
        $ sudo service dse start
      By default, the Hadoop 2.7.1 client libraries are used, except for Hive and Pig, which use Hadoop 1.0.4 libraries with built-in Hadoop trackers.
    • Installer-No Services and Tarball installations:
      $ DSE_install_location/bin/dse cassandra -t
  2. Start the Pig shell:
    • Installer-Services and Package installations: $ dse pig
    • Installer-No Services and Tarball installations: $ DSE_install_location/bin/dse pig
    By default, the Hadoop 2.7.1 client libraries are used, except for Hive and Pig, which use Hadoop 1.0.4 libraries with built-in Hadoop trackers.

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