Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: PDI 6.0.0.0-353 - error when starting job from shell

  1. #1

    Default PDI 6.0.0.0-353 - error when starting job from shell

    The job runs, but the script hangs for much longer than expected. Looks like a karaf error. Any and all help is appreciated.


    Trying to run the following script from command line:
    echo off
    "C:\Program Files\data-integration\kitchen" /file:C:\Documents\PDI_Repo\TestEmail.kjb /level:basic
    > C:\Documents\Scripts\Logs\TestingEmail_log.txt



    Receive the following error:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    >echo off
    "C:\Program Files\data-integration\kitchen" /file:C:\Documents\PDI_Repo\TestEmai
    l.kjb /level:basic
    DEBUG: Using JAVA_HOME
    DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jdk1.7.0_51
    DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jdk1.7.0_51\bin\java.exe
    C:\Program Files\data-integration>"C:\Program Files\Java\jdk1.7.0_51\bin\java.ex
    e" "-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dhttps.protocols=TLSv1,TLSv
    1.1,TLSv1.2" "-Djava.library.path=libswt\win64" "-DKETTLE_HOME=" "-DKETTLE_REPOS
    ITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKET
    TLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\pentaho-application-lau
    ncher-6.0.0.0-353.jar -lib ..\libswt\win64 -main org.pentaho.di.kitchen.Kitchen
    /file:C:\Documents\PDI_Repo\TestEmail.kjb /level:basic
    12:52:31,876 ERROR [KarafBoot] Error starting Karaf
    java.io.IOException: Destination 'C:\Program Files\data-integration\.\karaf-copy
    ' directory cannot be created
    at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:1213)
    at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1186)
    at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1058)
    at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1027)
    at org.pentaho.platform.osgi.KarafBoot.startup(KarafBoot.java:88)
    at org.pentaho.di.osgi.registryExtension.OSGIPluginRegistryExtension.ini
    t(OSGIPluginRegistryExtension.java:105)
    at org.pentaho.di.core.plugins.PluginRegistry.init(PluginRegistry.java:5
    58)
    at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironm
    ent.java:101)
    at org.pentaho.di.kitchen.Kitchen$1.call(Kitchen.java:89)
    at org.pentaho.di.kitchen.Kitchen$1.call(Kitchen.java:83)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
    java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:615)
    at java.lang.Thread.run(Thread.java:744)
    log4j:ERROR Could not create an Appender. Reported error follows.
    java.lang.ClassCastException: org.apache.log4j.ConsoleAppender cannot be cast to
    org.apache.log4j.Appender
    at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.ja
    va:248)
    at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurat
    or.java:176)
    at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfi
    gurator.java:191)
    at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOM
    Configurator.java:523)
    at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.ja
    va:436)
    at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1004)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
    :872)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
    :755)
    at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:8
    96)
    at org.pentaho.di.core.logging.log4j.Log4jLogging.applyLog4jConfiguratio
    n(Log4jLogging.java:85)
    at org.pentaho.di.core.logging.log4j.Log4jLogging.init(Log4jLogging.java
    :71)
    at org.pentaho.di.core.KettleClientEnvironment.initLogginPlugins(KettleC
    lientEnvironment.java:141)
    at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironm
    ent.java:104)
    at org.pentaho.di.kitchen.Kitchen$1.call(Kitchen.java:89)
    at org.pentaho.di.kitchen.Kitchen$1.call(Kitchen.java:83)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
    java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:615)
    at java.lang.Thread.run(Thread.java:744)
    log4j:ERROR Could not create an Appender. Reported error follows.
    java.lang.ClassCastException: org.apache.log4j.ConsoleAppender cannot be cast to
    org.apache.log4j.Appender
    at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.ja
    va:248)
    at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurat
    or.java:176)
    at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfi
    gurator.java:191)
    at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOM
    Configurator.java:523)
    at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:4
    92)
    at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
    :872)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
    :755)
    at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:8
    96)
    at org.pentaho.di.core.logging.log4j.Log4jLogging.applyLog4jConfiguratio
    n(Log4jLogging.java:85)
    at org.pentaho.di.core.logging.log4j.Log4jLogging.init(Log4jLogging.java
    :71)
    at org.pentaho.di.core.KettleClientEnvironment.initLogginPlugins(KettleC
    lientEnvironment.java:141)
    at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironm
    ent.java:104)
    at org.pentaho.di.kitchen.Kitchen$1.call(Kitchen.java:89)
    at org.pentaho.di.kitchen.Kitchen$1.call(Kitchen.java:83)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
    java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:615)
    at java.lang.Thread.run(Thread.java:744)
    2015/11/11 12:52:32 - Kitchen - Logging is at level : Basic logging
    2015/11/11 12:52:32 - Kitchen - Start of run.
    12:52:45,775 ERROR [KarafLifecycleListener] The Kettle Karaf Lifycycle Listener
    failed to execute properly. Releasing lifecycle hold, but some services may be u
    navailable.
    2015/11/11 12:52:46 - TestEmail - Start of job execution
    2015/11/11 12:52:46 - TestEmail - Starting entry [TEST_EMAIL]

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Looks like a simple file access problem to me, but that would be too simple ...

    java.io.IOException: Destination 'C:\Program Files\data-integration\.\karaf-copy
    ' directory cannot be created
    So long, and thanks for all the fish.

  3. #3

    Default

    Bingo. Worked like a charm when changing the folder permissions.

    Thanks! SOLVED.

  4. #4
    Join Date
    Feb 2011
    Posts
    152

    Default

    I am having this same issue on Linux. I tried your solution to change file permissions, and it gets farther, but now I am getting this error:

    ERROR [BlueprintContainerImpl] Unable to start blueprint container for bundle pdi-dataservice-server-plugin
    org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to instantiate components

    Any ideas?

    CentOs 6.x and java 1.70

  5. #5
    Join Date
    Aug 2011
    Posts
    236

    Default

    Hi,

    I too am getting various errors :-

    log4j:ERROR Could not parse url [file:/pentaho/pdi_6_0_0/data-integration/./system/osgi/log4j.xml

    and

    12:01:12,165 ERROR [KarafLifecycleListener] Error in Blueprint Watcher

    These messages clog up the logs and makes it difficult to actually see whats going on.

    Can we get a permanent solution, please??

    Seems like a pre-release period where average 'GA Joe' user can provide feedback/issues might be good thing to have.

    Thanks,
    PDI 8.0.0
    MySQL - 5.6.27
    Redshift - 1.0.1485
    PostgreSQL 8.0.2
    OS - Ubuntu 10.04.2

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.