错误 1070 Pig 无法使用导入解析 PigSorage:
我正在尝试阅读用猪的文件,并且标题中有错误。
data = load'/user/cloudera/pigexample/命令'使用pigsorage('\ n')为 (命令:chararray);
dumpdata; 该文件包含以下内容:
**SOF**
whoami
pwd
ls
say
saw
source
<1>
source
<1>
exit
**EOF**
**SOF**
where's
<1>
我不明白为什么我会遇到错误的定界符是换行符,我也尝试使用另一个文件,其定界符是TAB('\ t'),并且它也不起作用。有人知道定界符是什么吗? PS:我不知道该问题上的标签。
如上所述,我希望它可以使用指示的定界符打开文件,但不起作用。 我已经尝试了\ t \ n
I'm trying to read a file with pig and I have the error indicated in the title.
data = LOAD '/user/cloudera/pigexample/commands' USING PigSorage('\n') as
(command:chararray);
DUMPdata;
The file contains the following:
**SOF**
whoami
pwd
ls
say
saw
source
<1>
source
<1>
exit
**EOF**
**SOF**
where's
<1>
I don't understand why I get the error supposedly its delimiter is the line break, I'm also trying with another file whose delimiter is the tab ('\t') and it doesn't work either. Does anyone know what the delimiter is? PS: I don't know what tag to put on the question.
As explained above, I expected it to open the file with the indicated delimiter but it does not work.
I have already tried with \t \n
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经看到了我的错误
I have already seen my mistake