Openshift 上带有 Cassandra 的 Apache Atlas,启动 Atlas 服务器时出现异常
Apache Atlas with Cassandra on Openshift , Exception while starting Atlas server
我正在设置 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
我在 () 的帮助下解决了创建键空间的 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.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.newAuthenticator(AuthProvider.java:40)
at com.datastax.driver.core.Connection.apply(Connection.java:257)
at com.datastax.driver.core.Connection.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)
我也看到了 open Jira issue。
如果有人已经解决了这个问题,请提出解决方法
在 Atlas 2.2.0 之前正式不支持经过身份验证的 Cassandra。但是在构建代码时,我们可以更新下面 PR 中给出的两个文件并构建 Atlas。哪个按预期工作
我正在设置 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
我在 (
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.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.newAuthenticator(AuthProvider.java:40)
at com.datastax.driver.core.Connection.apply(Connection.java:257)
at com.datastax.driver.core.Connection.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)
我也看到了 open Jira issue。 如果有人已经解决了这个问题,请提出解决方法
在 Atlas 2.2.0 之前正式不支持经过身份验证的 Cassandra。但是在构建代码时,我们可以更新下面 PR 中给出的两个文件并构建 Atlas。哪个按预期工作