You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2020/05/19 11:46:11 UTC

[GitHub] [phoenix-queryserver] infraio opened a new pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

infraio opened a new pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] joshelser commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
joshelser commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-631060561


   Reading what you put in the Jira description, are we gaining anything by letting this fall through when hbase security is on but Hadoop security isn't? We can't properly use HBase authentication if Hadoop authentication is off, can we?
   
   Just thinking that we could fail when hadoop.security.authentication=simple and hbase.security.authentication=kerberos.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] stoty commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
stoty commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-635144317


   Committed with a minor refactor to improve readability.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] infraio commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
infraio commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-634444420


   > Also, please try to add additional commits when changing the PR, instead of force pushing the new one, unless you are rebasing it.
   > We have no way of seeing what changes you've made to the PR if you always use force push.
   
   ok


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] joshelser commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
joshelser commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-635679647


   That's great! Thanks Guanghao for your fix! (and Istvan for shepherding in :D)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] stoty commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
stoty commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-634436156


   Also, please try to add additional commits when changing the PR, instead of force pushing the new one, unless you are rebasing it. 
   We have no way of seeing what changes you've made to the PR if you always use force push.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] stoty commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
stoty commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-633403744


   I also think that it'd be best to explicitly check both kerberos properties, log an error when they are inconsistent, and only attempt the kerberos login if both are set to kerberos.
   
   I also think that we should mimic whatever HBase does when it encounters these inconsistent settings. If it works in unsecure mode, we should do that as well. If it doesn't work, we should just exit with an error.
   
   If the extra check that you've added still fails, fails then we'd better log an error, and exit early.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] infraio commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
infraio commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-631177609


   I meet this problem when only configured hbase.security.authentication=kerberos. The log shows "Login successful.", but not. The user is not the configured kerberos user.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] stoty commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
stoty commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-634434709


   > I thought we don't need to check the inconsistent config. Just check the current user whether has kerberos credential is enough.
   
   When the HBase/Hadoop setup is correct, PQS already works fine. You have found a case when PQS behaves in a hard to debug way when the settings are inconsistent. 
   IMO if we want to make it easier for people to spot these kinds of configuration errors, then the most useful thing to do is to check and explicitly for this case, and exit early when we know that the setup has no chance of working.
   
   I assume that if we had such a check, it would have saved you a lot of debugging when you encountered the original issue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] infraio edited a comment on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
infraio edited a comment on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-633778076


   > Just thinking that we could fail when hadoop.security.authentication=simple and hbase.security.authentication=kerberos.
   
   I thought we don't need to check the inconsistent config. Just check the current user whether has kerberos credential is enough.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] stoty edited a comment on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
stoty edited a comment on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-634434709


   > I thought we don't need to check the inconsistent config. Just check the current user whether has kerberos credential is enough.
   
   When the HBase/Hadoop setup is correct, PQS already works fine. You have found a case when PQS behaves in a hard to debug way when the settings are inconsistent. 
   IMO if we want to make it easier for people to spot these kinds of configuration errors, then the most useful thing to do is to check explicitly for this case, and exit early when we know that the setup has no chance of working.
   
   I assume that if we had such a check, it would have saved you a lot of debugging when you encountered the original issue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] infraio commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
infraio commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-634444648


   > > I thought we don't need to check the inconsistent config. Just check the current user whether has kerberos credential is enough.
   > 
   > When the HBase/Hadoop setup is correct, PQS already works fine. You have found a case when PQS behaves in a hard to debug way when the settings are inconsistent.
   > IMO if we want to make it easier for people to spot these kinds of configuration errors, then the most useful thing to do is to check explicitly for this case, and exit early when we know that the setup has no chance of working.
   > 
   > I assume that if we had such a check, it would have saved you a lot of debugging when you encountered the original issue.
   
   So your advise is? Add a check and exit if inconsistent?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] stoty closed pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
stoty closed pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] infraio commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
infraio commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-633778076


   > Just thinking that we could fail when hadoop.security.authentication=simple and hbase.security.authentication=kerberos.
   I thought we don't need to check the inconsistent config. Just check the current user whether has kerberos credential is enough.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] infraio commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
infraio commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-633407469


   > I also think that we should mimic whatever HBase does when it encounters these inconsistent settings.
   
   If hbase client misconfigured this, it just works without the kerberos. But because the target hbase cluster is in secure mode, so access will fail.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [phoenix-queryserver] stoty commented on pull request #34: PHOENIX-5904 Add log if the configed kerberos principal login failed

Posted by GitBox <gi...@apache.org>.
stoty commented on pull request #34:
URL: https://github.com/apache/phoenix-queryserver/pull/34#issuecomment-634445003


   Yes, I think that's the most user-friendly thing to do.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org