Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig, mail # user - question:about  PigStorag


Copy link to this message
-
question:about  PigStorag
笨猫 2013-05-23, 04:54
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 !