Giter Club home page Giter Club logo

sparkdemo's Introduction

SparkDEMO Travis Travis Travis Travis

  1. 包含Spark所有的操作
    a.包含官方的ml、mllib、streaming、sql等操作DEMO
    b.包含所有常用算子的操作DEMO

  2. 已修正为maven版本

  3. 有详细的中英注释

  4. spark-api版本更新至新版

  5. 增加scala-spark

2019年08月06日

Spark operation DEMO

  1. Include all Spark operations A. Contains official operations such as ml, mllib, streaming, sql, etc. DEMO B. Operation DEMO containing all common operators

  2. Modified to Maven version

  3. Detailed Chinese and English annotations

  4. Spark-api version updated to new version

  5. scala-spark

2019-08-06

远程执行模式

  1. 根据需要,将/data目录下的文件上传到hdfs相同的目录下
    ------data
    ------------mllib
    ------------resources

  2. mvn package生成jar包。指定jar包文件地址。
    conf.setJars(ArrayString)

  3. 通过SparkUtils选择运行模式
    JavaSparkContext sc = SparkUtils.getLocalSparkContext(TestStorageLevel.class);
    JavaSparkContext sc = SparkUtils.getRemoteSparkContext(TestStorageLevel.class);

  4. 使用远程模式,添加集群配置文件到resources目录下
    core-site.xml
    hdfs-site.xml
    yarn-site.xml

  5. 如果需要加载文件,根据运行模式选择文件加载方式。
    JavaRDD text = sc.textFile(Constant.LOCAL_FILE_PREX +"/data/resources/test.txt");
    JavaRDD text = sc.textFile(/data/resources/test.txt");

sparkdemo's People

Contributors

huangyueranbbc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sparkdemo's Issues

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.