You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Mindaugas Pocius (JIRA)" <ji...@apache.org> on 2018/07/17 13:32:00 UTC

[jira] [Commented] (ATLAS-2759) Atlas start up fail with error Error creating bean with name 'setupSteps' defined in URL [jar:file:/data/apache-atlas/apache-atlas-1.0.0/server /webapp/atlas/WEB-INF/lib/atlas-webapp-1.0.0.jar!/org/apache/atlas/web/setup/SetupSteps.class]:"

    [ https://issues.apache.org/jira/browse/ATLAS-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16546611#comment-16546611 ] 

Mindaugas Pocius commented on ATLAS-2759:
-----------------------------------------

Set this to false:
{code:java}
atlas.server.run.setup.on.start=false
{code}

> Atlas start up fail with error  Error creating bean with name 'setupSteps' defined in URL [jar:file:/data/apache-atlas/apache-atlas-1.0.0/server /webapp/atlas/WEB-INF/lib/atlas-webapp-1.0.0.jar!/org/apache/atlas/web/setup/SetupSteps.class]:"
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-2759
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2759
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core, atlas-webui
>            Reporter: Mahesh Kakol
>            Priority: Major
>
> Kindly help me fix this issue,
> {code:java}
> 2018-06-15 21:51:39,259 WARN - [main:] ~ Failed startup of context o.e.j.w.WebAppContext@4e25282d{/,file:///data/apache-atlas/apache-atlas-1.0.0/server/webapp/atlas/,UNAVAILABLE
> }{/data/apache-atlas/apache-atlas-1.0.0/server/webapp/atlas} (WebAppContext:529)
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'setupSteps' defined in URL [jar:file:/data/apache-atlas/apache-atlas-1.0.0/server
> /webapp/atlas/WEB-INF/lib/atlas-webapp-1.0.0.jar!/org/apache/atlas/web/setup/SetupSteps.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception
> is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'java.util.Set<org.apache.atlas.setup.SetupStep>' available: expected at least 1 b
> ean which qualifies as autowire candidate. Dependency annotations: {}
> at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
> at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1201)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1103)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
> 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)
> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
> at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
> at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
> at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
> at org.apache.atlas.web.setup.KerberosAwareListener.contextInitialized(KerberosAwareListener.java:31)
> at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:843)
> at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:533)
> at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:816)
> at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:345)
> at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1404)
> at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1366)
> at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
> at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
> at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
> at org.eclipse.jetty.server.Server.start(Server.java:422)
> at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
> at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
> at org.eclipse.jetty.server.Server.doStart(Server.java:389)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> at org.apache.atlas.web.service.EmbeddedServer.start(EmbeddedServer.java:98)
> at org.apache.atlas.Atlas.main(Atlas.java:133)
> Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'java.util.Set<org.apache.atlas.setup.SetupStep>' available: expected at le
> ast 1 bean which qualifies as autowire candidate. Dependency annotations: {}
> at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1493)
> at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1104)
> at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
> at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
> at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
> ... 34 more{code}
>  
>  
> Please find my Configuration details 
>  
>  
> {code:java}
> #
> # Licensed to the Apache Software Foundation (ASF) under one
> # or more contributor license agreements. See the NOTICE file
> # distributed with this work for additional information
> # regarding copyright ownership. The ASF licenses this file
> # to you under the Apache License, Version 2.0 (the
> # "License"); you may not use this file except in compliance
> # with the License. You may obtain a copy of the License at
> #
> # http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing, software
> # distributed under the License is distributed on an "AS IS" BASIS,
> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> # See the License for the specific language governing permissions and
> # limitations under the License.
> #
> ######### Graph Database Configs #########
> # Graph Database
> #Configures the graph database to use. Defaults to JanusGraph
> #atlas.graphdb.backend=org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphDatabase
> # Graph Storage
> # Set atlas.graph.storage.backend to the correct value for your desired storage
> # backend. Possible values:
> #
> # hbase
> # cassandra
> # embeddedcassandra - Should only be set by building Atlas with -Pdist,embedded-cassandra-solr
> # berkeleyje
> #
> # See the configuration documentation for more information about configuring the various storage backends.
> #
> atlas.graph.storage.backend=cassandra
> #atlas.graph.storage.hbase.table=apache_atlas_janus
> #Hbase
> #For standalone mode , specify localhost
> #for distributed mode, specify zookeeper quorum here
> #atlas.graph.storage.hostname=
> atlas.graph.storage.hostname=10.226.114.59
> #atlas.graph.storage.hbase.regions-per-server=1
> #atlas.graph.storage.lock.wait-time=10000
> #In order to use Cassandra as a backend, comment out the hbase specific properties above, and uncomment the
> #the following properties
> #atlas.graph.storage.clustername=
> atlas.graph.storage.clustername=JanusGraph
> #atlas.graph.storage.port=9160
> atlas.graph.storage.username=cassandra
> atlas.graph.storage.password=xxxxxx
> #atlas.storage.cassandra.keyspace=
> #atlas.storage.cassandra.astyanax.cluster-name=
> # Gremlin Query Optimizer
> #
> # Enables rewriting gremlin queries to maximize performance. This flag is provided as
> # a possible way to work around any defects that are found in the optimizer until they
> # are resolved.
> #atlas.query.gremlinOptimizerEnabled=true
> # Delete handler
> #
> # This allows the default behavior of doing "soft" deletes to be changed.
> #
> # Allowed Values:
> # org.apache.atlas.repository.store.graph.v1.SoftDeleteHandlerV1 - all deletes are "soft" deletes
> # org.apache.atlas.repository.store.graph.v1.HardDeleteHandlerV1 - all deletes are "hard" deletes
> #
> #atlas.DeleteHandlerV1.impl=org.apache.atlas.repository.store.graph.v1.SoftDeleteHandlerV1
> # Entity audit repository
> #
> # This allows the default behavior of logging entity changes to hbase to be changed.
> #
> # Allowed Values:
> # org.apache.atlas.repository.audit.HBaseBasedAuditRepository - log entity changes to hbase
> # org.apache.atlas.repository.audit.CassandraBasedAuditRepository - log entity changes to cassandra
> # org.apache.atlas.repository.audit.NoopEntityAuditRepository - disable the audit repository
> #
> #atlas.EntityAuditRepository.impl=org.apache.atlas.repository.audit.HBaseBasedAuditRepository
> #atlas.EntityAuditRepository.impl=org.apache.atlas.repository.audit.CassandraBasedAuditRepository
> # if Cassandra is used as a backend for audit from the above property, uncomment and set the following
> # properties appropriately. If using the embedded cassandra profile, these properties can remain
> # commented out.
>  atlas.EntityAuditRepository.keyspace=JanusGraph
>  atlas.EntityAuditRepository.replicationFactor=3
> # Graph Search Index
> atlas.graph.index.search.backend=solr
> #Solr
> #Solr cloud mode properties
> atlas.graph.index.search.solr.mode=cloud
> atlas.graph.index.search.solr.zookeeper-url=10.36.152.167:2181,10.227.190.42:2181,10.227.186.242:2181
> atlas.graph.index.search.solr.zookeeper-connect-timeout=160000
> atlas.graph.index.search.solr.zookeeper-session-timeout=160000
> atlas.graph.index.search.solr.wait-searcher=true
> #Solr http mode properties
> #atlas.graph.index.search.solr.mode=http
> #atlas.graph.index.search.solr.http-urls=http://localhost:8983/solr
> # ElasticSearch support (Tech Preview)
> # Comment out above solr configuration, and uncomment the following two lines. Additionally, make sure the
> # hostname field is set to a comma delimited set of elasticsearch master nodes, or an ELB that fronts the masters.
> #
> # Elasticsearch does not provide authentication out of the box, but does provide an option with the X-Pack product
> # https://www.elastic.co/products/x-pack/security
> #
> # Alternatively, the JanusGraph documentation provides some tips on how to secure Elasticsearch without additional
> # plugins: http://docs.janusgraph.org/latest/elasticsearch.html
> #atlas.graph.index.hostname=localhost
> #atlas.graph.index.search.elasticsearch.client-only=true
> # Solr-specific configuration property
> atlas.graph.index.search.max-result-set-size=150
> ######### Notification Configs #########
> #atlas.notification.embedded=true
> #atlas.kafka.data=${sys:atlas.home}/data/kafka
> atlas.kafka.zookeeper.connect=10.36.152.167:2181,10.227.190.42:2181,10.227.186.242:2181
> #atlas.kafka.bootstrap.servers=localhost:9027
> atlas.kafka.bootstrap.servers=10.36.140.237:9096,10.118.52.165:9096,10.118.52.181:9096
> atlas.kafka.zookeeper.session.timeout.ms=400
> atlas.kafka.zookeeper.connection.timeout.ms=200
> atlas.kafka.zookeeper.sync.time.ms=20
> atlas.kafka.auto.commit.interval.ms=1000
> atlas.kafka.hook.group.id=atlas
> atlas.kafka.enable.auto.commit=false
> atlas.kafka.auto.offset.reset=earliest
> atlas.kafka.session.timeout.ms=30000
> atlas.kafka.offsets.topic.replication.factor=1
> atlas.kafka.poll.timeout.ms=1000
> atlas.notification.create.topics=true
> atlas.notification.replicas=1
> atlas.notification.topics=ATLAS_HOOK,ATLAS_ENTITIES
> atlas.notification.log.failed.messages=true
> atlas.notification.consumer.retry.interval=500
> atlas.notification.hook.retry.interval=1000
> # Enable for Kerberized Kafka clusters
> #atlas.notification.kafka.service.principal=kafka/_HOST@EXAMPLE.COM
> #atlas.notification.kafka.keytab.location=/etc/security/keytabs/kafka.service.keytab
> ## Server port configuration
> #atlas.server.http.port=21000
> atlas.server.http.port=21000
> #atlas.server.https.port=21443
> ######### Security Properties #########
> # SSL config
> atlas.enableTLS=false
> #truststore.file=/path/to/truststore.jks
> #cert.stores.credential.provider.path=jceks://file/path/to/credentialstore.jceks
> #following only required for 2-way SSL
> #keystore.file=/path/to/keystore.jks
> # Authentication config
> atlas.authentication.method.kerberos=false
> atlas.authentication.method.file=true
> #### ldap.type= LDAP or AD
> atlas.authentication.method.ldap.type=none
> #### user credentials file
> atlas.authentication.method.file.filename=${sys:atlas.home}/conf/users-credentials.properties
> ### groups from UGI
> #atlas.authentication.method.ldap.ugi-groups=true
> ######## LDAP properties #########
> #atlas.authentication.method.ldap.url=ldap://<ldap server url>:389
> #atlas.authentication.method.ldap.userDNpattern=uid={0},ou=People,dc=example,dc=com
> #atlas.authentication.method.ldap.groupSearchBase=dc=example,dc=com
> #atlas.authentication.method.ldap.groupSearchFilter=(member=uid={0},ou=Users,dc=example,dc=com)
> #atlas.authentication.method.ldap.groupRoleAttribute=cn
> #atlas.authentication.method.ldap.base.dn=dc=example,dc=com
> #atlas.authentication.method.ldap.bind.dn=cn=Manager,dc=example,dc=com
> #atlas.authentication.method.ldap.bind.password=<password>
> #atlas.authentication.method.ldap.referral=ignore
> #atlas.authentication.method.ldap.user.searchfilter=(uid={0})
> #atlas.authentication.method.ldap.default.role=<default role>
> ######### Active directory properties #######
> #atlas.authentication.method.ldap.ad.domain=example.com
> #atlas.authentication.method.ldap.ad.url=ldap://<AD server url>:389
> #atlas.authentication.method.ldap.ad.base.dn=(sAMAccountName={0})
> #atlas.authentication.method.ldap.ad.bind.dn=CN=team,CN=Users,DC=example,DC=com
> #atlas.authentication.method.ldap.ad.bind.password=<password>
> #atlas.authentication.method.ldap.ad.referral=ignore
> #atlas.authentication.method.ldap.ad.user.searchfilter=(sAMAccountName={0})
> #atlas.authentication.method.ldap.ad.default.role=<default role>
> ######### JAAS Configuration ########
> #atlas.jaas.KafkaClient.loginModuleName = com.sun.security.auth.module.Krb5LoginModule
> #atlas.jaas.KafkaClient.loginModuleControlFlag = required
> #atlas.jaas.KafkaClient.option.useKeyTab = true
> #atlas.jaas.KafkaClient.option.storeKey = true
> #atlas.jaas.KafkaClient.option.serviceName = kafka
> #atlas.jaas.KafkaClient.option.keyTab = /etc/security/keytabs/atlas.service.keytab
> #atlas.jaas.KafkaClient.option.principal = atlas/_HOST@EXAMPLE.COM
> ######### Server Properties #########
> #atlas.rest.address=http://localhost:21000
> atlas.rest.address=http://10.227.190.42:21000
> # If enabled and set to true, this will run setup steps when the server starts
> atlas.server.run.setup.on.start=true
> ######### Entity Audit Configs #########
> #atlas.audit.hbase.tablename=apache_atlas_entity_audit
> #atlas.audit.zookeeper.session.timeout.ms=1000
> #atlas.audit.hbase.zookeeper.quorum=localhost:2181
> ######### High Availability Configuration ########
> #atlas.server.ha.enabled=false
> atlas.server.ha.enabled=false
> #### Enabled the configs below as per need if HA is enabled #####
> atlas.server.ids=id1,id2
> #atlas.server.address.id1=localhost:21000
> atlas.server.address.id1:10.227.190.42:21000
> atlas.server.address.id2:10.227.186.242:21000
> #atlas.server.ha.zookeeper.connect=localhost:2181
> atlas.server.ha.zookeeper.connect=10.227.190.42:2181,10.227.186.242:2181,10.36.152.167:2181
> #atlas.server.ha.zookeeper.retry.sleeptime.ms=1000
> atlas.server.ha.zookeeper.retry.sleeptime.ms=1000
> #atlas.server.ha.zookeeper.num.retries=3
> atlas.server.ha.zookeeper.num.retries=3
> #atlas.server.ha.zookeeper.session.timeout.ms=20000
> atlas.server.ha.zookeeper.session.timeout.ms=20000
> ## if ACLs need to be set on the created nodes, uncomment these lines and set the values ##
> #atlas.server.ha.zookeeper.acl=<scheme>:<id>
> #atlas.server.ha.zookeeper.acl=<scheme>:<id>
> #atlas.server.ha.zookeeper.auth=<scheme>:<authinfo>
> #atlas.server.ha.zookeeper.auth=<scheme>:<authinfo>
>  
> ######### Atlas Authorization #########
> atlas.authorizer.impl=simple
> atlas.authorizer.simple.authz.policy.file=atlas-simple-authz-policy.json
> ######### Type Cache Implementation ########
> # A type cache class which implements
> # org.apache.atlas.typesystem.types.cache.TypeCache.
> # The default implementation is org.apache.atlas.typesystem.types.cache.DefaultTypeCache which is a local in-memory type cache.
> #atlas.TypeCache.impl=
> ######### Performance Configs #########
> #atlas.graph.storage.lock.retries=10
> #atlas.graph.storage.cache.db-cache-time=120000
> ######### CSRF Configs #########
> atlas.rest-csrf.enabled=true
> atlas.rest-csrf.browser-useragents-regex=^Mozilla.*,^Opera.*,^Chrome.*
> atlas.rest-csrf.methods-to-ignore=GET,OPTIONS,HEAD,TRACE
> atlas.rest-csrf.custom-header=X-XSRF-HEADER
> ############ KNOX Configs ################
> #atlas.sso.knox.browser.useragent=Mozilla,Chrome,Opera
> #atlas.sso.knox.enabled=true
> #atlas.sso.knox.providerurl=https://<knox gateway ip>:8443/gateway/knoxsso/api/v1/websso
> #atlas.sso.knox.publicKey=
> ############ Atlas Metric/Stats configs ################
> # Format: atlas.metric.query.<key>.<name>
> atlas.metric.query.cache.ttlInSecs=900
> #atlas.metric.query.general.typeCount=
> #atlas.metric.query.general.typeUnusedCount=
> #atlas.metric.query.general.entityCount=
> #atlas.metric.query.general.tagCount=
> #atlas.metric.query.general.entityDeleted=
> #
> #atlas.metric.query.entity.typeEntities=
> #atlas.metric.query.entity.entityTagged=
> #
> #atlas.metric.query.tags.entityTags=
> ######### Compiled Query Cache Configuration #########
> # The size of the compiled query cache. Older queries will be evicted from the cache
> # when we reach the capacity.
> #atlas.CompiledQueryCache.capacity=1000
> # Allows notifications when items are evicted from the compiled query
> # cache because it has become full. A warning will be issued when
> # the specified number of evictions have occurred. If the eviction
> # warning threshold <= 0, no eviction warnings will be issued.
> #atlas.CompiledQueryCache.evictionWarningThrottle=0
> ######### Full Text Search Configuration #########
> #Set to false to disable full text search.
> #atlas.search.fulltext.enable=true
> ######### Gremlin Search Configuration #########
> #Set to false to disable gremlin search.
> atlas.search.gremlin.enable=false
> ########## Add http headers ###########
> #atlas.headers.Access-Control-Allow-Origin=*
> #atlas.headers.Access-Control-Allow-Methods=GET,OPTIONS,HEAD,PUT,POST
> #atlas.headers.<headerName>=<headerValue>
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)