Can you post your Pig script and your index mapping? Note that for non-native types (Pig doesn't support IP or geo) you
should define the mapping in advanced in ES since es-hadoop will map it as strings as otherwise.
On 2/5/2014 8:30 PM, Dumitru Pascu wrote:
Anyone tried this before?
Regards,
Dumitru
On Monday, February 3, 2014 9:49:10 PM UTC+2, Dumitru Pascu wrote:
How can I store GeoJson using PIG?
I tried to use TOBAG(lon, lat), however I got in the location stored in the following form:
location: [
{
0: 23.80323889
}
{
0: 44.31903611
}
]
Regards,
Dumitru
location = load '/user/root/locations/cells_location.txt' USING
PigStorage('|') as (name: chararray, latitude: double, longitude: double);
locationToStore = FOREACH location GENERATE name, TOBAG(longitude,
latitude) as mapLocation;
STORE locationToStore INTO 'location/cell' USING
org.elasticsearch.hadoop.pig.EsStorage();
For the last test I used elasticsearch-hadoop-1.3.0.M2.jar
Can you post your Pig script and your index mapping? Note that for
non-native types (Pig doesn't support IP or geo) you should define the
mapping in advanced in ES since es-hadoop will map it as strings as
otherwise.
On 2/5/2014 8:30 PM, Dumitru Pascu wrote:
Anyone tried this before?
Regards,
Dumitru
On Monday, February 3, 2014 9:49:10 PM UTC+2, Dumitru Pascu wrote:
How can I store GeoJson using PIG?
I tried to use TOBAG(lon, lat), however I got in the location stored
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to
--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/elasticsearch/3XWKWd-XiPk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/530E65BF.8040503%40gmail.com.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.