存储Pig输出时出现语法错误

时间:2011-11-30 17:20:47

标签: apache-pig

我在将猪输出存储到文件时遇到了一些问题。这就是我用来存储的内容:

  

'STORE rel INTO'简单'; “

如果我转储'rel'我得到:

>(car,0.5,(door,tire,jello,truck,random))
(toy,0.5,(jeep,bunny toy))
(door,0.5,(car,jello,random))
>(jeep,0.5,(toy,bunny toy))

我在文件中得到的是:

<Yulias-MacBook-Pro:~ yuliatolskaya$ /Users/yuliatolskaya/Documents/misc/pig_clustering/simple/part-r-00000 ; exit;
/Users/yuliatolskaya/Documents/misc/pig_clustering/simple/part-r-00000: line 1: syntax  error near unexpected token `('
/Users/yuliatolskaya/Documents/misc/pig_clustering/simple/part-r-00000: line 1: `car    0.5 (door,tire,jello,truck,random)'
logout
[Process completed] >

我真的不确定问题是什么,因为日志文件中没有错误...请帮忙!

0 个答案:

没有答案