Hi all,
i need to automate reading from different dbms.. so i'm created multiple xml connections (i'm using kettle 4.4 here) from the "share" command.
So,i have the connection for sqlserver (saved as "shared_sqlserver.xml" in my kettle home and in the kettle root, just to be sure, at first), which looks like this:
Then i created a new repository, and a new connection (the same sql server connection as before, but with a non existing username, for testing purposes) and named it "test", just like the one i posted above.
After that, I created a transformation with a table input (a simple select) reading from this "test" connection.
This transformation should fail if i don't define the shared_objects_file inside the transformation properties, so i wrote shared_sqlserver.xml (i'd like to make it a variable later on).
Then, when i execute the transformation, it seems like Kettle doesn't read the shared objects file, and the log says:
"saa" is still the non existing user i created for testing!
Besides, if i change the shared objects file to a file that doesn't exists, the log is the same, and doesn't tell me the file doesn't exist.
Am I missing something?
By the way, i never used shared objects before :)
Thanks!
i need to automate reading from different dbms.. so i'm created multiple xml connections (i'm using kettle 4.4 here) from the "share" command.
So,i have the connection for sqlserver (saved as "shared_sqlserver.xml" in my kettle home and in the kettle root, just to be sure, at first), which looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?><sharedobjects>
<connection>
<name>test</name>
<server>192.168.42.210</server>
<type>MSSQL</type>
<access>Native</access>
<database>master</database>
<port>1433</port>
<username>sa</username>
<password>Encrypted 2be98afc86aa7f2e4cb18ac7390c3fd89</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>MSSQL_DOUBLE_DECIMAL_SEPARATOR</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>1433</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
</sharedobjects>
After that, I created a transformation with a table input (a simple select) reading from this "test" connection.
This transformation should fail if i don't define the shared_objects_file inside the transformation properties, so i wrote shared_sqlserver.xml (i'd like to make it a variable later on).
Then, when i execute the transformation, it seems like Kettle doesn't read the shared objects file, and the log says:
Code:
2013/09/05 16:10:05 - Spoon - Transformation opened.
2013/09/05 16:10:05 - Spoon - Launching transformation [lettura_da_sqlserver_o_mysql]...
2013/09/05 16:10:05 - Spoon - Started the transformation execution.
2013/09/05 16:10:05 - lettura_da_sqlserver_o_mysql - Dispatching started for transformation [lettura_da_sqlserver_o_mysql]
2013/09/05 16:10:05 - Transformation metadata - Natural sort of steps executed in 0 ms (2 time previous steps calculated)
2013/09/05 16:10:05 - Table input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : An error occurred, processing will be stopped:
2013/09/05 16:10:05 - Table input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Error occured while trying to connect to the database
2013/09/05 16:10:05 - Table input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :
2013/09/05 16:10:05 - Table input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
2013/09/05 16:10:05 - Table input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Accesso non riuscito per l'utente 'saa'.
2013/09/05 16:10:05 - Table input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Error initializing step [Table input]
2013/09/05 16:10:05 - lettura_da_sqlserver_o_mysql - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Step [Table input.0] failed to initialize!
2013/09/05 16:10:05 - Table input.0 - Finished reading query, closing connection.
2013/09/05 16:10:05 - Spoon - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : lettura_da_sqlserver_o_mysql: preparing transformation execution failed
2013/09/05 16:10:05 - Spoon - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : org.pentaho.di.core.exception.KettleException:
2013/09/05 16:10:05 - Spoon - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : We failed to initialize at least one step. Execution can not begin!
2013/09/05 16:10:05 - Spoon - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :
2013/09/05 16:10:05 - Spoon - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :
2013/09/05 16:10:05 - Spoon - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:932)
2013/09/05 16:10:05 - Spoon - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.ui.spoon.trans.TransGraph$22.run(TransGraph.java:3652)
2013/09/05 16:10:05 - Spoon - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at java.lang.Thread.run(Unknown Source)
2013/09/05 16:10:05 - lettura_da_sqlserver_o_mysql - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Errors detected!
2013/09/05 16:10:05 - lettura_da_sqlserver_o_mysql - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Errors detected!
Besides, if i change the shared objects file to a file that doesn't exists, the log is the same, and doesn't tell me the file doesn't exist.
Am I missing something?
By the way, i never used shared objects before :)
Thanks!