Giter Site home page Giter Site logo

pyspark_demo's Introduction

两年前的项目,不包括具体业务内容,只做参考

用pyspark做用户画像的启动程序
两个程序一个跑历史数据,一个跑实时数据,可以同时跑,数据会自动合并到Hbase中。

his.zip 跑历史数据程序
运行命令:
spark-submit --deploy-mode cluster --master yarn  --conf spark.storage.memoryFraction=0.4   --conf spark.shuffle.memoryFraction=0.3 --py-files his.zip his.py

realtime_kafka.zip 跑实时数据程序
运行命令:
spark-submit  --deploy-mode cluster --master yarn --jars spark-streaming-kafka-0-8-assembly_2.11-2.2.0.jar --py-files realtime_kafka.zip realtime_kafka.py

hadoop 资源管理器
http://10.1.4.189:8088/cluster

pyspark_demo's People

Contributors

caijinxu avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

924485665

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.