Reply
Highlighted
Expert Contributor
Posts: 162
Registered: ‎07-29-2013

PurgeService. It doesn't do anything or throw NPE during start if I try to configure it

[ Edited ]

Hi, we are using Oozie vervsion  Oozie BUILD_VERSION [3.3.2-cdh4.3.0] compiled by [jenkins] on [2013.05.28-04:29:38GMT]

 
I want to PurgeService work.
I did set these props:

<!-- Purging old materializations-->
<!-- Keep them for three months -->
<property>
    <name>oozie.service.PurgeService.older.than</name>
    <value>90</value>
</property>

<property>
    <name>oozie.service.PurgeService.coord.older.than</name>
    <value>90</value>
</property>

<property>
    <name>oozie.service.PurgeService.purge.limit</name>
    <value>100</value>
</property>

<property>
    <name>oozie.service.PurgeService.purge.interval</name>
    <value>100</value>
</property>

 

 
 
The idea is: keep actions data for 90 dayes or not more than last 100 items.
oozie.service.PurgeService.purge.interval is set to 100 seconds.
Nothing happened after 100 seconds.
 
I've tried to add this section:
<!-- Services, let's specify explicitly PurgeService -->
<property>
     <name>oozie.services</name>
    <value>
        org.apache.oozie.service.PurgeService,
        org.apache.oozie.service.SchedulerService
    </value>
</property>
 
Now Ooize is not starting:
org.apache.oozie.service.ServiceException: E0103: Could not load service classes, null
at org.apache.oozie.service.Services.loadServices(Services.java:291)
at org.apache.oozie.service.Services.init(Services.java:208)
at org.apache.oozie.servlet.ServicesLoader.contextInitialized(ServicesLoader.java:39)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.NullPointerException
at org.apache.oozie.service.PurgeService.init(PurgeService.java:76)
at org.apache.oozie.service.Services.setServiceInternal(Services.java:368)
at org.apache.oozie.service.Services.setService(Services.java:354)
at org.apache.oozie.service.Services.loadServices(Services.java:287)
... 26 more
 
What do I do wrong?
 
Announcements