forked from DataLinkDC/dinky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/DataLinkDC/dinky into dev
- Loading branch information
Showing
14 changed files
with
371 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
EXTERNAL_CONNECTIVITY_CHECK_URL="www.baidu.com" | ||
|
||
|
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,36 @@ | ||
#!/bin/bash | ||
|
||
export RED='\033[31m' | ||
export GREEN='\033[32m' | ||
export YELLOW='\033[33m' | ||
export BLUE='\033[34m' | ||
export MAGENTA='\033[35m' | ||
export CYAN='\033[36m' | ||
export RESET='\033[0m' | ||
|
||
if [ -f /etc/profile.d/dinky_env ]; then | ||
source /etc/profile.d/dinky_env | ||
fi | ||
|
||
if [ -z "$DINKY_HOME" ]; then | ||
echo -e "${RED}DINKY_HOME is not set, please check the environment variable...${RESET}" | ||
exit 1 | ||
else | ||
EXTENDS_HOME="$DINKY_HOME"/extends | ||
FLINK_VERSION_SCAN=$(ls -n "${EXTENDS_HOME}" | grep '^d' | grep flink | awk -F 'flink' '{print $2}') | ||
|
||
echo -e "${GREEN}>>>>>>>>>>>>>>>>>>>. Start cleaning up the environment... <<<<<<<<<<<<<<<<<<<<${RESET}" | ||
echo -e "${GREEN}Cleaning up the environment variables...${RESET}" | ||
rm -rf /etc/profile.d/dinky_* | ||
echo -e "${GREEN}Cleaning up the flink jar dependencies...${RESET}" | ||
rm -rf "${EXTENDS_HOME}"/flink"${FLINK_VERSION_SCAN}"/flink-* | ||
echo -e "${GREEN}Cleaning up the flink shaded hadoop jar dependencies...${RESET}" | ||
rm -rf "${EXTENDS_HOME}"/flink-shaded-hadoop-* | ||
echo -e "${GREEN}Cleaning up the mysql jar dependencies...${RESET}" | ||
rm -rf "$DINKY_HOME"/lib/mysql-connector-* | ||
echo -e "${GREEN}Cleaning up the environment variables of DINKY_HOME ...${RESET}" | ||
unset DINKY_HOME | ||
echo -e "${GREEN}Refresh environment variables...${RESET}" | ||
source /etc/profile | ||
echo -e "${GREEN}Environment cleanup completed...${RESET}" | ||
fi |
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,5 +1,4 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
DINKY_HOME_PARAMS=$1 | ||
DB_ENV_FILE=$2 | ||
|
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,5 +1,4 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
EXTENDS_HOME=$1 | ||
|
||
|
Oops, something went wrong.