Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4477

remove numpy from RDDSampler of PySpark

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.1, 0.9.1, 1.0.2, 1.1.0, 1.2.0
    • 1.2.0
    • PySpark
    • None

    Description

      In RDDSampler, it try use numpy to gain better performance for possion(), but the number of call of random() is only (1+faction) * N in the pure python implementation of possion(), so there is no much performance gain from numpy.

      numpy is not a dependent of pyspark, so it maybe introduce some problem, such as there is no numpy installed in slaves, but only installed master, as reported in xxxx.

      It also complicate the code a lot, so we may should remove numpy from RDDSampler.

      Attachments

        Issue Links

          Activity

            People

              davies Davies Liu
              davies Davies Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: