猪安装验证失败

时间:2015-08-08 14:07:34

标签: hadoop apache-pig

我正在尝试在ubuntu中安装pig 0.13

我下载了pig-0.13.0.tar.gz并安装在$ HOME路径

之后我用下面的导出命令编辑.bashrc文件

请查看我的.bashrc文件

export HADOOP_HOME=$HOME/hadoop-1.2.1
export HADOOP_CONF_DIR=$HOME/hadoop-1.2.1/conf
export HADOOP_MAPRED_HOME=$HOME/hadoop-1.2.1/conf
export HADOOP_COMMON_HOME=$HOME/hadoop-1.2.1
export HADOOP_HDFS_HOME=$HOME/hadoop-1.2.1
###################JAVA############################
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-i36

export PATH=$PATH:$HOME/hadoop-1.2.1/bin

########################PIG#######################
export PIG_HOME=/home/user/pig-0.13.0
export PATH=$PATH:$PIG_HOME/bin

但是,当我尝试测试猪是否正确开始时......它没有被激活..

我重启了我的机器并应用了源.bashrc,但没有任何帮助

user@ubuntu:~$ ls
Desktop    examples.desktop     Music       pig-0.13.0.tar.gz  Templates
Documents  hadoop-1.2.1         Pictures    Public             Videos
Downloads  hadoop-1.2.1.tar.gz  pig-0.13.0  surender
user@ubuntu:~$ hadoop version
Warning: $HADOOP_HOME is deprecated.

Hadoop 1.2.1
Subversion https://svn.apache.org/repos/asf/hadoop/common/branches  /branch-1.2 -r 1503152
Compiled by mattf on Mon Jul 22 15:23:09 PDT 2013
From source with checksum 6923c86528809c4e7e6f493b6b413a9a
This command was run using /home/user/hadoop-1.2.1/hadoop-core-1.2.1.jar
user@ubuntu:~$ pig -help
pig: invalid option -- 'h'
usage: pig
user@ubuntu:~$ 

我的$ HOME是/ home / user

有人可以帮我吗?

0 个答案:

没有答案