GithubHelp home page GithubHelp logo

tv-ratings's Introduction

Introduction

This is a project based on a realistic big data situation that given 10Gb size of TV ratings data to analise valuable information.

The project use a big data computing framework called Spark.

Java is used as the main programming language.

Recommend Intellij IDEA as develop environment

Warning: the size of this project is more than 1Gb,please consider the cost of network traffic before clone this project

项目环境的配置过程: OS :Ubuntu 18.04.1 LTS IDE: IntelliJ IDEA 2018.2.6 linux version

配置过程: 安装java8:

sudo apt-get install openjdk-8-jdk

安装hadoop: Hadoop 版本: 3.1.1 官网下载 安装过程: 首先必须保证有如下两个软件

  $ sudo apt-get install ssh
  $ sudo apt-get install rsync

Unpack the downloaded Hadoop distribution. In the distribution, edit the file etc/hadoop/hadoop-env.sh to define some parameters as follows:

 # set to the root of your Java installation
  export JAVA_HOME=/usr/java/latest

安装spark spark 版本i 2.4.0 官网下载 按照官网的安装步骤

运行项目: 用 IDEA 打开项目,点开gradle的面板,刷新gradle的状态,然后一直等待gradle下载各种资源和依赖的库文件 直到其显示build success 为止 当build完成后,就可以在./src/main/java/main.java 文件中,点击运行按钮或者右键点击运行按钮,程序就会在控制台中执行,同时伴随着大量的过程和结果的输出。由于运行时间较长(大约半小时到一小时),建议耐心等待,直到程序全部执行完正常退出。

注意事项: 项目除去原始数据为 1G大小,需要预先准备足够的磁盘空间

项目中电视节目类型对应的编号

节目类型 编号
儿童 1
综艺 2
电视剧 3
电影 4
体育 5
新闻 6
法制 7
财经 8
戏曲 9
购物 10
纪录片 11
科教 12
音乐 13
军事 14
道德文化 15

tv-ratings's People

Contributors

yunfeng0817 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.