title: Apache Pig not working
body: <p>I'm working on apache pig. I have installed Hadoop and it is running sucessfully. But when I enter the 'pig' command on the terminal , I do not get any output. I tried using 'pig -x local' but it gives the following error</p>
  
  <pre><code>pig: invalid option -- 'x'
  
  usage: pig
  </code></pre>
  
  <p>I made the following changes in bashrc and profile -</p>
  
  <p>bashrc-</p>
  
  <pre><code>export PIG_HOME=/usr/local/pig-0.12.1
  export PATH=$PATH:$PIG_HOME/bin
  export PIG_CLASSPATH=$HADOOP_HOME/etc/hadoop/
  </code></pre>
  
  <p>profile-</p>
  
  <pre><code>export PIG_HOME=/usr/local/pig-0.12.1
  
  export PATH=$PATH:$PIG_HOME/bin:$HADOOP_HOME/bin
  </code></pre>
  
  <p>I cannot figure out why the output is not being displayed. Can you please help? Thanks in advance.</p>