Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Reading simple json file


Copy link to this message
-
Reading simple json file
Hi,

I am trying to read simple json data as:
d =LOAD 'json_output' USING
JSONLOADER(('ip:chararray,_id:chararray,cats:[chararray]');
But I am getting this error:
2013-09-23 14:33:17,127 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1070: Could not resolve JSONLOADER using imports: [,
org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Details at logfile: /home/user/mohit/pig-0.11.1-src/pig_1379969371188.log
What am i missing?
+
jamal sasha 2013-09-23, 21:40
+
Pradeep Gollakota 2013-09-23, 22:17
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB