[jira] [Closed] (HAWQ-1456) Copy RPS configuration files to standby in specific scenarios
[ https://issues.apache.org/jira/browse/HAWQ-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hongxu Ma closed HAWQ-1456. --- Resolution: Fixed fixed > Copy RPS configuration files to standby in specific scenarios > - > > Key: HAWQ-1456 > URL: https://issues.apache.org/jira/browse/HAWQ-1456 > Project: Apache HAWQ > Issue Type: Sub-task > Components: Security >Reporter: Hongxu Ma >Assignee: Hongxu Ma > Fix For: backlog > > > Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ > from HAWQ master to standby master in specific scenarios. > * scenario 1: hawq init standby > may does not has a standby before, so should copy latest confguration files > to standby. > * scenario 2: execute enable-ranger-plugin.sh > ~~ this script will modify rps confguration files, so should copy updated > confguration files to standby. ~~ -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (HAWQ-1456) Copy RPS configuration files to standby in specific scenarios
[ https://issues.apache.org/jira/browse/HAWQ-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hongxu Ma updated HAWQ-1456: Description: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~~ this script will modify rps confguration files, so should copy updated confguration files to standby. ~~ was: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~~this script will modify rps confguration files, so should copy updated confguration files to standby.~~ > Copy RPS configuration files to standby in specific scenarios > - > > Key: HAWQ-1456 > URL: https://issues.apache.org/jira/browse/HAWQ-1456 > Project: Apache HAWQ > Issue Type: Sub-task > Components: Security >Reporter: Hongxu Ma >Assignee: Hongxu Ma > Fix For: backlog > > > Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ > from HAWQ master to standby master in specific scenarios. > * scenario 1: hawq init standby > may does not has a standby before, so should copy latest confguration files > to standby. > * scenario 2: execute enable-ranger-plugin.sh > ~~ this script will modify rps confguration files, so should copy updated > confguration files to standby. ~~ -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (HAWQ-1456) Copy RPS configuration files to standby in specific scenarios
[ https://issues.apache.org/jira/browse/HAWQ-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hongxu Ma updated HAWQ-1456: Description: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~~this script will modify rps confguration files, so should copy updated confguration files to standby.~~ was: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~~this script will modify rps confguration files, so should copy updated confguration files to standby.~~ > Copy RPS configuration files to standby in specific scenarios > - > > Key: HAWQ-1456 > URL: https://issues.apache.org/jira/browse/HAWQ-1456 > Project: Apache HAWQ > Issue Type: Sub-task > Components: Security >Reporter: Hongxu Ma >Assignee: Hongxu Ma > Fix For: backlog > > > Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ > from HAWQ master to standby master in specific scenarios. > * scenario 1: hawq init standby > may does not has a standby before, so should copy latest confguration files > to standby. > * scenario 2: execute enable-ranger-plugin.sh > ~~this script will modify rps confguration files, so should copy updated > confguration files to standby.~~ -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (HAWQ-1456) Copy RPS configuration files to standby in specific scenarios
[ https://issues.apache.org/jira/browse/HAWQ-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hongxu Ma updated HAWQ-1456: Description: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~this script will modify rps confguration files, so should copy updated confguration files to standby.~ was: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh this script will modify rps confguration files, so should copy updated confguration files to standby. > Copy RPS configuration files to standby in specific scenarios > - > > Key: HAWQ-1456 > URL: https://issues.apache.org/jira/browse/HAWQ-1456 > Project: Apache HAWQ > Issue Type: Sub-task > Components: Security >Reporter: Hongxu Ma >Assignee: Hongxu Ma > Fix For: backlog > > > Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ > from HAWQ master to standby master in specific scenarios. > * scenario 1: hawq init standby > may does not has a standby before, so should copy latest confguration files > to standby. > * scenario 2: execute enable-ranger-plugin.sh > ~this script will modify rps confguration files, so should copy updated > confguration files to standby.~ -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (HAWQ-1456) Copy RPS configuration files to standby in specific scenarios
[ https://issues.apache.org/jira/browse/HAWQ-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hongxu Ma updated HAWQ-1456: Description: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~~this script will modify rps confguration files, so should copy updated confguration files to standby.~~ was: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~~this script will modify rps confguration files, so should copy updated confguration files to standby.~` > Copy RPS configuration files to standby in specific scenarios > - > > Key: HAWQ-1456 > URL: https://issues.apache.org/jira/browse/HAWQ-1456 > Project: Apache HAWQ > Issue Type: Sub-task > Components: Security >Reporter: Hongxu Ma >Assignee: Hongxu Ma > Fix For: backlog > > > Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ > from HAWQ master to standby master in specific scenarios. > * scenario 1: hawq init standby > may does not has a standby before, so should copy latest confguration files > to standby. > * scenario 2: execute enable-ranger-plugin.sh > ~~this script will modify rps confguration files, so should copy updated > confguration files to standby.~~ -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (HAWQ-1456) Copy RPS configuration files to standby in specific scenarios
[ https://issues.apache.org/jira/browse/HAWQ-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hongxu Ma updated HAWQ-1456: Description: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~~this script will modify rps confguration files, so should copy updated confguration files to standby.~` was: Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ from HAWQ master to standby master in specific scenarios. * scenario 1: hawq init standby may does not has a standby before, so should copy latest confguration files to standby. * scenario 2: execute enable-ranger-plugin.sh ~this script will modify rps confguration files, so should copy updated confguration files to standby.~ > Copy RPS configuration files to standby in specific scenarios > - > > Key: HAWQ-1456 > URL: https://issues.apache.org/jira/browse/HAWQ-1456 > Project: Apache HAWQ > Issue Type: Sub-task > Components: Security >Reporter: Hongxu Ma >Assignee: Hongxu Ma > Fix For: backlog > > > Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ > from HAWQ master to standby master in specific scenarios. > * scenario 1: hawq init standby > may does not has a standby before, so should copy latest confguration files > to standby. > * scenario 2: execute enable-ranger-plugin.sh > ~~this script will modify rps confguration files, so should copy updated > confguration files to standby.~` -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (HAWQ-1456) Copy RPS configuration files to standby in specific scenarios
[ https://issues.apache.org/jira/browse/HAWQ-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16013406#comment-16013406 ] Hongxu Ma commented on HAWQ-1456: - Note: we **don't** modify enable_ranger_plugin.sh in scenario 2, we ask hawq users run it on master and standby. > Copy RPS configuration files to standby in specific scenarios > - > > Key: HAWQ-1456 > URL: https://issues.apache.org/jira/browse/HAWQ-1456 > Project: Apache HAWQ > Issue Type: Sub-task > Components: Security >Reporter: Hongxu Ma >Assignee: Hongxu Ma > Fix For: backlog > > > Copy rps releated configuration files under file /usr/local/hawq/ranger/etc/ > from HAWQ master to standby master in specific scenarios. > * scenario 1: hawq init standby > may does not has a standby before, so should copy latest confguration files > to standby. > * scenario 2: execute enable-ranger-plugin.sh > this script will modify rps confguration files, so should copy updated > confguration files to standby. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[GitHub] incubator-hawq issue #1181: HAWQ-1398. Fixing invalid references in log stat...
Github user kdunn-pivotal commented on the issue: https://github.com/apache/incubator-hawq/pull/1181 Looks like my Apache user `kdunn926` does not have write permissions to this repo. @edespino ``` $ git push https://kdunn...@github.com/apache/incubator-hawq Password for 'https://kdunn...@github.com': remote: Permission to apache/incubator-hawq.git denied to kdunn926. fatal: unable to access 'https://kdunn...@github.com/apache/incubator-hawq/': The requested URL returned error: 403 ``` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1241: HAWQ-1436. Print a message to command lin...
Github user linwen closed the pull request at: https://github.com/apache/incubator-hawq/pull/1241 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq issue #1241: HAWQ-1436. Print a message to command line if ha...
Github user interma commented on the issue: https://github.com/apache/incubator-hawq/pull/1241 +1 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1241: HAWQ-1436. Print a message to command lin...
Github user linwen commented on a diff in the pull request: https://github.com/apache/incubator-hawq/pull/1241#discussion_r116679611 --- Diff: src/backend/libpq/rangerrest.c --- @@ -464,6 +466,11 @@ static int call_ranger_rest(CURL_HANDLE curl_handle, const char* request) } else { + if (switchToMaster) + { + /* master's RPS has recovered, switch from standby's RPS to master's RPS */ + elog(NOTICE, "switch from standby's RPS to master's RPS"); --- End diff -- Thanks! You are right. If switch to master and failed again, then talk with standby success, this notice message is also printed, a condition should be added. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1241: HAWQ-1436. Print a message to command lin...
Github user interma commented on a diff in the pull request: https://github.com/apache/incubator-hawq/pull/1241#discussion_r116677858 --- Diff: src/backend/libpq/rangerrest.c --- @@ -464,6 +466,11 @@ static int call_ranger_rest(CURL_HANDLE curl_handle, const char* request) } else { + if (switchToMaster) + { + /* master's RPS has recovered, switch from standby's RPS to master's RPS */ + elog(NOTICE, "switch from standby's RPS to master's RPS"); --- End diff -- When this message logged, hawq maybe still talking to standby RPS, right? example: ``` talk to standby before; time up, set switchToMaster = true; talk to master but failed. retry talk to standby rps successfully if (switchToMaster) elog(...) ``` may be a bit confusing to user: saw log "switch back to master", but still talking to standby now. looks like elog this is better? ``` "tried to switch back, but %s", talkingWithStandby? "failed":"success"; ``` And keep it as it's now is also well. ð --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1241: HAWQ-1436. Print a message to command lin...
GitHub user linwen opened a pull request: https://github.com/apache/incubator-hawq/pull/1241 HAWQ-1436. Print a message to command line if hawq switches from standby RPS to master RPS This improvement happens in such case: hawq master is talking with standby RPS, when master's RPS has recovered, master switches from standby RPS to local RPS, a reminder message is printed. Please review. You can merge this pull request into a Git repository by running: $ git pull https://github.com/linwen/incubator-hawq hawq-1436 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-hawq/pull/1241.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1241 commit 28e633dc99555a43b02f80c5e7c9ea40a090e561 Author: Wen LinDate: 2017-05-16T04:00:39Z HAWQ-1436. Print a message to command line if hawq switches from standby RPS to master RPS. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---