cmd hadoop 不能运行_Windows上的Apache Pig给出了“ hadoop-config.cmd”未被识别为内部或外部命令的信息。运行“猪-x本地”时出错...

If you are stuck at running Apache Pig on windows due to an error like

hadoop-2.4.0\bin\hadoop-config.cmd' is not recognized as an internal or external command,

operable program or batch file.

though you are having Hadoop running perfectly on windows

解决方案

Answer, which was originally added by the asker inside the quesiton.

These steps may help you.

Troubleshooting steps

open the file pig.cmd in any editor like notpad / notepad++

look for the line set HADOOP_BIN_PATH=%HADOOP_HOME%\bin

replace this with set HADOOP_BIN_PATH=%HADOOP_HOME%\libexec

What we did was that hadoop-config.cmd file was not being found by pig so we pointed it with the correct one. You may first find where the hadoop-config.cmd file is and replace it with appropriate path. This was what my hadoop-2.4.0 was having.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值