-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[0.9.4]New features, new CS and http dependency optimization (#405)
* Branch 0.9.4 (#12) * Shell engine remove useless gpg plugins close #293 * metadatamanager server update * Update start-all.sh Repair bug that two ips are gotten. * Update checkServices.sh Repair the bug that two ips are gotten. * Update stop-all.sh Repair the bug that two ips are gotten instead of one. * Update install.sh Repair the bug that two ips are gotten instead of one. * #299 add restful * Provide a metadata management common module close #302 * #299 Provide configuration service in module * #299 * #Fixes #299 * fixed #297 * #Fixes #299 * Fixed #298 * Fixed #301 * add metadatamanager/hive Co-authored-by: chaogefeng <[email protected]> Co-authored-by: alexkun <[email protected]> Co-authored-by: 5herhom <[email protected]> Co-authored-by: liaoyt <[email protected]> Co-authored-by: xj2jx <[email protected]> Co-authored-by: Davidhua1996 <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: alexzyWu <[email protected]> Co-authored-by: bleachzk <[email protected]> Co-authored-by: dennyzhou-zdx <[email protected]> Co-authored-by: kantlin <[email protected]> Co-authored-by: zhengfan199525 <[email protected]> * Modified public dependent lib is introduced through classPath closes #392 * to modify the queue of ListenerBus to ArrayBlockingQueue closes #395 * Unify the configuration parameters of gatewayURL closes #393 * Add license * http dependency module optimization closes #388 * To add support for CS cache function closes #368 * UJES supports ContextService function closes #390 * Optimize imports * Update version to 0.9.4 * Modified public dependent lib is introduced through classPath closes #392 * Update version to 0.9.4 Co-authored-by: chaogefeng <[email protected]> Co-authored-by: alexkun <[email protected]> Co-authored-by: 5herhom <[email protected]> Co-authored-by: liaoyt <[email protected]> Co-authored-by: xj2jx <[email protected]> Co-authored-by: Davidhua1996 <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: alexzyWu <[email protected]> Co-authored-by: bleachzk <[email protected]> Co-authored-by: dennyzhou-zdx <[email protected]> Co-authored-by: kantlin <[email protected]> Co-authored-by: zhengfan199525 <[email protected]> Co-authored-by: cooperyang <[email protected]>
- Loading branch information
1 parent
f855351
commit 05b392d
Showing
115 changed files
with
3,465 additions
and
435 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,74 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright 2019 WeBank | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
#Actively load user env | ||
source ~/.bash_profile | ||
|
||
local_host="`hostname --fqdn`" | ||
|
||
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}' | awk 'NR==1') | ||
|
||
function isLocal(){ | ||
if [ "$1" == "127.0.0.1" ];then | ||
return 0 | ||
elif [ "$1" == "" ]; then | ||
return 0 | ||
elif [ "$1" == "localhost" ]; then | ||
return 0 | ||
elif [ "$1" == $local_host ]; then | ||
return 0 | ||
elif [ "$1" == $ipaddr ]; then | ||
return 0 | ||
fi | ||
return 1 | ||
} | ||
|
||
function executeCMD(){ | ||
isLocal $1 | ||
flag=$? | ||
if [ $flag == "0" ];then | ||
echo "Is local execution:$2" | ||
eval $2 | ||
else | ||
echo "Is remote execution:$2" | ||
ssh -p $SSH_PORT $1 $2 | ||
fi | ||
|
||
} | ||
function copyFile(){ | ||
isLocal $1 | ||
flag=$? | ||
src=$2 | ||
dest=$3 | ||
if [ $flag == "0" ];then | ||
echo "Is local cp " | ||
cp -r "$src" "$dest" | ||
else | ||
echo "Is remote cp " | ||
scp -r -P $SSH_PORT "$src" $1:"$dest" | ||
fi | ||
|
||
} | ||
|
||
function isSuccess(){ | ||
if [ $? -ne 0 ]; then | ||
echo "Failed to " + $1 | ||
exit 1 | ||
else | ||
echo "Succeed to" + $1 | ||
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
Oops, something went wrong.