You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by 笨猫 <wy...@qq.com> on 2013/05/23 07:43:23 UTC
回复: question:about PigStorag
thank you! you are right
------------------ 原始邮件 ------------------
发件人: "felix gao"<gr...@gmail.com>;
发送时间: 2013年5月23日(星期四) 中午1:22
收件人: "user"<us...@pig.apache.org>;
主题: Re: question:about PigStorag
I think you spelled the storage wrong.
it is PigStorage() not PigStorag()
On Wed, May 22, 2013 at 9:54 PM, 笨猫 <wy...@qq.com> wrote:
> I was login pig success:
> ----------------------------------------------------------------
> 2013-05-23 12:50:15,005 [main] INFO org.apache.pig.Main - Apache Pig
> version 0.11.1 (r1459641) compiled Mar 22 2013, 02:13:53
> 2013-05-23 12:50:15,005 [main] INFO org.apache.pig.Main - Logging error
> messages to: /opt/hadoop/pig/pig-0.11.1/bin/pig_1369284615000.log
> 2013-05-23 12:50:15,031 [main] INFO org.apache.pig.impl.util.Utils -
> Default bootup file /home/hadoop/.pigbootup not found
> 2013-05-23 12:50:15,235 [main] INFO
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine -
> Connecting to hadoop file system at: hdfs://NameNode:9000
> 2013-05-23 12:50:15,546 [main] INFO
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine -
> Connecting to map-reduce job tracker at: NameNode:9001
> grunt> A = load
> '/user/hive/warehouse/sales_all_report_8l/dt=PGSETRT/dy=2012' using
> PigStorag('\u000A');
> -----------------------------------------------------------------
> error:
> 2013-05-23 12:53:43,216 [main] ERROR org.apache.pig.tools.grunt.Grunt -
> ERROR 1070: Could not resolve PigStorag using imports: [,
> org.apache.pig.builtin., org.apache.pig.impl.builtin.]
> Details at logfile: /opt/hadoop/pig/pig-0.11.1/bin/pig_1369284615000.log
>
> my question:
> I store data in hive ,hive default use '\010' split field.
> how can i read hive data from pig ?
>
> thank you !