Design and Construction of Distributed JS Parsing System

Author
HuangWei
Advisor
ShenBo
School
Beijing Jiaotong University
Major
Communication and Information System
Classification
TP312.1
Degree
Master's thesis
Year
2014
Downloads
25
Citations
0

Request the full text

Abstract

With the rapid development of the Internet technology, webpages are becoming more and more beautiful. Webpage programming technology includes not only HTML and CSS, but also kinds of dynamic script languages. JavaScript, as the representative of script languages, is very powerful. But JavaScript programming is more complex than usual static webpage technology. In the field of search engine and information acquisition, it’s very difficult to get the information hidden in the scripts.So the purpose of this paper is to design and construct a system which can distributed parse JavaScript hidden in HTML.This paper has two major research directions:First, to design an algorithm which can extract JS scripts in HTMLs and parse them; Second, to analyse task scheduling algorithm and design a task scheduling algorithm of this system by using Hadoop distributed computing technology. Through the research of the rules of JavaScript grammer and its existence in HTMLs, this paper designed the process and algorithm of JavaScript extraction based on JavaScript parsing engine. This is the first module. Through doing research on the Map/Reduce task scheduling algorithm, according to the characteristics of JavaScript parsing task and distributed environment, this paper also figured out the most suitable Map/Reduce task scheduling algorithm for the system to support reasonable operation of JavaScript parsing task. And then a distributed JS parsing system was constructed. In order to check the accuracy and the performance of the system, this paper had a test on the system, summarizes deficiencies and suggests improvements at last.The distributed JS parsing system can parse a large number of JS scripts in HTMLs efficiently and quickly. The experimental results show that this system can extract the text messages and urls contained in JS scripts efficiently. Thereby the research of this paper can provide a reliable technical support for the field of search engine, public opinion analysis and data acquisition.

Table of contents

Thanks 5-6 Chinese Abstract 6-7 ABSTRACT 7-8 catalog 8-10 1 introduction 10-15 1.1 background 10-11 1.2 Research Status 11-12 1.3 work content 12-13 1.4 thesis structure 13-15 2 JS parsing and distributed computing 15-29 2.1 JavaScript parsing 15-20 <br / > 2.1.1 JavaScript scripting language 15-16 2.1.2 JavaScript parsing engine 16-20 2.2 Hadoop distributed computing 20-28 <br / > 2.2.1 distributed Computing 20-21 2.2.2 Hadoop framework 21-22 2.2.3 Map / Reduce research 22-24 2.2.4 HDFS file access 24-28 2.3 chapter Summary 28-29 3 JS parsing and task scheduling algorithm 29-43 3.1 overall system structure 29-30 3.2 JavaScript extraction and operating environment 30-34 3.2.1 JavaScript extraction and analytical procedures 30-31 3.2.2 JavaScript extraction algorithm 31-33 3.2.3 JavaScript parsing object 33-34 3.3 JavaScript parsing task scheduling 34-42 3.3.1 Map / Reduce original scheduling algorithm 35-36 3.3.2 capacity scheduling algorithm 36-37 3.3.3 fair scheduling algorithm 37-39 3.3.4 adaptive scheduling algorithm 39-40 3.3.5 Map / Reduce scheduling algorithm summary 40-42 3.4 chapter Summary 42-43 4 JS distributed analysis system constructed 43-52 4.1 system workflow 43-44 4.2 web crawling 44-45 4.3 JavaScript extract 45-46 4.4 JavaScript parsing task scheduling 46-48 4.4.1 Datanode state acquisition 46-47 4.4.2 Namenode task scheduling 47-48 4.5 JavaScript parsing task scheduling 48-51 4.5.1 JavaScript resolve environmental management 48-49 4.5.2 Map / Reduce achieve 49-51 4.6 chapter Summary testing and Analysis 51-52 5 distributed JS parsing system 52-59 nbsp 5.1 test environment ; 52-53 5.2 software environment to build 53 5.3 system testing and analysis 53-57 5.3.1 system test 53-55 5.3.2 analysis 55-57 5.4 test results are summarized 57-58 <br / > 5.5 chapter Summary 58-59 6 summary and Outlook 59-62 6.1 paper summarizes 59-60 6.2 Looking 60-62 references 62-64 author Biography 64-66 dissertations dataset 66

Related dissertations

  1. Design and Implementation of Cloud Computing Platforms Monitoring System
    ZhangRenFeng ·Northeastern University ·2011 ·Master's thesis
  2. Fault Detection Mechanism in the Cloud Environment
    LiLiang ·Central South University ·2012 ·Master's thesis
  3. The Research and Design of Security Monitoring System Based on Embedded and Cloud Storage
    ChenYunLong ·Wuhan University of Technology ·2013 ·Master's thesis
  4. The Research on Data Processing Cloud Platform of Large Open Style Wharf Mooring Monitoring System
    SunLei ·Dalian Jiaotong University ·2013 ·Master's thesis
  5. Design and implementation of remote fault diagnosis center equipment based on Cloud Computing
  6. Research and Design of Smart Home System Based on Cloud Services
  7. Research of Distributed Support Vector Machine (SVM) Based on Hadoop Cloud Platform
    NiuKe ·Shanxi Normal University ·2014 ·Master's thesis
  8. Web Information Crawler of Design and Implementation Based on Computing Cluster
    WangWenSheng ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. MicroBlog User Ranking Research Based on Hadoop
  10. Research of Safety Monitoring Technology of Cloud Computing Platform Oriented Hadoop
    HeZuo ·Harbin Engineering University ·2013 ·Master's thesis
  11. Research on Key Technology of Hadoop-based Network Security Log Audit System
    ZhangMeng ·Harbin Engineering University ·2013 ·Master's thesis
  12. The Research of Data Stream Mining Based on Intrusion Detection
    ZhouZeXun ·Northwest Normal University ·2013 ·Master's thesis
  13. The Rearch on High Availability of Master-slave Cloud Platforms
    DengPeng ·Xiangtan University ·2013 ·Master's thesis
  14. Key Technologies and Application of Network Management System Based on Hadoop
    ZhangBaoShan ·Lanzhou University ·2013 ·Master's thesis
  15. Credibility-based Resource Scheduling Strategy under Cloud Platform
    JiaMeng ·Shandong Normal University ·2014 ·Master's thesis
  16. Design and Implementation of Distributed Index and Search System Based on Cloud Platform
    YangJianDan ·Northeastern University ·2011 ·Master's thesis
  17. Design and Implementation of the Sohu News Search Engine Based on Crawler
    LinWeiYe ·Sun Yat-sen University ·2012 ·Master's thesis
  18. Research and Design of Distributed Vertical Search Engine Based on Hadoop
    JieYaoWei ·Hebei University of Technology ·2012 ·Master's thesis
  19. The Research of Distributed Topic Detection Method
    XiaoJuan ·Harbin Institute of Technology ·2012 ·Master's thesis
  20. Design and Implemention of High Performance Text Clustering Algorithm Basic on Hadoop
    LinJiPo ·Northwest Normal University ·2013 ·Master's thesis