🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/poorlydefinedbehaviour/map_reduce_go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/poorlydefinedbehaviour/map_reduce_go

v0.0.0-20240731220946-9e940f2deec3
Source
Go
Version published
Created
Source

About

Implementation of a map reduce system inspired by MapReduce: Simplified Data Processing on Large Clusters.

Dependencies

Protocol buffer compiler and protoc-gen-go

Running

# Run the master
./dev/run.sh --http.port=9000 --grpc.port=8001 --workspace-folder="./tmp"

# Run N workers
./dev/run.sh --grpc.port=8010 --master.addr=":8001" --worker.memory=100Mi --workspace-folder="./tmp/worker_1"
curl -X POST localhost:8002/task \
-H 'Content-Type: application/json' \
--data-binary @- << EOF
{
  "file": "./dev/input_word_count.txt",
  "numberOfPartitions": 3,
  "numberOfMapTasks": 3,
  "numberOfReduceTasks": 1,
  "requests": {
     "memory": "64Mi"
  },
  "scriptBase64": "$(cat word_count.js | base64 -w 0)"
}
EOF

FAQs

Package last updated on 31 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts