File tree Expand file tree Collapse file tree 5 files changed +32
-1
lines changed
Expand file tree Collapse file tree 5 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1- Blog URL: http://gethue.tumblr.com/post/56804308712/hadoop-tutorial-how-to-access-hive-in-pig-with
1+ Blog URL
2+ ========
3+
4+ [How to access Hive in Pig with HCatalog in Hue](http://gethue.tumblr.com/post/56804308712/hadoop-tutorial-how-to-access-hive-in-pig-with)
5+
Original file line number Diff line number Diff line change 1+ Blog URL
2+ ========
3+ Coming soon
4+
5+ git clone https://github.com/romainr/hadoop-tutorials-examples.git
6+ cd hive-udf
7+
8+ # Just use myudf.jar
9+
10+ # Or compile it with:
11+ javac -cp $(ls /usr/lib/hive/lib/hive-exec*.jar):/usr/lib/hadoop/hadoop-common.jar org/hue/udf/MyUpper.java
12+ jar -cf myudfs.jar -C . .
13+
Original file line number Diff line number Diff line change 1+
2+ package org .hue .udf ;
3+
4+ import org .apache .hadoop .hive .ql .exec .UDF ;
5+ import org .apache .hadoop .io .Text ;
6+
7+
8+ public final class MyUpper extends UDF {
9+ public Text evaluate (final Text s ) {
10+ if (s == null ) { return null ; }
11+ return new Text (s .toString ().toUpperCase ());
12+ }
13+ }
14+
You can’t perform that action at this time.
0 commit comments