-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
405 changed files
with
52,860 additions
and
5,794 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
|
||
# Build from the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Explicitly set the version of Python and its requirements | ||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf release | ||
mkdir release | ||
FLOWMAN_VERSION=$(mvn -q -N help:evaluate -Dexpression=project.version -DforceStdout) | ||
echo "Building Flowman release version ${FLOWMAN_VERSION}" | ||
|
||
mkdir -p release | ||
|
||
|
||
build_profile() { | ||
profiles="" | ||
for p in $@ | ||
do | ||
profiles="$profiles -P$p" | ||
done | ||
mvn clean install $profiles -DskipTests -Ddockerfile.skip | ||
|
||
# Set new version | ||
HADOOP_DIST=$(mvn $profiles -q -N help:evaluate -Dexpression=hadoop.dist -DforceStdout) | ||
SPARK_API_VERSION=$(mvn $profiles -q -N help:evaluate -Dexpression=spark-api.version -DforceStdout) | ||
HADOOP_API_VERSION=$(mvn $profiles -q -N help:evaluate -Dexpression=hadoop-api.version -DforceStdout) | ||
|
||
echo "Building for dist $HADOOP_DIST with Spark $SPARK_API_VERSION and Hadoop $HADOOP_API_VERSION" | ||
mvn -q versions:set -DnewVersion=${FLOWMAN_VERSION}-${HADOOP_DIST}-spark${SPARK_API_VERSION}-hadoop${HADOOP_API_VERSION} | ||
|
||
#mvn clean deploy $profiles -DskipTests -Dflowman.dist.suffix="" | ||
mvn clean install $profiles -DskipTests -Dflowman.dist.suffix="" | ||
cp flowman-dist/target/flowman-dist-*.tar.gz release | ||
|
||
# Revert to original version | ||
mvn -q versions:revert | ||
} | ||
|
||
|
||
export JAVA_HOME=/usr/lib/jvm/java-1.8.0 | ||
build_profile hadoop-2.6 spark-2.4 | ||
build_profile hadoop-2.7 spark-2.4 | ||
|
||
export JAVA_HOME= | ||
build_profile hadoop-2.7 spark-3.0 | ||
build_profile hadoop-3.2 spark-3.0 | ||
build_profile hadoop-2.7 spark-3.1 | ||
build_profile hadoop-3.2 spark-3.1 | ||
build_profile hadoop-2.7 spark-3.2 | ||
build_profile hadoop-3.3 spark-3.2 | ||
|
||
export JAVA_HOME=/usr/lib/jvm/java-1.8.0 | ||
build_profile CDH-6.3 | ||
build_profile CDP-7.1 | ||
|
||
# Finally build default version | ||
mvn clean install -DskipTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM openjdk:8 | ||
FROM openjdk:11 | ||
MAINTAINER k.kupferschmidt@dimajix.de | ||
|
||
ARG DIST_FILE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,64 @@ | ||
# Flowman Server | ||
# Flowman History Server | ||
|
||
The Flowman server is used to provide both a REST interface and a small UI. | ||
The Flowman History Server provides both a REST interface and a small UI which gives you an overview of jobs and | ||
targets executed in the past. In order to use the History Server, you need to configure a *history database* in | ||
the [Flowman namespace](../spec/namespace.md). | ||
|
||
![Flowman History Server](../images/history-server.png) | ||
|
||
## Configuration | ||
The history database needs to be configured in the `default-namespace.yml` file and also (if used) in the | ||
`history-server.yml` file. The first configuration will be used by [flowexec](flowexec.md) and [flowshell](flowshell.md) | ||
while the second file will be picked up by the Flowman History Server. | ||
|
||
```yaml | ||
# The following definition provides a "run history" stored in a database. If nothing else is specified, the database | ||
# is stored locally as a Derby database. If you do not want to use the history, you can simply remove the whole | ||
# 'history' block from this file. | ||
history: | ||
kind: jdbc | ||
connection: flowman_state | ||
retries: 3 | ||
timeout: 1000 | ||
|
||
# The following connection is used by the history database above. | ||
connections: | ||
flowman_state: | ||
driver: $System.getenv('FLOWMAN_HISTORY_DRIVER', 'org.apache.derby.jdbc.EmbeddedDriver') | ||
url: $System.getenv('FLOWMAN_HISTORY_URL', $String.concat('jdbc:derby:', $System.getenv('FLOWMAN_HOME'), '/flowman-history;create=true')) | ||
username: $System.getenv('FLOWMAN_HISTORY_USER', '') | ||
password: $System.getenv('FLOWMAN_HISTORY_PASSWORD', '') | ||
|
||
# This section enables plugins. You may want to remove plugins which are of no use for you. | ||
plugins: | ||
- flowman-mariadb | ||
- flowman-mysql | ||
- flowman-mssqlserver | ||
``` | ||
Note that this configuration falls back to a Derby database when no other database is provided via the system | ||
environment variables `FLOWMAN_HISTORY_*`. This setup is not recommended except for experimentation, as a Derby | ||
database can only be accessed by a single client at a time (which prevents running the History Server and | ||
flowexec/flowshell at the same time). | ||
|
||
A more useful setup might look as follows: | ||
```yaml | ||
history: | ||
kind: jdbc | ||
retries: 3 | ||
timeout: 1000 | ||
connection: | ||
driver: "com.mysql.cj.jdbc.Driver" | ||
url: "jdbc:mysql://mysql-server.in.my.network/flowman_history" | ||
username: "flowman" | ||
password: "secret" | ||
plugins: | ||
- flowman-mysql | ||
``` | ||
Note that you also need to load the corresponding database plugin to provide the driver. | ||
|
||
|
||
## Running | ||
|
||
Once the History Server is configured, it can be started via `flowserver`. This will start a web server which listens | ||
on port 8080, so you should be able to access the UI via [http://localhost:8080](http://localhost:8080). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.