Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Sending Trasformations/Jobs to Carte Web server

  1. #1
    Join Date
    Dec 2009
    Posts
    27

    Default Sending Trasformations/Jobs to Carte Web server

    Hi Kettle,
    I already run transformations and jobs via Java API.
    Also, I launch carte with the server configuration via Java API.

    But, my problem is how to send transformation/job to the running Carte web server via Java API.

    Thanks in advance.

  2. #2
    Join Date
    Nov 1999
    Posts
    9,729

    Default Trans

    Code:
    public static String sendToSlaveServer(TransMeta transMeta, TransExecutionConfiguration executionConfiguration, Repository repository) throws KettleException

  3. #3
    Join Date
    Dec 2009
    Posts
    27

    Default Re : Sending Trasformations/Jobs to Carte Web server

    Thanks Matt for your help

    Quote Originally Posted by MattCasters View Post
    Code:
    public static String sendToSlaveServer(TransMeta transMeta, TransExecutionConfiguration executionConfiguration, Repository repository) throws KettleException
    I try with following code,

    Code:
     ClusterGenerator cg = new ClusterGenerator();
                CarteLauncher cl = new CarteLauncher("localhost", 1500);
                cl.run();
                cg.launchSlaveServers();
            
     //           StepLoader.init(); 
     //          EnvUtil.environmentInit();
     
                StepLoader sl = StepLoader.getInstance();
                StepLoader.init(new String[] { "org.pentaho.di.trans.steps" });
                TransMeta transMeta = new TransMeta("C:/excel2XML.ktr");
                Trans trans = new Trans(transMeta);
                trans.getTransMeta().setInternalKettleVariables(trans);
                
                TransExecutionConfiguration jec = new TransExecutionConfiguration();
                jec.setRemoteServer(cg.LOCAL_TEST_SLAVES[0]);
                trans.sendToSlaveServer(transMeta, jec, null);
    but it generates error:

    Exception in thread "main" org.pentaho.di.core.exception.KettleException:
    org.pentaho.di.core.exception.KettleException:
    There was an error posting the transformation on the remote server:
    org.pentaho.di.core.exception.KettleXMLException:
    Error reading object from XML file

    Unable to load step info from XML step nodeorg.pentaho.di.core.exception.KettleStepLoaderException:
    Unable to load class for step/plugin with id [ExcelInput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.

    Unable to load class for step/plugin with id [ExcelInput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.

    at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2799)
    at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2351)
    at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2337)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2324)
    at org.pentaho.di.trans.TransConfiguration.<init>(TransConfiguration.java:59)
    at org.pentaho.di.trans.TransConfiguration.fromXML(TransConfiguration.java:66)
    at org.pentaho.di.http://www.AddTransServlet.doGet(Add...ervlet.java:97)
    at org.pentaho.di.http://www.AddTransServlet.doPut(Add...ervlet.java:55)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:730)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
    at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
    at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
    Caused by: org.pentaho.di.core.exception.KettleXMLException:

    Unable to load step info from XML step nodeorg.pentaho.di.core.exception.KettleStepLoaderException:
    Unable to load class for step/plugin with id [ExcelInput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.

    So what I missing ...

  4. #4
    Join Date
    Nov 1999
    Posts
    9,729

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.