Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble in running a transformation from the repository #61

Open
eric-code opened this issue Jan 12, 2018 · 0 comments
Open

trouble in running a transformation from the repository #61

eric-code opened this issue Jan 12, 2018 · 0 comments

Comments

@eric-code
Copy link

when i invoke the method (runTransformationFromRepository) in the class org.pentaho.di.sdk.samples.embedding.RunningTransformations with the code below

     instance.runTransformationFromRepository("MyRepoCE", "/home/admin", "parametrized_transformation", "admin", "password");

i got a exception like this:

org.pentaho.di.core.exception.KettleException: 
Cannot find repository "MyRepoCE". Please make sure it is defined in your /Users/tony/.kettle/repositories.xml file

	at org.pentaho.di.sdk.samples.embedding.RunningTransformations.runTransformationFromRepository(RunningTransformations.java:210)
	at org.pentaho.di.sdk.samples.embedding.RunningTransformations.main(RunningTransformations.java:90)

here is the content of my repository file

<?xml version="1.0" encoding="UTF-8"?>
<repositories>
  <repository>    
    <id>PentahoEnterpriseRepository</id>
    <name>MyRepoCE</name>
    <description>Pentaho repository |http://192.168.9.100:8080/pentaho</description>
    <is_default>false</is_default>
    <repository_location_url>http://192.168.9.100:8080/pentaho</repository_location_url>
    <version_comment_mandatory>N</version_comment_mandatory>
  </repository>  <repository>    
    <id>PentahoEnterpriseRepository</id>
    <name>1moreRepo</name>
    <description>Pentaho repository | http://192.168.9.100:8080/pentaho</description>
    <is_default>false</is_default>
    <repository_location_url>http://192.168.9.100:8080/pentaho</repository_location_url>
    <version_comment_mandatory>N</version_comment_mandatory>
  </repository>  
</repositories>

the pentaho-server i use is compiled from https://github.com/pentaho/pentaho-platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant