Shwetha G S created ATLAS-1423:
----------------------------------

             Summary: AtlasClient can't be created without 
atlas-application.properties file
                 Key: ATLAS-1423
                 URL: https://issues.apache.org/jira/browse/ATLAS-1423
             Project: Atlas
          Issue Type: Bug
            Reporter: Shwetha G S


For an external project which requires AtlasClient, creating AtlasClient 
requires atlas-application.properties file in its classpath even though no 
properties are required from that file:
{noformat}
org.apache.atlas.AtlasException: Failed to load application properties
        at 
org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:92)
        at 
org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:59)
        at 
org.apache.atlas.utils.AuthenticationUtil.isKerberosAuthenticationEnabled(AuthenticationUtil.java:41)
        at org.apache.atlas.AtlasClient.getClient(AtlasClient.java:240)
        at org.apache.atlas.AtlasClient.initializeState(AtlasClient.java:206)
        at org.apache.atlas.AtlasClient.<init>(AtlasClient.java:160)
{noformat}

Even adding empty properties file fails:
{noformat}
org.apache.atlas.AtlasException: Failed to load JAAS application properties: 
configuration NULL or empty!
        at 
org.apache.atlas.security.InMemoryJAASConfiguration.init(InMemoryJAASConfiguration.java:174)
        at 
org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:60)
        at 
org.apache.atlas.AtlasClient.getClientProperties(AtlasClient.java:342)
        at org.apache.atlas.AtlasClient.initializeState(AtlasClient.java:205)
        at org.apache.atlas.AtlasClient.<init>(AtlasClient.java:160)
{noformat}

Adding a random property to properties file works



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to