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 >> Loading text file


+
JAGANADH G 2012-10-03, 16:49
+
Alan Gates 2012-10-03, 19:47
Copy link to this message
-
Re: Loading text file
You will have to write your own loader. You will have to modify the InputFormat which uses \n \r or EOF as split delimiter.

-----JAGANADH G <[EMAIL PROTECTED]> wrote: -----
To: [EMAIL PROTECTED]
From: JAGANADH G <[EMAIL PROTECTED]>
Date: 10/03/2012 10:20PM
Subject: Loading text file

Hi All

Is there any way to load a text file as single record (text:chararray) in
Pig.

I am trying to load a bunch of text files from a directory . But it keeps
each line as single record.
--
**********************************
JAGANADH G
http://jaganadhg.in
*ILUGCBE*
http://ilugcbe.org.in
=====-----=====-----====Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
+
Jonathan Coveney 2012-10-04, 21:24
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