This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dbaccess etl_db<<! | |
| call test1(); | |
| ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| awk -f file.dat.awk file.dat > new_file.dat | |
| ## file.dat.awk | |
| begin | |
| { | |
| print substr($0,1,254)"**************""*****"substr($0,19) | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class IOUtils { | |
| /** | |
| * 解压缩本地文件到hdfs。 | |
| * @param srcPath | |
| * @param tgtPath | |
| */ | |
| public static void gzipFileToHdfs(String srcPath,String tgtPath){ | |
| Configuration conf=new Configuration(); | |
| GzipCodec zip=new GzipCodec(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package SparkStreaming; | |
| import java.util.Arrays; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import org.apache.spark.SparkConf; | |
| import org.apache.spark.SparkContext; |
OlderNewer