我安装了Pig。但是当我运行命令来检查pig版本时。它说的是无效选项。我已经编辑了bashrc文件。
在执行source.bashrc之后,我遇到以下错误:
hduser@ubuntu:~$ source .bashrc
bash: export: '=': not a valid identifier
bash: export: '/usr/local/pig': not a valid identifier
bash: export: '=': not a valid identifier
bash: export: 'PATH:/usr/local/pig/bin': not a valid identifier
bash: export: '=': not a valid identifier
bash: export: '/usr/local/hadoop/conf': not a valid identifier
1条答案
按热度按时间a8jjtwal1#
这个
export
添加到.bashrc
文件周围不应包含空格=
编辑~/.bashrc
,自从$PATH
变量未设置,请使用可执行文件的绝对路径。添加以下行
Pig
(摘自注解)到bashrc文件,