-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEOMESA-3324 Kafka - add install script for Parquet dependencies
- Loading branch information
1 parent
2feeeb4
commit 59c14b1
Showing
13 changed files
with
127 additions
and
41 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
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
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
13 changes: 13 additions & 0 deletions
13
geomesa-kafka/geomesa-kafka-tools/bin/install-confluent-support.sh
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,13 @@ | ||
#! /usr/bin/env bash | ||
# | ||
# Copyright (c) 2013-%%copyright.year%% Commonwealth Computer Research, Inc. | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Apache License, Version 2.0 which | ||
# accompanies this distribution and is available at | ||
# http://www.opensource.org/licenses/apache2.0.php. | ||
# | ||
|
||
cd "$(dirname "$0")" || exit | ||
export GEOMESA_DEPENDENCIES="confluent-dependencies.sh" | ||
export GEOMESA_MAVEN_URL="${GEOMESA_MAVEN_URL:-https://packages.confluent.io/maven/}" | ||
./install-dependencies.sh "$@" |
12 changes: 12 additions & 0 deletions
12
geomesa-kafka/geomesa-kafka-tools/bin/install-parquet-support.sh
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,12 @@ | ||
#! /usr/bin/env bash | ||
# | ||
# Copyright (c) 2013-%%copyright.year%% Commonwealth Computer Research, Inc. | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Apache License, Version 2.0 which | ||
# accompanies this distribution and is available at | ||
# http://www.opensource.org/licenses/apache2.0.php. | ||
# | ||
|
||
cd "$(dirname "$0")" || exit | ||
export GEOMESA_DEPENDENCIES="parquet-dependencies.sh" | ||
./install-dependencies.sh "$@" |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#! /usr/bin/env bash | ||
# | ||
# Copyright (c) 2013-%%copyright.year%% Commonwealth Computer Research, Inc. | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Apache License, Version 2.0 which | ||
# accompanies this distribution and is available at | ||
# http://www.opensource.org/licenses/apache2.0.php. | ||
# | ||
|
||
# This file lists the dependencies required for using geomesa-convert-parquet. | ||
# Update the versions as required to match the target environment. | ||
|
||
hadoop_install_version="%%hadoop.version.recommended%%" | ||
|
||
function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; } | ||
|
||
# gets the dependencies for this module | ||
# args: | ||
# $1 - current classpath | ||
function dependencies() { | ||
local classpath="$1" | ||
|
||
local hadoop_version="$hadoop_install_version" | ||
|
||
if [[ -n "$classpath" ]]; then | ||
hadoop_version="$(get_classpath_version hadoop-common "$classpath" "$hadoop_version")" | ||
fi | ||
|
||
declare -a gavs=( | ||
"org.apache.hadoop:hadoop-common:${hadoop_version}:jar" | ||
"com.fasterxml.woodstox:woodstox-core:5.3.0:jar" | ||
"org.codehaus.woodstox:stax2-api:4.2.1:jar" | ||
"org.apache.commons:commons-configuration2:2.8.0:jar" | ||
"commons-collections:commons-collections:3.2.2:jar" | ||
"commons-logging:commons-logging:1.2:jar" | ||
) | ||
|
||
# add hadoop 3+ jars if needed | ||
if version_ge "${hadoop_version}" 3.0.0; then | ||
gavs+=( | ||
"org.apache.hadoop:hadoop-client-api:${hadoop_version}:jar" | ||
"org.apache.hadoop:hadoop-client-runtime:${hadoop_version}:jar" | ||
) | ||
else | ||
gavs+=( | ||
"commons-configuration:commons-configuration:1.6:jar" | ||
) | ||
fi | ||
|
||
echo "${gavs[@]}" | tr ' ' '\n' | sort | tr '\n' ' ' | ||
} | ||
|
||
function exclude_dependencies() { | ||
# local classpath="$1" | ||
echo "" | ||
} |
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