Skip to content

This repo is a simple log reader usng http.server and s3 mountpoint to make it easier to read emr related logs

License

Notifications You must be signed in to change notification settings

zhaojiew10/logreader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logreader

This is a simple HTTP server that serves files from a specified directory. It also supports automatic extraction of .gz files before serving them.

Requirements

  • Python 3.x

usage

Clone or download the repository to your local machine.

Open a terminal or command prompt and navigate to the log directory.

Run the following command to start the HTTP server:

cd /path/to/destination
python server.py

The server automatically extracts .gz files before serving them. If a requested file has a .gz extension, it will be extracted on-the-fly and sent to the client in its uncompressed form.

This server can use to read emr job log.

And if you use this server with s3 mount-point, you will get better experience.

The server will start running on http://localhost:8000 by default. You can change the port by modifying the PORT variable in the server.py file.

docker

Please mount the log folder to container

docker run -it --rm -v /home/ec2-user/s3fs:/app/logreader -p 8000:8000 zhaojiew/logreader:latest 

About

This repo is a simple log reader usng http.server and s3 mountpoint to make it easier to read emr related logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published