programmer group

Add hive custom function

After writing UDF or udaf functions in Java, how does hive use these custom functions? <!– more –> 1. Create a directory for the jar package on HDFS hadoop fs -mkdir -p /hive/private/lib 2 upload the packed jar package to the created directory hadoop fs -put gps_to_bd.jar /hive/private/lib Hadoop FS - LS / hive / private / lib - check whether the upload is successful 3 Create function Hive function can be divided...

programmer group

Sed command of Linux

Sed matches the specified line in the file [email protected]/c/demo>cat test.txt first line second line third line Mustbear @ / C / demo > sed - n '2p' test.txt output line 2 second line Mustbear @ / C / demo > sed - n '2,3p' test.txt ා output lines 2-3 second line third line Sed line content replacement [email protected]/c/demo>cat test.txt first line second line third line hello,world| Mustbear @ / C / demo...