I wrote UDF function
1 import org.apache.hadoop.hive.ql.exec.UDF; 2 import org.apache.hadoop.io.Text; 3 4 public final class Lower extends UDF { 5 public Text evaluate(final Text s){ 6 if (s == null){ 7 return null; 8 } 9 10 return new Text(s.toString().toLowerCase()); 11 } 12 }
Directly at the command line: mvn clean package
Lay the jar package
Upload to linux
rz -b
Select package import jar