0

我正在设置 Apache Atlas,其中 Cassandra 作为后端,solr 作为索引器。以下是我对 Atlas-cassandra 的配置设置

   atlas.graph.storage.backend=cql
    atlas.graph.storage.hostname=cassandra-dc-service
    atlas.graph.storage.cassandra.keyspace=JanusGraph
    atlas.graph.storage.clustername=cstone-cassandra
    atlas.graph.storage.port=9042
  atlas.EntityAuditRepository.impl=org.apache.atlas.repository.audit.CassandraBasedAuditRepository
    atlas.EntityAuditRepository.keyspace=atlas_audit
    atlas.EntityAuditRepository.replicationFactor=1
    atlas.graph.storage.username=cassandra-superuser
    atlas.graph.storage.password=xxxxxx

我从(Apache atlas 2.1 configuration connection cassandra backend [help])获得帮助来解决创建密钥空间的 cassandra 连接问题。但是 Atlas Service 没有提出以下例外:

2022-02-17 22:03:02,742 ERROR - [main:] ~ Context initialization failed (ContextLoader:350)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'services': Invocation of init method failed; nested excep
        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotat
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutow
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:16
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
Caused by: com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host cassandra-dc-service/
        at com.datastax.driver.core.AuthProvider$1.newAuthenticator(AuthProvider.java:40)                                                        
        at com.datastax.driver.core.Connection$5.apply(Connection.java:257)                                                                      
        at com.datastax.driver.core.Connection$5.apply(Connection.java:242)                                                                      
        at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:210)        
        at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:199)
        at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:111)                           
        at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:398)          
        at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1024)     
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)

我看到同样的开放 Jira 问题。如果有人已经解决了这个问题,请提出解决方法

4

1 回答 1

1

在 Atlas 2.2.0 之前正式不支持经过身份验证的 Cassandra。但是在构建代码时,我们可以更新 PR 下面给出的两个文件并构建 Atlas。哪个按预期工作

https://github.com/apache/atlas/pull/67

于 2022-02-24T17:11:34.230 回答