apache/tajo — pull request #251 by blrunner (2014-11-18 09:36:44+00:00)
Title: TAJO-1033: Implement a FileAppender for ElasticSearch.

I implemente ElasticSearchAppender. You can load tajo table data to elasticsearch index as follows:

1. Create an elasticsearch index and index type.
ex) index: radio, index type: artitists

2. Create a tajo for match to an elasticsearch index. For reference, you must use elasticsearch for storage type.
ex) CREATE TABLE estable1 (id int, name text, score float, type text)
STORED AS elasticsearch
with ('elasticsearch.cluster'='elasticsearch',
'elasticsearch.nodes'='localhost:9300',
'elasticsearch.resources'='radio/artists',
'elasticsearch.replication'='1',
'elasticsearch.bulk.item.size'='1000');

3. Load tajo data to an elasticsearch index with sql.
ex) insert overwrite into estable1 select * from table1;

This patch is not complete.I'll write a documentation and implement a few methods to improve performance. Also we need to allow for users to change last task numbers. Because lots of tasks for storage will cause law performance of an elasticsearch cluster.