Giter Site home page Giter Site logo

smarthi / milan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amzn/milan

0.0 2.0 0.0 505 KB

Milan is a Scala API and runtime infrastructure for building data-oriented systems, built on top of Apache Flink.

License: Apache License 2.0

Scala 99.96% Java 0.04%

milan's Introduction

Milan

Milan is a data-oriented programming language and runtime infrastructure.

The Milan language is a DSL embedded in Scala. The output is an intermediate language that can be compiled to run on different target platforms. Currently there exists a single compiler that produces Flink applications.

The Milan runtime infrastructure compiles and runs Milan applications on a Flink cluster.

Milan Language

The Milan language is similar in look and feel to other JVM-based streaming frameworks like Spark Streaming, Flink, or Kafka Streams. The main differences are that Milan uses higher-level constructs to build streaming applications, and that Milan applications are not tied to a specific runtime infrastructure.

Examples of the Milan language are available in the samples.

Some of the language features are described in the docs.

Runtime

Currently Milan has a single compiler and runtime, based on Apache Flink.

There are three options for executing a Milan program:

  1. In-process using Flink's mini-cluster. It is not necessary to have a Flink cluster running to use this mode, only that Flink libraries are present.
  2. On a Flink cluster on the local machine.
  3. Remotely on a Flink cluster that has the Milan Flink control plane running.

Examples of executing using these different modes are available in the samples.

Instructions for using the Flink runtime are available in the docs.

Environment Setup

Milan depends on the Flink Kinesis connector, which is not currently available on Maven central. You will need to build it yourself and install it into your local maven repo. The latest documentation on using the connector is available at https://ci.apache.org/projects/flink/flink-docs-stable/dev/connectors/kinesis.html .

  1. Clone the Flink repository from https://github.com/apache/flink.
  2. Checkout the version of Flink used by Milan: 'git checkout release-1.7'
  3. Build and install the snapshots for this release: ' mvn clean install -Punsafe-mapr-repo -Pinclude-kinesis -DskipTests'
  4. Any time the Flink version that Milan uses is changed you will need to repeat this process using the appropriate Flink release branch.

Building

Please complete the steps in Environment Setup above before building for the first time.

mvn clean package will compile, run tests, and create jars of the Milan packages.

mvn clean install will compile, run tests, package, and install the snapshot version into your local maven repository. You can then use these from other projects using the following in your pom.xml:

<dependency>
    <groupId>com.amazon.milan</groupId>
    <artifactId>milan-lang</artifactId>
    <version>0.8-SNAPSHOT</version>
</dependency>

License

This project is licensed under the Apache-2.0 License.

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.