# marquez **Repository Path**: nice_h/marquez ## Basic Information - **Project Name**: marquez - **Description**: Collect, aggregate, and visualize a data ecosystem's metadata - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-29 - **Last Updated**: 2022-04-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Marquez is an open source **metadata service** for the **collection**, **aggregation**, and **visualization** of a data ecosystem's metadata. It maintains the provenance of how datasets are consumed and produced, provides global visibility into job runtime and frequency of dataset access, centralization of dataset lifecycle management, and much more. Marquez was released and open sourced by [WeWork](https://www.wework.com). ## Badges [![CircleCI](https://circleci.com/gh/MarquezProject/marquez/tree/main.svg?style=shield)](https://circleci.com/gh/MarquezProject/marquez/tree/main) [![codecov](https://codecov.io/gh/MarquezProject/marquez/branch/main/graph/badge.svg)](https://codecov.io/gh/MarquezProject/marquez/branch/main) [![status](https://img.shields.io/badge/status-WIP-yellow.svg)](#status) [![Slack](https://img.shields.io/badge/slack-chat-blue.svg)](http://bit.ly/MarquezSlack) [![license](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://raw.githubusercontent.com/MarquezProject/marquez/main/LICENSE) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md) [![maven](https://img.shields.io/maven-central/v/io.github.marquezproject/marquez-api.svg)](https://search.maven.org/search?q=g:io.github.marquezproject) [![docker](https://img.shields.io/badge/docker-hub-blue.svg?style=flat)](https://hub.docker.com/r/marquezproject/marquez) [![Known Vulnerabilities](https://snyk.io/test/github/MarquezProject/marquez/badge.svg)](https://snyk.io/test/github/MarquezProject/marquez) ## Status Marquez is an [LF AI & Data Foundation](https://lfaidata.foundation/projects/marquez) incubation project under active development and we'd love your help! ## Quickstart

Marquez provides a simple way to collect and view _dataset_, _job_, and _run_ metadata. The easiest way to get up and running is with Docker. From the base of the Marquez repository run: ``` $ ./docker/up.sh ``` > **Tip:** Use the `--build` flag to build images from source, and/or `--seed` to start Marquez with sample lineage metadata. For a more complete example using the sample metadata, please follow our [quickstart](https://marquezproject.github.io/marquez/quickstart.html) guide. **`WEB UI`** You can open http://localhost:3000 to begin exploring the web UI. The UI enables you to discover dependencies between jobs and the datasets they produce and consume via the lineage graph, view run metadata of current and previous job runs, and much more! **`HTTP API`** The [HTTP API](https://marquezproject.github.io/marquez/openapi.html) listens on port `5000` for all calls and port `5001` for the admin interface. The admin interface exposes helpful endpoints like `/healthcheck` and `/metrics`. To verify the HTTP API server is running and listening on `localhost` browse to http://localhost:5001. > **Note:** By default, the HTTP API does not require any form of authentication or authorization. **`GRAPHQL`** To explore metadata via graphql, browse to http://localhost:5000/graphql-playground. The graphql endpoint is currently in _beta_ and is located at http://localhost:5000/api/v1-beta/graphql. ## Documentation We invite everyone to help us improve and keep documentation up to date. Documentation is maintained in this repository and can be found under [`docs/`](https://github.com/MarquezProject/marquez/tree/main/docs). > **Note:** To begin collecting metadata with Marquez, follow our [quickstart](https://marquezproject.github.io/marquez/quickstart.html) guide. Below you will find the steps to get up and running from source. ## Modules Marquez uses a _multi_-project structure and contains the following modules: * [`api`](https://github.com/MarquezProject/marquez/tree/main/api): core API used to collect metadata * [`web`](https://github.com/MarquezProject/marquez/tree/main/web): web UI used to view metadata * [`clients`](https://github.com/MarquezProject/marquez/tree/main/clients): clients that implement the HTTP [API](https://marquezproject.github.io/marquez/openapi.html) * [`integrations`](https://github.com/MarquezProject/marquez/tree/main/integrations): integrations with other systems (ex: [`Airflow`](https://github.com/MarquezProject/marquez/tree/main/examples/airflow)) * [`chart`](https://github.com/MarquezProject/marquez/tree/main/chart): helm chart ## Requirements * [Java 11](https://openjdk.java.net/install) * [Java 8](https://openjdk.java.net/install) (_required_ for **Spark** integration) * [PostgreSQL 12.1](https://www.postgresql.org/download) > **Note:** To connect to your running PostgreSQL instance, you will need the standard [`psql`](https://www.postgresql.org/docs/9.6/app-psql.html) tool. ## Building You can build most of the project modules using Java 11. We recommend setting `JAVA_HOME` to your local JDK 11 installation and invoking `./gradlew ::build` with the specific module you'd like to build. For example, to build the [`api`](https://github.com/MarquezProject/marquez/tree/main/api) module run: ``` $ ./gradlew :api:build ``` The executable can be found under `api/build/libs/` To build the entire project, set `JAVA_HOME` to your local JDK 11 installation and `JDK8_HOME` to your local JDK 8 installation. Then, build all modules with: ``` $ ./gradlew build ``` **The** [`spark`](https://github.com/MarquezProject/marquez/tree/main/integrations/spark) **integration requires Java 8 to build. The module can be built separately by setting** `JAVA_HOME` **to your local JDK 8 installation and invoking** `./gradlew :integrations:spark:build`. ## Configuration To run Marquez, you will have to define `marquez.yml`. The configuration file is passed to the application and used to specify your database connection. The configuration file creation steps are outlined below. ### Step 1: Create Database When creating your database using [`createdb`](https://www.postgresql.org/docs/12/app-createdb.html), we recommend calling it `marquez`: ```bash $ createdb marquez ``` ### Step 2: Create `marquez.yml` With your database created, you can now copy [`marquez.example.yml`](https://github.com/MarquezProject/marquez/blob/main/marquez.example.yml): ``` $ cp marquez.example.yml marquez.yml ``` You will then need to set the following environment variables (we recommend adding them to your `.bashrc`): `POSTGRES_DB`, `POSTGRES_USER`, and `POSTGRES_PASSWORD`. The environment variables override the equivalent option in the configuration file. By default, Marquez uses the following ports: * TCP port `8080` is available for the HTTP API server. * TCP port `8081` is available for the admin interface. > **Note:** All of the configuration settings in `marquez.yml` can be specified either in the configuration file or in an environment variable. ## Running the [Application](https://github.com/MarquezProject/marquez/blob/main/src/main/java/marquez/MarquezApp.java) ```bash $ ./gradlew :api:runShadow ``` Then browse to the admin interface: http://localhost:8081 ## Related Projects * [`OpenLineage`](https://github.com/OpenLineage/OpenLineage): open standard for metadata and lineage collection ## Getting Involved * Website: https://marquezproject.ai * Source: https://github.com/MarquezProject/marquez * Chat: [https://marquezproject.slack.com](http://bit.ly/MarquezSlack) * Twitter: [@MarquezProject](https://twitter.com/MarquezProject) ## Contributing See [CONTRIBUTING.md](https://github.com/MarquezProject/marquez/blob/main/CONTRIBUTING.md) for more details about how to contribute.