96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# File 'lib/spark_toolkit/hadoop/yarn/log.rb', line 96
def self.format(formatables)
formatted = ""
formatables.each do |formatable|
formatable[:content].each do |content|
formatted << 'Container: ' << formatable[:container] << "\n"
formatted << 'Node: ' << formatable[:file] << "\n"
formatted << 'Log Type: ' << content[:log_type] << "\n"
formatted << 'Log Upload Time: ' << content[:upload_time] << "\n"
formatted << 'Log Length: ' << content[:length].to_s << "\n"
formatted << '='*80 << "\n"
formatted << content[:body] << "\n"*4
end
end
formatted
end
|