Git Product home page Git Product logo

cs440_hw6's Introduction

CS440-HW6

  1. Check whether you have installed pyspark, if not, use command pip3 install pyspark to install PySpark library.

  2. PySpark will depends on Java environment. You need to use command export JAVA_HOME=$YOUR_PATH (replace $YOUR_PATH with your own path) to setup java environment. When you start a new terminal window, make sure you have indicated the $JAVA_HOME in that terminal before you run your program. If you are using Purdue server pod0-0, you can use command export JAVA_HOME="/usr/lib/jvm/java-1.17.0-openjdk-amd64".

  3. Use command ./auto_script.sh to test your program result. This script will automically stop and tell you your result's correctness.

  4. PySpark uses checkpoint protocol to remember your global states. When you run your program in the next time, PySpark will automically load your global states that generated previously, which will cause mistakes. So, when you manually testing your program, use command rm -rf checkpoint_topk/ to delete previous global state. If you use auto_script.sh, the script will do deletion automatically.

Code borrowed from Xi Pang.

cs440_hw6's People

Contributors

vivian-yan219 avatar px1900 avatar b-sudo 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.