Export results
Solution:
All searched on the Internet are to add
a1.sinks.k1.hdfs.fileType = DataStream
a1.sinks.k1.hdfs.writeFormat = Text
This is to be added, the default data format exported by flume is SequenceFile
I added this, it's still the garbled code above
Check the input file format, just change the input file format to utf-8, and the output file will not be garbled
Check and modify the file format
Use Notepad to open the lower right corner is the encoding format of the current file
File->Save as->Encoding->utf-8