日志文件文件在Pig中进行处理。?

时间:2016-08-27 13:57:47

标签: hadoop mapreduce hive apache-pig

我有以下文件格式,我在apache pig处理,这个文件是非结构化文件格式化的。你能不能指出。

我需要猪脚本......

当前档案格式:

"GET","https://01.0.01.03:8443/open/config/ui/configuration","{}","{""Accept"":[""application/json, text/javascript, */*; q=0.01""],""Accept-Encoding"":[""gzip, deflate""],""Accept-Language"":[""en-US;q=1""],""Cache-Control"":[""no-cache""],""Connection"":[""keep-alive""],""Content-Type"":[""application""],""Host"":[""01.0.01.01:8443""],""Referer"":["""],""User-Agent"":[""Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)""],""X-Open-NoSession"":[""true""],""X-Open-Username"":[""anonymous""],""X-Requested-With"":[""XMLHttpRequest""]}","{}",,"SUCCESSFUL",,,"235","MILLISECONDS","[""open-reg""]"

输出格式:

GET,https://01.0.01.03:8443/open/config/ui/configuration,,application/json, gzip,en-US,no-cache,keep-alive,application,01.0.01.01,8443,,Mozilla/5.0,true,anonymous,XMLHttpRequest,NULL,NULL,SUCCESSFUL,NULL,NULL,235,MILLISECONDS,open-reg

请帮助我,为本案例研究.....

0 个答案:

没有答案