Skip to main content

Integration: PyCOMPSs and HDFS

The abstraction that is provided by this version is exactly the same as that provided by the version in java. Please read the Java version before continuing.

How to install the HDFSPyCOMPSs module

This module is available at PyPi,

    $ pip3 install hdfs-pycompss

After install it, you need set up some environment variables:

  • HADOOP_HOME: the root of your installed Hadoop distribution. Often has lib/native/libhdfs.so.
  • JAVA_HOME: the location of your Java SDK installation.
  • CLASSPATH: must contain the Hadoop jars
export CLASSPATH=$CLASSPATH:`$HADOOP_HOME/bin/hdfs classpath --glob`

Because COMPSs don't copy all environment variables to all workers, it's important to set these variables at /etc/environment.

Example of how to use the API (without StorageAPI)

def wordcount(blk, word):
    from hdfspycompss.block import Block
    data = Block(blk).read_block()
    ...
    return result

def main():
    import hdfspycompss.hdfs import HDFS
    dfs = HDFS(host='localhost', port=9000)
    HDFS_BLOCKS = dfs.find_blocks('/input.data')

    nFrag = len(HDFS_BLOCKS)
    result = [{} for f in range(nFrag)]
    for f, blk in enumerate(HDFS_BLOCKS):
        result[f] = wordcount(blk, 'word')
    ...

Metadata

Release files for hdfs-pycompss 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hdfs-pycompss 0.4
File Size Uploaded Provenance Actions
hdfs-pycompss-0.4.tar.gz 10.4 kB Without provenance Details for hdfs-pycompss-0.4.tar.gz

Release files / hdfs-pycompss-0.4.tar.gz

Download URL hdfs-pycompss-0.4.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
490e249d5bf4e542fa3ba8918c226abc7ff06c89a5c3a0f437691756b87c7529
BLAKE2b-256 checksum
How to use checksums
f007cb943776d705ed976f71b8f43869f0f5834972d5a2a0dee74d0a42634839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Security for hdfs-pycompss 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page