I foud the reason, because I use elasticsearch as backend first to start atlas, I need to remove the hbase table create by JanusGraph. but there is another problem: the solr I config with : atlas.graph.index.search.solr.mode=http atlas.graph.index.search.solr.http-urls=http://10.8.130.52:8983/solr first I give the wrong url, now when I start up atlas I got error: ERROR - [main:] ~ Unable to save documents to Solr as one of the shape objects stored were not compatible with Solr. (Solr6Index:613) org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://10.8.130.52:8983/solr: Expected mime type application/octet-stream but got text/html. <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing /solr/vertex_index/update. Reason: <pre> Not Found</pre></p> </body> </html>
at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:591) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:253) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:242) at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:663) at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:638) at org.janusgraph.diskstorage.solr.Solr6Index.commitChanges(Solr6Index.java:611) at org.janusgraph.diskstorage.solr.Solr6Index.mutate(Solr6Index.java:487) ... 在 2020-06-09 12:13:09,"lk_hadoop" <lk_had...@163.com> 写道: hi,all: 2020-06-09 11:29:41,005 INFO - [main:] ~ Loading atlas-application.properties from file:/home/devuser/atlas/apache-atlas-2.1.0/conf/atlas-application.properties (ApplicationProperties:134) 2020-06-09 11:29:41,012 INFO - [main:] ~ Using graphdb backend 'janus' (ApplicationProperties:314) 2020-06-09 11:29:41,012 INFO - [main:] ~ Using storage backend 'hbase2' (ApplicationProperties:325) 2020-06-09 11:29:41,012 INFO - [main:] ~ Using index backend 'solr' (ApplicationProperties:336) 2020-06-09 11:29:41,014 INFO - [main:] ~ Atlas is running in MODE: PROD. (ApplicationProperties:340) 2020-06-09 11:29:41,014 INFO - [main:] ~ Setting solr-wait-searcher property 'true' (ApplicationProperties:346) 2020-06-09 11:29:41,014 INFO - [main:] ~ Setting index.search.map-name property 'false' (ApplicationProperties:350) 2020-06-09 11:29:41,015 INFO - [main:] ~ Setting atlas.graph.index.search.max-result-set-size = 150 (ApplicationProperties:360) 2020-06-09 11:29:41,015 INFO - [main:] ~ Property (set to default) atlas.graph.cache.db-cache = true (ApplicationProperties:372) 2020-06-09 11:29:41,015 INFO - [main:] ~ Property (set to default) atlas.graph.cache.db-cache-clean-wait = 20 (ApplicationProperties:372) 2020-06-09 11:29:41,015 INFO - [main:] ~ Property (set to default) atlas.graph.cache.db-cache-size = 0.5 (ApplicationProperties:372) 2020-06-09 11:29:41,015 INFO - [main:] ~ Property (set to default) atlas.graph.cache.tx-cache-size = 15000 (ApplicationProperties:372) 2020-06-09 11:29:41,015 INFO - [main:] ~ Property (set to default) atlas.graph.cache.tx-dirty-size = 120 (ApplicationProperties:372) 2020-06-09 11:29:41,023 INFO - [main:] ~ ######################################################################################## Atlas Server (STARTUP) project.name:apache-atlas project.description:Metadata Management and Data Governance Platform over Hadoop build.user:devuser build.epoch:1591663542701 project.version:2.1.0 build.version:2.1.0 vc.revision:release vc.source.url:scm:git:git://git.apache.org/atlas.git/atlas-webapp ######################################################################################## (Atlas:215) 2020-06-09 11:29:41,023 INFO - [main:] ~ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (Atlas:216) 2020-06-09 11:29:41,023 INFO - [main:] ~ Server starting with TLS ? false on port 21000 (Atlas:217) 2020-06-09 11:29:41,024 INFO - [main:] ~ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (Atlas:218) 2020-06-09 11:29:41,811 INFO - [main:] ~ Logged in user devuser (auth:SIMPLE) (LoginProcessor:77) 2020-06-09 11:29:42,174 INFO - [main:] ~ Not running setup per configuration atlas.server.run.setup.on.start. (SetupSteps$SetupRequired:189) 2020-06-09 11:29:44,478 WARN - [main:] ~ Local setting index.search.solr.mode=http (Type: GLOBAL_OFFLINE) is overridden by globally managed value (cloud). Use the ManagementSystem interfa ce instead of the local configuration to control this setting. (ReadConfigurationBuilder:268) 2020-06-09 11:29:44,480 WARN - [main:] ~ Local setting index.search.backend=solr (Type: GLOBAL_OFFLINE) is overridden by globally managed value (elasticsearch). Use the ManagementSystem i nterface instead of the local configuration to control this setting. (ReadConfigurationBuilder:268) 2020-06-09 11:29:44,488 WARN - [main:] ~ Local setting index.search.map-name=false (Type: GLOBAL) is overridden by globally managed value (true). Use the ManagementSystem interface instea d of the local configuration to control this setting. (ReadConfigurationBuilder:268) 2020-06-09 11:29:44,758 INFO - [main:] ~ Failed to obtain graph instance, retrying 3 times, error: java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph. diskstorage.es.ElasticSearchIndex (AtlasGraphProvider:100) why index.search.backend is overridden by globally managed value (elasticsearch) ?