Member since
10-07-2020
2
Posts
0
Kudos Received
0
Solutions
10-07-2020
11:00 PM
From what I've investigated, it may be due to the version of the mysql-connector-java. The class com.mysql.jdbc.jdbc2.optional.MysqlDataSource is present in version 5 and the one that I have installed is the 8. I tried installing explicitly the version 5 but I got different errors. What I've done and got it working is changing that class to the one available in version 8, which is com.mysql.cj.jdbc.MysqlXADataSource. For Schema Registry you have to modify 2 files: /var/lib/ambari-server/resources/mpacks/hdf-ambari-mpack-3.4.1.1-4/common-services/REGISTRY/0.3.0/package/scripts/params.py /var/lib/ambari-agent/cache/common-services/REGISTRY/0.3.0/package/scripts/params.py There change the variable registry_storage_java_class to the value com.mysql.cj.jdbc.MysqlXADataSource Note: the variable should appear twice. The same for Streaming Analytics, you have to modify 2 files. This time: /var/lib/ambari-server/resources/mpacks/hdf-ambari-mpack-3.4.1.1-4/common-services/STREAMLINE/0.5.0/package/scripts/params.py /var/lib/ambari-agent/cache/common-services/STREAMLINE/0.5.0/package/scripts/params.py There change the variable streamline_storage_java_class also to the value com.mysql.cj.jdbc.MysqlXADataSource You should then be able to start the services. I just solved this, so I'm not aware if any other errors will show up by using these services.
... View more