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

[AMBARI-23869] Inconsistent datatypes error when authenticating users when Oracle is the backend database for Ambari #1330

Merged
merged 1 commit into from May 21, 2018

Conversation

rlevas
Copy link
Contributor

@rlevas rlevas commented May 20, 2018

What changes were proposed in this pull request?

Inconsistent datatypes error when authenticating users when Oracle is the backend database for Ambari:

ORA-00932: inconsistent datatypes: expected - got CLOB

This occurs when selecting from the user_authentication table when the where clause compares a string with value from the authentication_key column. The solution was to convert the CLOB/TEXT column to a VARCHAR(2048) column for all database.

Also fixed an error encountered when installing the Ambari DDL into a MySQL/MariaDB server.

How was this patch tested?

Manually tested the following scenarios:

  • Upgrade non-LDAP-sync'd cluster
  • Upgrade LDAP-sync'd cluster
  • New non-LDAP-sync'd cluster
  • New LDAP-sync'd cluster

Please review Ambari Contributing Guide before opening a pull request.

… when Oracle is the backend database for Ambari
@asfgit
Copy link

asfgit commented May 20, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2383/
Test PASSed.

@rlevas rlevas merged commit 69b0399 into apache:trunk May 21, 2018
@rlevas
Copy link
Contributor Author

rlevas commented May 21, 2018

This is for AMBARI-23829.

@rlevas rlevas deleted the AMBARI-23869 branch May 22, 2018 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants