HiromuHota / pentaho-kettle

webSpoon is a web-based graphical designer for Pentaho Data Integration with the same look & feel as Spoon
https://hub.docker.com/r/hiromuhota/webspoon/
Apache License 2.0
502 stars 193 forks source link

Configure the slave-server-config.xml. But start-pentaho.sh failed. #228

Open EvanOvO opened 3 years ago

EvanOvO commented 3 years ago

I want to use the server (Carte) in webspoon-8.3 on centos7.6. After configuring the slave-server-config.xml, but start-pentaho.sh failed. Is something wrong? I hope you can give me some advice. Thank you very much!!!

My steps are as follows:

1. Configured the slave-server-config.xml (system/kettle/slave-server-config.xml) like this:

for master server:

<slave_config>
  <max_log_lines>10000</max_log_lines>
  <max_log_timeout_minutes>2880</max_log_timeout_minutes>
  <object_timeout_minutes>240</object_timeout_minutes>

  <slaveserver>
    <name>master1</name>
    <hostname>192.168.102.234</hostname>
    <port>8084</port>
    <master>Y</master>
  </slaveserver>

</slave_config>

for slave server:

<slave_config>
  <max_log_lines>10000</max_log_lines>
  <max_log_timeout_minutes>2880</max_log_timeout_minutes>
  <object_timeout_minutes>240</object_timeout_minutes>

  <masters>
    <slaveserver>
      <name>master1</name>
      <hostname>192.168.102.234</hostname>
      <port>8084</port>
      <username>cluster</username>
      <password>cluster</password>
      <master>Y</master>
    </slaveserver>
  </masters>

  <report_to_masters>Y</report_to_masters>

  <slaveserver>
    <name>slave1-8085</name>
    <hostname>192.168.102.235</hostname>
    <port>8085</port>
    <username>cluster</username>
    <password>cluster</password>
    <master>N</master>
  </slaveserver>

</slave_config>

2. Then run start-pentaho.sh on the conmand line.

The log file is as follows :

-rw-r----- 1 root root 6472 Jan 29 10:14 catalina.2021-01-29.log
-rw-r----- 1 root root 6472 Jan 29 10:14 catalina.out
-rw-r----- 1 root root    0 Jan 29 10:13 host-manager.2021-01-29.log
-rw-r----- 1 root root 3111 Jan 29 10:14 localhost.2021-01-29.log
-rw-r----- 1 root root    0 Jan 29 10:13 localhost_access_log.2021-01-29.txt
-rw-r----- 1 root root    0 Jan 29 10:13 manager.2021-01-29.log
-rw-r----- 1 root root    0 Jan 29 10:14 pdi.log
-rw-r----- 1 root root    0 Jan 29 10:14 spoon.log

The following error is recorded in localhost.2021-01-29.log as follows :

29-Jan-2021 10:13:59.857 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
29-Jan-2021 10:14:00.109 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.pentaho.di.ui.spoon.WebSpoonServletContextListener]
 java.lang.NullPointerException
        at org.pentaho.di.ui.spoon.WebSpoonServletContextListener.contextInitialized(WebSpoonServletContextListener.java:62)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

29-Jan-2021 10:14:00.116 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class [org.pentaho.di.ui.spoon.WebSpoonServletContextListener]
 java.lang.NullPointerException
        at org.eclipse.rap.rwt.engine.RWTServletContextListener.contextDestroyed(RWTServletContextListener.java:56)
        at org.pentaho.di.ui.spoon.WebSpoonServletContextListener.contextDestroyed(WebSpoonServletContextListener.java:103)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4839)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)