itongxiaojun opened a new pull request, #3921:
URL: https://github.com/apache/ambari/pull/3921
This PR introduces compatibility for Oceanbase within Apache Ambari, with
adjustments made to the MySQL DDL script to ensure proper functioning when
working with Oceanbase, which supports the MySQL protocol.
1. **Oceanbase Overview**:
Oceanbase is a distributed relational database developed by Alibaba,
designed to be highly scalable and provide high availability. It is fully
compatible with the MySQL protocol, allowing it to be used as a drop-in
replacement for MySQL in many cases, which makes it suitable for large-scale
applications and enterprise environments.
2. **DDL Modifications**:
The file `/var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql`
was modified to adjust the field lengths of `service_name` and `view_name`.
These adjustments help avoid errors when importing the DDL into Oceanbase,
aligning the field sizes properly.

3. **Testing**:
We have thoroughly tested the modified SQL on both Oceanbase and MySQL
databases. After applying the changes, the DDL was successfully imported into
both databases, and the Ambari services started without issues.


4. **Known Issue**:
A minor error occurs during the import process of the SQL into Oceanbase
at line 36. This error is due to MySQL-specific syntax, but it does not impact
functionality, as the syntax does not affect the overall operation of the
system.


5. **Final Validation**:
After making the changes, we successfully started Ambari, installed, and
ran all components without any issues. This confirms that the changes ensure
full compatibility with both Oceanbase and MySQL, allowing Ambari to function
normally.

We believe that these changes will make Ambari more versatile for users
running Oceanbase while retaining compatibility with MySQL.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]