Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] Add a note about Ambari tests for HiveServer2 when using custom auth provider #231

Open
frbattid opened this issue Mar 7, 2017 · 0 comments
Assignees
Milestone

Comments

@frbattid
Copy link
Member

frbattid commented Mar 7, 2017

When using cosmos-hive-auth-provider Ambari tests must be modified. Such tests try to start a connection to HiveServer2 based on Hive default user and password used in the Metastore. Obviously, such credentials are not going to work with cosmos-hive-auth-provider.

Since the above test is mandatory for considering HiveServer2 started, Ambari shows a failure and does not effectively start the server. Thus, 2 approaches can be followed:

  1. To modify the test, which is a Java application. Specifically, the arguments passed to the tests must include valid user and a OAuth2 token.
$ vi hive_service.py
...
db_connection_check_command = format(
        "{java64_home}/bin/java -cp {check_db_connection_jar}:/usr/share/java/{jdbc_jar_name} org.apache.ambari.server.DBConnectionVerification {hive_jdbc_connection_url} {hive_metastore_user_name} {hive_metastore_user_passwd!p} {hive_jdbc_driver}")
...
  1. To remove the test at all from hive_service.py.
@frbattid frbattid added this to the release/1.1.0 milestone Mar 7, 2017
@frbattid frbattid self-assigned this Mar 7, 2017
@frbattid frbattid changed the title [doc] Add a note about Ambari tests about HiveServer2 when using custom auth provider [doc] Add a note about Ambari tests for HiveServer2 when using custom auth provider Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant