Search in sources :

Example 1 with AtlasService

use of org.apache.atlas.falcon.service.AtlasService in project incubator-atlas by apache.

the class FalconHookIT method setUp.

@BeforeClass
public void setUp() throws Exception {
    Configuration atlasProperties = ApplicationProperties.get();
    if (!AuthenticationUtil.isKerberosAuthenticationEnabled()) {
        atlasClient = new AtlasClient(atlasProperties.getStringArray(HiveMetaStoreBridge.ATLAS_ENDPOINT), new String[] { "admin", "admin" });
    } else {
        atlasClient = new AtlasClient(atlasProperties.getStringArray(HiveMetaStoreBridge.ATLAS_ENDPOINT));
    }
    AtlasService service = new AtlasService();
    service.init();
    STORE.registerListener(service);
    CurrentUser.authenticate(System.getProperty("user.name"));
}
Also used : AtlasService(org.apache.atlas.falcon.service.AtlasService) Configuration(org.apache.commons.configuration.Configuration) AtlasClient(org.apache.atlas.AtlasClient) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

AtlasClient (org.apache.atlas.AtlasClient)1 AtlasService (org.apache.atlas.falcon.service.AtlasService)1 Configuration (org.apache.commons.configuration.Configuration)1 BeforeClass (org.testng.annotations.BeforeClass)1