无法启动Geomesa-accumulo

时间:2019-02-15 10:34:34

标签: accumulo geomesa

hduser @ Neha-PC:/ usr / local / geomesa-tutorials $ java -cp geomesa-tutorials-accumulo / geomesa-tutorials-accumulo-quickstart / target / geomesa-tutorials-accumulo-quickstart-2.3.0-SNAPSHOT .jar org.geomesa.example.accumulo.AccumuloQuickStart --accumulo.instance.id accumulo --accumulo.zookeepers localhost:2184 --accumulo.user root --accumulo.password PASS1234 --accumulo.catalog table1 捡起JAVA_TOOL_OPTIONS:-Dgeomesa.hbase.coprocessor.path = hdfs:// localhost:8020 / hbase / lib / geomesa-hbase-distributed-runtime_2.11-2.2.0.jar 加载数据存储 java.lang.IncompatibleClassChangeError:方法org.locationtech.geomesa.security.AuthorizationsProvider.apply(Ljava / util / Map; Ljava / util / List;)Lorg / locationtech / geomesa / security / AuthorizationsProvider;必须为InterfaceMethodref常量     在org.locationtech.geomesa.accumulo.data.AccumuloDataStoreFactory $ .buildAuthsProvider(AccumuloDataStoreFactory.scala:234)处     在org.locationtech.geomesa.accumulo.data.AccumuloDataStoreFactory $ .buildConfig(AccumuloDataStoreFactory.scala:162)处     在org.locationtech.geomesa.accumulo.data.AccumuloDataStoreFactory.createDataStore(AccumuloDataStoreFactory.scala:48)处     在org.locationtech.geomesa.accumulo.data.AccumuloDataStoreFactory.createDataStore(AccumuloDataStoreFactory.scala:36)     在org.geotools.data.DataAccessFinder.getDataStore(DataAccessFinder.java:121)     在org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:71)     在org.geomesa.example.quickstart.GeoMesaQuickStart.createDataStore(GeoMesaQuickStart.java:103)     在org.geomesa.example.quickstart.GeoMesaQuickStart.run(GeoMesaQuickStart.java:77)     在org.geomesa.example.accumulo.AccumuloQuickStart.main(AccumuloQuickStart.java:25)

1 个答案:

答案 0 :(得分:2)

您需要确保类路径上的所有GeoMesa版本都相同。仅从您的命令看来,您似乎至少将2.3.0-SNAPSHOT与2.2.0混合在一起。如here所述,尝试签出与您想要的GeoMesa版本相对应的教程项目的git标签。如果要使用SNAPSHOT版本,则需要确保已提取每个项目的最新更改。