Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Problems in launching Kettle Transormation in Java application

  1. #1
    Join Date
    Jun 2013
    Posts
    4

    Default Problems in launching Kettle Transormation in Java application

    i use the java api to launching a ktr, and the ktr:" use the Hadoop File Output"
    this is the java code:

    public static void runTrans(String filename) throws Exception {

    KettleEnvironment.init();

    TransMeta transMeta = new TransMeta(filename);

    Trans trans = new Trans(transMeta);
    trans.prepareExecution(null);
    trans.startThreads();
    trans.waitUntilFinished();

    if (trans.getErrors()!=0) {
    System.out.println("Error");
    }
    }

    it is good when i use the apache hadoop
    but when i use the cloudera, i always can't connect the cloudera
    who can help me?
    the log is :adoop File Output - Couldn't open file hdfs://cloudera:cloudera@CDH4:8020/user/

    i use the apache hadoop is ok,why?

  2. #2
    Join Date
    Jun 2013
    Posts
    4

    Default

    modify the plugin file

Tags for this Thread

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.