Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Please see the Cloudera blog for information on the Cloudera Response to CVE-2021-4428

Get Error when executing ./generate.sh

New Contributor
[root@sandbox stream-simulator]# ./generate.sh                                                                       
Exception in thread "main" java.lang.NullPointerException                                                            
        at java.util.ComparableTimSort.sort(ComparableTimSort.java:146)                                              
        at java.util.Arrays.sort(Arrays.java:472)                                                                    
        at com.hortonworks.streaming.impl.domain.transport.route.TruckRoutesParser.parseAllRoutes(TruckRoutesParser.j
ava:76)                                                                                                              
        at com.hortonworks.streaming.impl.domain.transport.TruckConfiguration.parseRoutes(TruckConfiguration.java:60)
        at com.hortonworks.streaming.impl.domain.transport.TruckConfiguration.initialize(TruckConfiguration.java:37)  

at com.hortonworks.App.main(App.java:32)

3 REPLIES 3

Super Collaborator

@srivatsan chakravarti, make sure you have copied config.properties and storm-demo-webapp/routes to /etc/storm_demo folder. It is mentioned in a tutorial as one of the steps.

New Contributor

Yes, it is copied , below is listing..

root@sandbox stream-simulator]# cd /etc/storm_demo                                                                  
[root@sandbox storm_demo]# ls                                                                                        
config.properties  midwestnewyorktest
[root@sandbox storm_demo]# ls -alt                                                                                   
total 32                                                                                                             
drwxr-xr-x    5 root root  4096 2016-12-12 03:37 .
-rw-r--r--    1 root root  2274 2016-12-12 03:37 config.properties                                                   
drwxr-xr-x    2 root root  4096 2016-12-12 03:37 newyork
drwxr-xr-x    2 root root  4096 2016-12-12 03:37 test
drwxr-xr-x    2 root root  4096 2016-12-12 03:37 midwest
drwxr-xr-x. 117 root root 12288 2016-12-12 03:37 ..
[root@sandbox storm_demo]#                          

Super Collaborator

@srivatsan chakravarti , did your maven clean package step finish successfully?