This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Fix #2022, Support master and standby server on a single node #2027
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
574793c
support master and standby on a single node
rui-mo fe9ad36
Merge branch 'trunk' into standby
rui-mo 6e61efd
Update ssm
rui-mo f25eca2
edit doc
rui-mo e04f4bd
edit doc
rui-mo 0b62b43
edit ssm
rui-mo 5ae3fcc
align
rui-mo f68a97e
correct spell error
rui-mo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,10 +63,6 @@ while [ $# != 0 ]; do | |
-format Format the configured database." | ||
shift | ||
;; | ||
"--help" | "-h") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to be kept. |
||
echo -e "--help -h Show this usage information\n--config Specify or overwrite an configure option.\n-format Format the configured database." | ||
shift | ||
;; | ||
*) | ||
SMART_VARGS+=" $1" | ||
shift | ||
|
@@ -119,7 +115,7 @@ if [ x"${SMARTSERVERS}" != x"" ]; then | |
--config "${SMART_CONF_DIR}" \ | ||
--hosts "${OTHER_MASTERS}" --hostsend \ | ||
--daemon start ${DEBUG_OPT_STANDBY} \ | ||
smartserver $SMART_VARGS_STANDBY | ||
standby $SMART_VARGS_STANDBY | ||
fi | ||
else | ||
echo "ERROR: No SmartServers configured in 'servers'." | ||
|
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 |
---|---|---|
|
@@ -80,7 +80,9 @@ SSM will fetch the whole HDFS namespace when it starts by default. If you do not | |
|
||
## **Configure Smart Server** | ||
|
||
SSM supports running multiple Smart Servers for high-availability. Only one of these Smart Servers can be in active state and provide services. One of the standby Smart Servers will take its place if the active Smart Server failed. | ||
SSM supports running multiple Smart Servers for high-availability. Only one of these Smart Servers can be in active state and provide services. One of the standby Smart Servers will take its place if the active Smart Server failed. | ||
|
||
SSM also supports running one standby server with master server on a single node. | ||
|
||
Open `servers` file under ${SMART_HOME}/conf, put each server's hostname or IP address line by line. Lines start with '#' are treated as comments. | ||
|
||
|
@@ -543,7 +545,11 @@ Note: To make the scripts work, you have to set up password-less SSH connections | |
|
||
# Trouble Shooting | ||
--------------------------------------------------------------------------------- | ||
All logs will go to smartserver-$hostname-$user.log under ${SMART_HOME}/logs directory. | ||
Logs for master server will go to smartserver-master-$hostname-$user.log under ${SMART_HOME}/logs directory. | ||
|
||
Logs for standby server will go to smartserver-standy-$hostname-$user.log under ${SMART_HOME}/logs directory. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. standy -> standby |
||
|
||
Logs for agent will go to smartagent-$hostname-$user.log under ${SMART_HOME}/logs directory. | ||
|
||
1. Smart Server can't start successfully | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to be kept.