Actually I am trying to create a database meta object from pentaho-metadata maven repo for mysql database. When I was trying that I am getting this error -
Exception in thread "main" java.lang.RuntimeException: Database type not found!
at org.pentaho.di.core.database.DatabaseMeta.setValues(DatabaseMeta.java:642)
at org.pentaho.di.core.database.DatabaseMeta.<init>(DatabaseMeta.java:507)
at com.translate.demo.App.main(App.java:63)
Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
database type with plugin id [MySQL] couldn't be found!
at org.pentaho.di.core.database.DatabaseMeta.findDatabaseInterface(DatabaseMeta.java:592)
at org.pentaho.di.core.database.DatabaseMeta.getDatabaseInterface(DatabaseMeta.java:566)
at org.pentaho.di.core.database.DatabaseMeta.setValues(DatabaseMeta.java:640)
... 2 more
Code Snippet
DatabaseMeta meta = new DatabaseMeta("db", "MySQL", "Native" , "localhost", "db", "3306", "username", "password");
------------------------------
Surojeet Ghosh
BMC Software
------------------------------