tar -xzvf pig-0.12.1.tar.gz
export PIG_HOME=~/pig-0.12.1 export PATH=$PATH:$PIG_HOME/bin
pig -help
The Pig command script
#
# Environment Variables
#
# JAVA_HOME The java implementation to use. Overrides JAVA_HOME.
#
# PIG_CLASSPATH Extra Java CLASSPATH entries.
#
# PIG_USER_CLASSPATH_FIRST If set, add user provided classpath entries to
# the top of classpath instead of appending them.
# Default is unset, i.e. the classpath entries are
# placed normally at the end of a pre-defined classpath.
#
# HADOOP_HOME/HADOOP_PREFIX Environment HADOOP_HOME/HADOOP_PREFIX(0.20.205)
#
# HADOOP_CONF_DIR Hadoop conf dir
#
# PIG_HEAPSIZE The maximum amount of heap to use, in MB.
# Default is 1000.
#
# PIG_OPTS Extra Java runtime options.
#
# PIG_CONF_DIR Alternate conf dir. Default is ${PIG_HOME}/conf.
#
# HBASE_HOME Optionally, the HBase installation directory.
# Defaults to ${PIG_HOME}/share/hbase
#
# HBASE_CONF_DIR - Optionally, the HBase configuration to run against
# when using HBaseStorage. Defaults to ${HBASE_HOME}/conf
4)/conf/pig.properties
hdfs dfs -chmod -R 777 /tmp
原文:http://www.cnblogs.com/lishouguang/p/4559226.html