【kettle】【报错】required subelements 'user'

kettle 使用jndi连接时候,测试连接时候无法连接到数据库;

报错消息:Required subelement 'user'

原因:jndi.properties配置文件错误;

解决方案:找一个正确的jdbc.properties 替换就好 便可解决问题;

\data-integration\simple-jndi/jd


SampleData/type=javax.sql.DataSource
SampleData/driver=org.h2.Driver
SampleData/url=jdbc:h2:file:samples/db/sampledb;IFEXISTS=TRUE
SampleData/user=PENTAHO_USER
SampleData/password=PASSWORD

Quartz/type=javax.sql.DataSource
Quartz/driver=org.hsqldb.jdbcDriver
Quartz/url=jdbc:hsqldb:hsql://localhost/quartz
Quartz/user=pentaho_user
Quartz/password=password

Hibernate/type=javax.sql.DataSource
Hibernate/driver=org.hsqldb.jdbcDriver
Hibernate/url=jdbc:hsqldb:hsql://localhost/hibernate
Hibernate/user=hibuser
Hibernate/password=password

Shark/type=javax.sql.DataSource
Shark/driver=org.hsqldb.jdbcDriver
Shark/url=jdbc:hsqldb:hsql://localhost/shark
Shark/user=sa
Shark/password=x

PDI_Operations_Mart/type=javax.sql.DataSource
PDI_Operations_Mart/driver=org.postgresql.Driver
PDI_Operations_Mart/url=jdbc:postgresql://localhost:5432/hibernate?searchpath=pentaho_operations_mart
PDI_Operations_Mart/user=hibuser
PDI_Operations_Mart/password=password

live_logging_info/type=javax.sql.DataSource
live_logging_info/driver=org.postgresql.Driver
live_logging_info/url=jdbc:postgresql://localhost:5432/hibernate?searchpath=pentaho_dilogs
live_logging_info/user=hibuser
live_logging_info/password=password


#..............................................................................................Market库
warehouse_market/type=javax.sql.DataSource
warehouse_market/driver=com.mysql.jdbc.Driver
warehouse_market/url=jdbc:mysql://localhost:3306/db_test?useUnicode=true&characterEncoding=utf-8
warehouse_market/user=123
warehouse_market/password=123

 

你可能感兴趣的:(KETTLE,知识储备,KETTLE)