Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25197

NullPointerException if there is no proper HDP/HDF repo version folder

    XMLWordPrintableJSON

Details

    Description

      Ambari server fails with "NullPointerException" if cluster is pointing to specific HDP/HDF/xxx
      and if that folder does not exist in resources folders.
      Should do NULL check and then print proper meaning full error message so that customer's can install/correct that.

      15 Aug 2017 15:54:02,685  INFO [Stack Version Loading Thread] LatestRepoCallable:80 - Loading latest URL info for stack HDP-2.3 from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
      15 Aug 2017 15:54:02,691 ERROR [main] AmbariServer:929 - Failed to run the Ambari Server
      org.apache.ambari.server.AmbariException: An error occured during updating current repository versions with stack repositories.
      	at org.apache.ambari.server.stack.UpdateActiveRepoVersionOnStartup.process(UpdateActiveRepoVersionOnStartup.java:108)
      	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128)
      	at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:921)
      Caused by: java.lang.NullPointerException
      	at org.apache.ambari.server.stack.UpdateActiveRepoVersionOnStartup.process(UpdateActiveRepoVersionOnStartup.java:94)
      	... 2 more
      

      Attachments

        Activity

          People

            apappu@hortonworks.com amarnath reddy pappu
            apappu@hortonworks.com amarnath reddy pappu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h 50m
                6h 50m