The same problem with 3.3.2-CDH-4.3
Don't know what to do. We have more than 2000 materializations and we can't 
setup purging policies

четверг, 9 августа 2012 г., 21:14:38 UTC+4 пользователь Jabir Ahmed написал:
>
>  this is where its failing
>
>    @Override
>     public void init(Services services) {
>         Configuration conf = services.getConf();
>         Runnable purgeJobsRunnable = new PurgeRunnable(conf.getInt(
>                 CONF_OLDER_THAN, 30), conf.getInt(COORD_CONF_OLDER_THAN, 7), 
> conf.getInt(BUNDLE_CONF_OLDER_THAN, 7),
>                                       conf.getInt(PURGE_LIMIT, 100));
>         services.get(SchedulerService.class).schedule(purgeJobsRunnable, 10, 
> conf.getInt(CONF_PURGE_INTERVAL, 3600),
>          &nbsp
> ;                                            SchedulerService.Unit.SEC);
>         if (Services.get().getConf().getBoolean(USE_XCOMMAND, true) == false) 
> {
>             useXCommand = false;
>         }
>
> Thanks
>
> Jabir
>
>
> On 8/9/12 10:33 PM, jabir ahmed wrote:
>  
> i enabled the purge service in oozie and i see this error in the logs
>
> 2012-08-09 16:59:57,625 FATAL Services:533 - USER[-] GROUP[-] null
> java.lang.NullPointerException
>     at org.apache.oozie.service.PurgeService.init(PurgeService.java:92)
>     at 
> org.apache.oozie.service.Services.setServiceInternal(Services.java:310)
>     at org.apache.oozie.service.Services.setService(Services.java:296)
>     at org.apache.oozie.service.Services.init(Services.java:206)
>     at 
> org.apache.oozie.servlet.ServicesLoader.contextInitialized(ServicesLoader.java:40)
>
>
> which points to this piece of the code
>
> 091    092            if (Services.get().getConf().getBoolean(USE_XCOMMAND, 
> true) == false) {093                useXCommand = false;094            }
>
> any idea how to get over this issue
>
> Thanks
>
> Jabir
>
>
>  
> 

Reply via email to