Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2115

Atlas service def creation failing during Ranger installation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.0
    • Component/s: Ranger
    • Labels:
      None

      Description

      Atlas service def creation failed during manual installation of Ranger with the following Error:

      2018-05-29 04:32:25,888 [localhost-startStop-1] ERROR org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil (EmbeddedServiceDefsUtil.java:246) - EmbeddedServiceDefsUtil.getOrCreateServiceDef(): failed to load/create serviceType atlas
      com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
              at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
              at com.google.gson.Gson.fromJson(Gson.java:803)
              at com.google.gson.Gson.fromJson(Gson.java:741)
              at org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil.loadEmbeddedServiceDef(EmbeddedServiceDefsUtil.java:269)
              at org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil.getOrCreateServiceDef(EmbeddedServiceDefsUtil.java:230)
              at org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil.init(EmbeddedServiceDefsUtil.java:136)
              at org.apache.ranger.biz.ServiceDBStore$1.doInTransaction(ServiceDBStore.java:352)
              at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
              at org.apache.ranger.biz.ServiceDBStore.initStore(ServiceDBStore.java:349)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pradeep.agrawal Pradeep Agrawal
                Reporter:
                pradeep.agrawal Pradeep Agrawal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: