Re: Command works inside hive but not outside

2011-10-02 Thread Mark Kerzner
Chinna, I wish it were that simple. This short command works, hive -e 'select * from apache_logs'; but a long command where I load a jar first, doesn't, hive -e 'add jar target/WebLogAnalyzer-1.0-SNAPSHOT-jar-with-dependencies.jar; create temporary function get_browser as "com.shmsoft.weblogana

UDF return custom Writable from evaluate method

2011-10-02 Thread Jason Rutherglen
I created a UDF with the following method signature, however there is an error when executing a simple query on it: PacketBytesWritable evaluate(Text text) What does the error mean? FAILED: Error in semantic analysis: java.lang.IllegalArgumentException: Error: name expected at the position 20 of