ubuntu下pig报错ERROR 2999: Unexpected internal error. Failed to create DataStorage的解决
2019-03-04 00:10:03,998 [main] ERROR org.apache.pig.Main - ERROR 2999: Unexpected internal error. Failed to create DataStorage
.bashrc中要按照以下内容设置,此错误的出现就是因为此前没有设置红字部分。
vim .bashrc
PATH=$PATH:$HOME/bin:/usr/pig/pig-0.9.2/bin:/usr/hadoop/hadoop-0.20.2/bin
JAVA_HOME=/opt/jdk1.6.0_45
PIG_CLASSPATH=/opt/hadoop-0.20.2/conf/conf
export PATH
export JAVA_HOME
export PIG_CLASSPATH
参考:http://www.dataguru.cn/hadoop-133565-1-1.html
path部分,也可以写在/etc/environment中,修改以后要重启,有时source /etc/environment无效。