Coder Social home page Coder Social logo

amraneze / apacheaccesslogparser Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.82 MB

Still in progress :(

Scala 20.66% Dockerfile 0.68% Groovy 3.63% Shell 2.44% Batchfile 1.91% JavaScript 53.94% HTML 0.88% CSS 15.85%
scala spark apache access-logs docker sbt-native-packager sbt scalafmt jenkins jenkinsfile

apacheaccesslogparser's Introduction

An Apache access's logs parser

A scala project which using Spark to parse the Apache access's logs to a certain format.

Getting Started

Prerequisites

  • Memory: At least 2GB
  • Operating System: Linux kernel version 3.10 or higher, Windows x Pro/Ent x64.
  • Disk Space: 4GB of available disk space (For docker images and builds).

NOTE: You may find all the details in the following page Docker System requirements

Installing

JDK is mandatory if you want to use sbt commands instead of Docker.

This workshop is tested with Docker Community Edition 17.12.0-ce-win47 (15139), build 9c692cd on Win 10 Pro Version 1909 Build 18363.535.

You can follow this link Install Docker to install Docker

Running the project

With Jenkins

After installing Docker and you want to run the project with Jenkins you can just run the following command:

For Windows OS:

.\run.bat -git_username user -git_pwd pwd

For Unix based OS:

.\run.sh -git_username user -git_pwd pwd

Where user is the git's username/email and pwd is the git's password

NOTE: There are some other optional arguments: jenkins_username, jenkins_pwd, metrics_api_key

For display help you can use this following command:

For Windows OS:

.\run.bat --help
.\run.bat --h

For Unix based OS:

.\run.sh --help
.\run.sh -h

NOTE: The port exposed for Jenkins container is 8080, which can be changed in Docker-compose.yml

With SBT

From the root directory of the project, you can:

Compile the project:

sbt compile

Run the Main App:

sbt run

Package the project:

sbt package

NOTE: sbt package is packaging the project in a JAR file which is a normal Java JAR file.

Run the test cases

sbt test

Build Docker image:

I am using sbt-native-packager to build the Docker image, for that you should use this command:

sbt docker:publishLocal

apacheaccesslogparser's People

Contributors

amraneze avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.