Re: FUNCTION HIVE to DAYS OF WEEK

2014-02-11 Thread John Meagher
The pom.xml file in the top level specifies the version of Hadoop and Hive it is compiling against. There are 2 ways to get things working: 1) Modify the HiveSwarm pom.xml file to reference the version of Hadoop and Hive you are using and recompile 2) Copy the day of the week UDF over into your ow

Re: FUNCTION HIVE to DAYS OF WEEK

2014-02-11 Thread Eduardo Parra Valdes | BEEVA
Hi, Jhon Thank very much for your response. this project is very interesting. I test your jar , but no work. I think that is because i have other version of hadoop. I have installed Hadoop 2.2.0 whit YARN. the Error is Diagnostic Messages for this Task: Error: java.lang.RuntimeException: Error

Re: FUNCTION HIVE to DAYS OF WEEK

2014-02-10 Thread John Meagher
Here's one implementation of it: https://github.com/livingsocial/HiveSwarm#dayofweekdate. The code for it is pretty straight forward: https://github.com/livingsocial/HiveSwarm/blob/master/src/main/java/com/livingsocial/hive/udf/DayOfWeek.java On Mon, Feb 10, 2014 at 4:38 PM, Stephen Sprague wro

Re: FUNCTION HIVE to DAYS OF WEEK

2014-02-10 Thread Stephen Sprague
oddly enough i don't see one here: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-DateFunctions however, you're not the only one finding something like this useful. cf. https://issues.apache.org/jira/browse/HIVE-6046 in the meantime it appears as though you'

FUNCTION HIVE to DAYS OF WEEK

2014-02-10 Thread Eduardo Parra Valdes | BEEVA
Hello! all I wish to find a function that returns hive day of the week (Monday, Tuesday .. etc) to enter a parameter (timestamp). Anyone have an idea of how to do it? -- [image: BEEVA] *Eduardo Parra Valdés* eduardo.pa...@beeva.com BEE OUR CLIENT WWW.BEEVA.COM Clara de