猪在咕噜声模式 [英] Pig in grunt mode

查看:31
本文介绍了猪在咕噜声模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Windows 中安装了 cygwin、hadoop 和 pig.配置看起来没问题,因为我可以在批处理和嵌入模式下运行 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 模式下运行 pig 时,发生了一些奇怪的事情.让我解释.我尝试运行一个简单的命令,如

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代码,然后在pig命令行中无法识别弯曲引号,只允许直引号,因此输入流不会结束.我的建议是你应该注意代码中的有效字符,特别是当你只是将代码复制到命令行中时,这总是会导致意外错误.

I came across the same problem as you yesterday,and I spent one whole day to find what was wrong with my pig or my hotkey and fix it finally. I found that it's only because I copied the pig code from other resource,then the bending quotation marks cannot be identified in pig command line, which only admits straight quotation marks, so the input stream would not end. My suggestion is that you should take care of the valid characters in the code, especially when you just copy codes into the command line, which always causes unexpected faults.

这篇关于猪在咕噜声模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆