Re: difference between add file from a local disk and hdfs file

2015-05-16 Thread Nitin Pawar
Answering my own question either way the file was available via distributed cache. it was a spelling mistake in the code for me, correcting it solved the problem On Sun, May 17, 2015 at 2:46 AM, Nitin Pawar wrote: > Hi, > > I am trying to access a lookup file from a udf. > There are two ways I

Re: Output of Hive

2015-05-16 Thread Bhagwan S. Soni
Does your hive table has data? Please verify it first. On Sat, May 16, 2015 at 8:00 PM, Daniel Haviv < daniel.ha...@veracity-group.com> wrote: > It seems like your query returns no results,try using count to confirm. > > Daniel > > On 16 במאי 2015, at 14:40, Anand Murali wrote: > > Dear All: >

difference between add file from a local disk and hdfs file

2015-05-16 Thread Nitin Pawar
Hi, I am trying to access a lookup file from a udf. There are two ways I add lookup file to distribute cache option1: loading file from local disk to distributed cache this is for hive cli add file tmp.txt; option2: add a file from hdfs to distributed cache so that oozie can do it too add file

hive udf from oozie not working

2015-05-16 Thread Shushant Arora
I have a hive script , where I call a udf . Script works fine when called from local shell script. But when called from within oozie workflow, it throws an exception saying jar not found. add jar hdfs://hdfspath of jar; create temporary function duncname as 'pkg.className'; then on calling func

Re: Output of Hive

2015-05-16 Thread Daniel Haviv
It seems like your query returns no results,try using count to confirm. Daniel > On 16 במאי 2015, at 14:40, Anand Murali wrote: > > Dear All: > > I am new to hive so pardon my ignorance. I have the following query but do > not see any output. I wondered it maybe in HDFS and checked there and

Re: Output of Hive

2015-05-16 Thread Mich Talebzadeh
try to put the query in a file called .hql don't forget to add exit! to the bottom. Then run it as hive -f .hql > name.log The output will be streamed to that file. In general you should see both the execution and result. if you do the way I mentioned, you would only see the result from quer

Output of Hive

2015-05-16 Thread Anand Murali
Dear All: I am new to hive so pardon my ignorance. I have the following query but do not see any output. I wondered it maybe in HDFS and checked there and do not find it there. Can somebody advise hive> select year, MAX(Temperature) from records where temperature <> and (quality = 0 or qual

is there a way to map Hive Explain back to original script?

2015-05-16 Thread Xiaoyong Zhu
Hi Hive experts, I am wondering if there is a way to map the explain results back to the original script?(for example, know that which map/reduce stage are roughly corresponding to which piece of script). Manually analyze the explain output seems somewhat possible but I am wondering if there ar