Support Questions
Find answers, ask questions, and share your expertise

How to connect Remote or Local ElasticSearch into Apache Atlas

How to connect Remote or Local ElasticSearch into Apache Atlas

New Contributor

Estou tentando conectar o Atlas com o Elasticsearch, mas quando tento usar uma versão local ou remota o log é o mesmo. Alguém usou essa configuração no Atlas?

Versões:
- Elasticsearch: 7.1.0

- Atlas: 2.1.0

 

2021-04-20 10: 18: 26,143 INFO - [main:] ~ Falha ao obter a instância do gráfico, repetindo 3 vezes, erro: java.lang.IllegalArgumentException: Não foi possível instanciar a implementação: org.janusgraph.diskstorage.es .ElasticSearchIndex ( AtlasGraphProvider: 100)
2021-04-20 10: 18: 56,364 WARN - [main:] ~ Falha ao obter a instância do gráfico na tentativa 1 de 3 (AtlasGraphProvider: 118)
java.lang.IllegalArgumentException: Não foi possível instanciar a implementação: org.janusgraph .diskstorage.es .ElasticSearchIndex
em org.janusgraph.util.system.ConfigurationUtil.instantiate (ConfigurationUtil.java:64)
em org.janusgraph.diskstorage.Backend.getImplementationClass (Backend.java:440)
em org.janusgraph.diskstorage.Backend .getIndexes (Backend.java:427)
em org.janusgraph.diskstorage.Backend. <init> (Backend.java:150)
em org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.getBackend (GraphDatabaseConfiguration.java:1359)
em org.janusgraph.graphdb.database.StandardJanusGraph <. init> (StandardJanusGraph.java:146)
em org.janusgraph.core.JanusGraphFactory.open (JanusGraphFactory.java:161)
em org.janusgraph.core.JanusGraphFactory.open (JanusGraphFactory.java:132)
em org.janusgraph.core. JanusGraphFactory.open (JanusGraphFactory.java:112)
em org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphDatabase.initJanusGraph (AtlasJanusGraphDatabase.java:182)
em org.apache.atlasanceJanusgráfico AtlasJanusGraphDatabase.java:169)
em org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphDatabase.getGraph (AtlasJanusGraphDatabase.java:276)
em org.apache.atlas.repository.graph.AtlasGraphProvider.getGraphInstance (AtlasGraphProvider.java:52)
em org.apacheraphProvider.java:52) .repository.graph.AtlasGraphProvider.retry (AtlasGraphProvider.java:114)
em org.apache.atlas.repository.graph.AtlasGraphProvider.get (AtlasGraphProvider.java:102)
em org.apache.atlas.repository.graph.AtlasGraphProvider $$ EnhancerBySpringCGLIB $$ 761823a4.CGLIB $ obter $ 1 (<generated>)
em org.apache.atlas.repository.graph.AtlasGraphProvider $$ EnhancerBySpringCGLIB $$ 761823a4 $$ FastClassBySpringCGLIB $$ e8567994. org.springCGLIB $$ e8567994. org.sprokeframework atgenerated) (<generatedframework> atgenvoke >)
(. cglib.proxy.MethodProxy.invokeSuper (MethodProxy.java:228)
em org.springframework.context.annotation.ConfigurationClassEnhancer $ BeanMethodInterceptor.intercept (ConfigurationClassEnhancer.java:358)
em org.apache.atlas.repository.graph.AtlasGraphProvider $$ EnhancerBySpringCGLIB $$ 761823a4.get (<gerado>)
na sun.reflect .NativeMethodAccessorImpl.invoke0 (Método nativo)
em sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
em sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
em java.lang.reflect.Method.invoke (Método .java: 498)
em org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:162)
em org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:588)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsing:practoryMethod (AbstractAutowireCapableBactory.support.AbstractAutowireCapableBeanFactory
78 .support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1072)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:511)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory .java: 481)
em org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject (AbstractBeanFactory.java:312)
em org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230)
em org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230) em org.springframework.ava:230). factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:308)
em org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:202)
em org.springframework.beans.factory.igconfigconf (.DependencyDescriptor.resolveCandidate (.DependencyDescriptor.resolveCandidate) DependencyDescriptor.java:208)
em org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1136)
em org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1064)
em org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument (ConstructorResolver.java:beans:835)
em org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument (ConstructorResolver.java:835) em org.springfractory.beans.feans .support.ConstructorResolver.createArgumentArray (ConstructorResolver.java:741)
em org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor (ConstructorResolver.java:189)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor (AbstractAutowireCapableBeanFactory .java: 1198)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1100)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:511)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:481)
em org.springframework.beans.factory .support.AbstractBeanFactory $ 1.getObject (AbstractBeanFactory.java:312)
em org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230)
em org.springframework.beans.factory.support. AbstractBeanFactory.java:308)
em org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:202)
em org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate (DependencyDescriptor.java:208)
em org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1136)
em org.springfractory.beans.factory .support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1064)
em org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument (ConstructorResolver.java:835)
em org.springfrolveramework.beans.factory.support.Constructorgreader .java: 741)
em org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor (ConstructorResolver.java:189)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor (
AbstractAutowireCapableBeanFactory.java:1198)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanutire119 .support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:511)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:481)
em org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject ( AbstractBeanFactory.java:312)
em org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230)
em org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.beans.factory:308 ) em org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.beans.factoryframework)
em org.springframework .support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:202)
em org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans (BeanFactoryAdvisorRetrievalHelper.java:89)
em org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors (AbstractAdvisorAutoProxyCreator .java: 102)
em org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip (AspectJAwareAdvisorAutoProxyCreator.java:103)
em org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation (
AbstractAutoProxyCreator.java:248)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeaneFactory.apotenteBeanaprocessamento .support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation (AbstractAutowireCapableBeanFactory.java:1016)
em org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:471)
em org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject ( AbstractBeanFactory.java:312)
em org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230)
em org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.beans.factory:308 ) em org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.beans.factoryframework)
em org.springframework .support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:197)
em org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:761)
em org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java : 867)
em org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:543)
em org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (ContextLoader.java:443)
em org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java :.conformeInternetInspringframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java.ava:325)
em org.springframework.web. (ContextLoaderListener.java:107)
em org.apache.atlas.web.setup.KerberosAwareListener.contextInitialized (KerberosAwareListener.java:31)
em org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized (ContextHandler.callContextInitialized (ContextHandler.callContextInitialized)
. org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized (ServletContextHandler.java:533)
em org.eclipse.jetty.server.handler.ContextHandler.startContext (ContextHandler.java:816)
em org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:345)
em org.eclipse.jetty.webapp.WebAppContext.startWebapp (WebAppContext.java:1404)
em org.eclipse.jetty.webontext.Webstart (WebAppContext.java:1366)
em org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:778)
em org.eclipse.jetty.servlet.ServletContextHandler.doStart (ServletContextHandler.java:262)
em org. eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:520)
em org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:68)
em org.eclipse.jetty.util.component.ContainerLifeCy. start (ContainerLifeCycle.java:131)
em org.eclipse.jetty.server.Server.start (Server.java:422)
em org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:105)
em org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:61)
em org.eclipse.jetty.server .Server.doStart (Server.java:389)
em org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:68)
em org.apache.atlas.web.service.EmbeddedServer.start (EmbeddedServer.java : 98)
em org.apache.atlas.Atlas.main (Atlas.java:133)
 
Causado por: java.lang.reflect.InvocationTargetException
em sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Método nativo)
em sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorAccessorImplating.Instance.java:62)
em sun.reflect.NativeConstructorAccessorImpl. 45)
em java.lang.reflect.Constructor.newInstance (Constructor.java:423)
em org.janusgraph.util.system.ConfigurationUtil.instantiate (ConfigurationUtil.java:58)
... 97 mais
Causado por: java.lang. NoClassDefFoundError: Não foi possível inicializar a classe org.janusgraph.diskstorage.es.rest.RestElasticSearchClient
em org.janusgraph.diskstorage.es.rest.RestClientSetup.getElasticSearchClient (RestClientSetup.java:107)
em org.janusgraph.diskstorage.es.rest.RestClientSetup.connect (RestClientSetup.java:75)
em org.janusgraph.diskstorage.es .ElasticSearchSetup $ 1.connect (ElasticSearchSetup.java:51)
em org.janusgraph.diskstorage.es . ElasticSearchIndex.interfaceConfiguration (ElasticSearchIndex.java:437)
em org.janusgraph.diskstorage.es .ElasticSearchIndex. <init> (ElasticSearchIndex.java:324)
... 102 mais