New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hive Elasticserach insert a date or timestamp #61
Comments
Hi, Mapping is currently work in progress - we're working on two main features:
The current code base uses implicit naming for 2 and in case of 1 works for most types (though there are some corner cases where it fails). Cheers |
Timestamp for Hive and datetime for Pig are supported in master. P.S. I recommend using the Timestamp type in Hive since you get to use the built-in UDFs. |
Hi @costin In Hive, I have a column 'c1' of timestamp datatype with value as '2017-01-30 23:41:06'. In HIVE-ES integration (spark job) with third party jar 'elasticsearch-hadoop-2.4.0.jar' in spark job, 'c1' is indexed with vale '1485848466000'. In short, Here hive date and ES date is different, could you please help here. |
Hello everyone
I am right now playing around with this great piece of sotware.
I have looked at the code but not found a clear answer.
Say I want to push from hive into an elasticsearch index a date field how would I go about writing it?
CREATE EXTERNAL TABLE es_wrtie (
clientId String,
mydate timestamp||string)
STORED BY 'org.elasticsearch.hadoop.hive.ESStorageHandler'
TBLPROPERTIES('es.resource' = 'test/test/')
since hive only knows timstamps would I use these, or put a strign and let elasticesearch do the trick if I format it correctly?
thnaks for your help and software
The text was updated successfully, but these errors were encountered: