Re: Running commands at hive cli or hive thirft startup

2012-12-14 Thread Navis류승우
I've booked it on https://issues.apache.org/jira/browse/HIVE-3797 2012/12/14 Dean Wampler : > What about using "hive -i ~/.hiverc -f script"? I haven't tried it, but I > assume it reads the specified "rc" file in the batch mode case. True? > > > On Fri, Dec 14, 2012 at 3:41 AM, Mark Grover > wrot

Re: Running commands at hive cli or hive thirft startup

2012-12-14 Thread Dean Wampler
What about using "hive -i ~/.hiverc -f script"? I haven't tried it, but I assume it reads the specified "rc" file in the batch mode case. True? On Fri, Dec 14, 2012 at 3:41 AM, Mark Grover wrote: > No, .hiverc only works for CLI. > > UDFs are tricky. The only way I can think of is to add them to

RE: Running commands at hive cli or hive thirft startup

2012-12-14 Thread Vivek Mishra
https://cwiki.apache.org/Hive/plugindeveloperkit.html ? ~ From: Mark Grover [grover.markgro...@gmail.com] Sent: 14 December 2012 15:11 To: user@hive.apache.org Subject: Re: Running commands at hive

Re: Running commands at hive cli or hive thirft startup

2012-12-14 Thread Mark Grover
No, .hiverc only works for CLI. UDFs are tricky. The only way I can think of is to add them to the function registry (https://github.com/apache/hive/blob/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java) and recompile Hive. On Mon, Dec 10, 2012 at 8:01 AM, John Omernik wrot

Re: Running commands at hive cli or hive thirft startup

2012-12-10 Thread विनोद सिंह
I did not tried thrift, so not sure whether this will work or not. Thanks, Vinod On Mon, Dec 10, 2012 at 9:31 PM, John Omernik wrote: > Will that work for my thrift server connections? > > > On Sun, Dec 9, 2012 at 7:56 PM, विनोद सिंह wrote: > >> Put a .hiverc file in your home directory contai

Re: Running commands at hive cli or hive thirft startup

2012-12-10 Thread John Omernik
Will that work for my thrift server connections? On Sun, Dec 9, 2012 at 7:56 PM, विनोद सिंह wrote: > Put a .hiverc file in your home directory containing commands, Hive CLI > will execute all of them at startup. > > Thanks, > Vinod > > On Sun, Dec 9, 2012 at 10:25 PM, John Omernik wrote: > >> I

Re: Running commands at hive cli or hive thirft startup

2012-12-09 Thread विनोद सिंह
Put a .hiverc file in your home directory containing commands, Hive CLI will execute all of them at startup. Thanks, Vinod On Sun, Dec 9, 2012 at 10:25 PM, John Omernik wrote: > I am looking for ways to streamline some of my analytics. One thing I > notice is that when I use hive cli, or connec