On the basis of successful pig installation. This article will use pig to analyze mobile internet logs, detailed procedures such as the following:
Write in front :
Mobile Internet log file phone_log.txt. The contents of the file and the Description section of the field include
Demand analysis
Displays the Internet traffic for each mobile phone number.
Complete the following steps in turn:
1, will Linux Local file phone_log.txt upload to HDFs
Run command dump C; View results after the above steps have been processed
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvywfyb25oywrvb3a=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvywfyb25oywrvb3a=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
View results after the above steps have been processed
OK, Live!
Using pig to analyze mobile internet logs