猪在grunt模式 [英] Pig in grunt mode
问题描述
我在windows中安装了cygwin,hadoop和pig。配置似乎确定,因为我可以批处理和嵌入式模式运行猪脚本。
I have installed cygwin, hadoop and pig in windows. The configuration seems ok, as I can run pig scripts in batch and embedded mode.
当我尝试在grunt模式下运行猪,发生奇怪的事情。让我解释。
我尝试运行一个简单的命令,如
When I try to run pig in grunt mode, something strange happens. Let me explain. I try to run a simple command like
grunt> A = load 'passwd' using PigStorage(':');
当我按Enter键时,没有任何反应。光标移动到下一行,并且 grunt>
提示符不再出现。看来我正在输入文本编辑器。
When I press Enter, nothing happens. The cursor goes to the next line and the grunt>
prompt does not appear at all anymore. It seems as I am typing in a text editor.
有没有类似的事情发生在你身上?你有什么想法我该如何解决这个?
Has anything similar ever happened to you? Do you have any idea how can I solve this?
推荐答案
Pig shell挂在cygwin。但是猪脚本已成功从猪脚本文件中执行。
Pig shell hangs up in cygwin. But pig script successfully executed from pig script file.
如下:
$pig ./user/input.txt
对于本地模式:
pig -x local ./user/input.txt
这篇关于猪在grunt模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!