eagle default is mysql database; amended as pg, and then test
The eagle need to use the conversion table to postgres from mysql syntax statement syntax construction of the table, and built in the tables in postgres
1, modify the configuration file
conf / eagle.conf
note driverClass the beginning org, com began to write error
##change to postgres testing
jdbc {
adapter = "postgresql"
username = "postgres"
password = "postgres"
database = "eagle"
driverClass = "org.postgresql.Driver"
connectionUrl = "jdbc:postgresql://db:5432/eagle"
connectionProps = "encoding=UTF-8"
connectionMax = 8
}
}
##change to postgresql testing
metadata {
store = org.apache.eagle.metadata.store.jdbc.JDBCMetadataStore
jdbc {
username = "postgres"
password = "123456"
driverClassName = org.postgresql.Driver
database = "eagle"
connection = "jdbc:postgresql://db:5432/eagle"
}
}
2, add the postgres driver
First, extract the driver jar files
and folders into the postgresql package eagle-topology-0.5.0-SNAPSHOT- assembly.jar
Finally, the eagle-topology-0.5.0-SNAPSHOT- assembly.jar package replaced, restart eagle
3, New Site and Application Testing
4, restart the eagle, before the establishment of the Site and Application are still seen, but postgres database table has a corresponding data on modified successfully