RE: GenericUdf and Jdbc issues

2012-06-01 Thread Maoz Gelbart
lto:edlinuxg...@gmail.com] Sent: Tuesday, May 29, 2012 4:58 PM To: user@hive.apache.org Subject: Re: GenericUdf and Jdbc issues So. this.getResourceAsStream(filename) is a very tricky method to get right especially in hive which you have the hive-classpath, the hadoop-classpath, the hive-jdbc c

Re: GenericUdf and Jdbc issues

2012-05-29 Thread Edward Capriolo
So. this.getResourceAsStream(filename) is a very tricky method to get right especially in hive which you have the hive-classpath, the hadoop-classpath, the hive-jdbc classpath. Especially when you consider that launched map/reduce tasks get there own environment and classpath. I had the same i

GenericUdf and Jdbc issues

2012-05-29 Thread Maoz Gelbart
Hi all, I am using Hive 0.7.1 over Cloudera's Hadoop distribution 0.20.2 and MapR hdfs distribution 1.1.1. I wrote a GenericUDF packaged as a Jar that attempts to open a local resource during its initialization at initialize(ObjectInspector[] arguments) command. When I run with the CLI, everyth