Skip to content

Inject errors while running HiBench workloads on Hadoop and collect logs

Notifications You must be signed in to change notification settings

mooselab/InjectErr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InjectErr

A simple python framework to inject errors while running HiBench workloads on Hadoop and collecting logs

Installation

InjectErr uses poetry:

poetry shell # optional, only use it if you want to install this in a venv
poetry install

Usage

First, let's understand the injections.yml file

username: hadoop # Username of all the nodes
master_host: node-master # Hostname of master nodes
slave_nodes: # Hostnames of slave nodes
  - node1
  - node2
ssh_key_path: /home/wantguns/.ssh/id_ed25519 # path to SSH priv key for logging in to all the nodes

injections:
  fill_ram: # Injection name
    desc: "Fill RAM completely" # Injection Desc
    dataset_size: small # Hibench profile scale, can be [tiny, small, huge, etc] 
    workload: micro/wordcount # Hibench workload to run
    waittime: 10 # Time to wait before injecting the error
    how: | # Shell commands which perform the injection
      timeout -k 95 90 cat /dev/random > /dev/shm/fillitup

To run InjectErr, simply execute the installed script:

$ injecterr

It will read the injections.yml file from the current working directory, perform the injections and then finally copy logs from all the nodes to a local folder named logs and label them.

About

Inject errors while running HiBench workloads on Hadoop and collect logs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages