1
我使用了pentaho CE biserver-ce-4.8.0稳定版。我想创建一个从mongodb获取数据的仪表板,所以我创建了ktr文件在数据集成中与mongodb进行通信并从mongodb获取数据。从那以后,我使用.ktr文件在我的CDE仪表板数据源及以下是KTR文件中的某些部分将参数传递给pentaho水壶在kettleTransFromFile中pentaho CDE
<hostname>localhost</hostname>
<port>27017</port>
<use_all_replica_members>N</use_all_replica_members>
<db_name>${db_name}</db_name>
<fields_name/>
<collection>test</collection>
<json_field_name>json</json_field_name>
<json_query/>
<auth_user/>
<auth_password>Encrypted </auth_password>
<auth_kerberos>N</auth_kerberos>
<connect_timeout/>
<socket_timeout/>
<read_preference>primary</read_preference>
<output_json>Y</output_json>
<query_is_pipeline>N</query_is_pipeline>
<execute_for_each_row>N</execute_for_each_row>`
和$ {} DB_NAME是我的参数,我想通过这个网址参数,但是当我通过了db_name作为url并读取url参数我得到了url参数,但是我的ktr文件不能理解参数,因此它是在名为$ {db_name}的mongo中创建的数据库,所以我将参数传递给了pentaho CDE中的ktr文件?