美文网首页geomesageoGeomesa
GeoMesa实践教程(一):GeoMesa安装

GeoMesa实践教程(一):GeoMesa安装

作者: Scially | 来源:发表于2021-11-05 13:57 被阅读0次

GeoMesa实践教程(一):GeoMesa安装

1、系统环境

主机 操作系统
master Ubuntu18.04
slave1 Ubuntu18.04
slave2 Ubuntu18.04

2、软件环境

软件 版本 版本兼容说明
GeoMesa 3.3.0 整体版本从GeoMesa倒推,GeoMesa安装说明(https://www.geomesa.org/documentation/stable/user/hbase/install.html#install-hbase-geoserver)上提示了HBase的兼容版本2.X
GeoServer 2.17.3 GeoMesa对GeoServer版本是有要求的,可以看这个网站 https://www.geomesa.org/documentation/stable/user/geoserver.html
HBase 2.2.7 根据GeoMesa需要,找2.X版本就行
Hadoop 2.10.1 HBase介绍网站(https://hbase.apache.org/book.html)给出了HBase各版本与Hadoop版本兼容性,根据自己情况选择就行(建议还是2系列)。
Zookeeper 3.7.0 就用我这个版本,或者3.4系列都可以,其他的没试过

3、安装

Hadoop、HBase、ZooKeeper安装就不介绍了,Google上很多安装介绍,这里着重说下GeoMesa的安装。其实GeoMesa安装非常简单,总体来说分为三步:

  • 1、下载GeoMesa,解压,然后把{GEOMESA_PATH}/bin添加到环境变量。

GeoMesa-HBase 3.3.0 下载地址: https://github.com/locationtech/geomesa/releases/download/geomesa-3.3.0/geomesa-hbase_2.11-3.3.0-bin.tar.gz

然后,把hbase的hbase-site.xml添加到{GEOMESA_PATH}/lib/geomesa-hbase-datastore_2.12-3.3.0.jar的根目录下,有两个办法
1. 用zip软件打开,然后添加进去
2. 执行命令

zip -r {GEOMESA_PATH}/lib/geomesa-hbase-datastore_2.12-3.3.0.jar hbase-site.xml
按照GeoMesa的说法,有一些依赖可能是由于License原因,没办法直接提供,因此提供了一个工具下载:
 {GEOMESA_PATH}/bin/install-shapefile-support.sh
  • 2、在{GEOMESA_PATH}/dist/hbase下有一个geomesa-hbase-distributed-runtime-hbase2_2.12-3.3.0.jar文件(注意是HBase2),然后执行命令:

    hdfs dfs -put {GEOMESA_PATH}/dist/hbase/geomesa-hbase-distributed-runtime-hbase2_2.12-3.3.0.jar /hbase/lib/
    
  • 3、配置GeoServer,这一步只要把依赖搞定就没问题,主要是依赖的问题。

    1、GeoMesa提供了工具用来自动下载所需依赖(其实在 https://www.geomesa.org/documentation/stable/user/hbase/install.html#install-hbase-geoserver 这个网站上,GeoMesa已经列出了所需的依赖,但是还是缺了一些,我这里列出我用的依赖,大家对号入座)

    • 修改{GEOMESA_PATH}/conf/dependencie
    hbase_install_version="2.2.7"
    hbase_thirdparty_install_version="2.2.1"
    hadoop_install_version="2.8.5"
    zookeeper_install_version="3.4.10"
    # required for hadoop - make sure it corresponds to the hadoop installed version
    guava_install_version="31.0-jre"
    
    • 执行{GEOMESA_PATH}/bin/install-dependencies.sh

      2、把这个压缩包{GEOMESA_PATH}/dist/gs-pluginsgeomesa-hbase-gs-plugin_2.12-3.3.0-install.tar.gz解压到${GEOSERVER_PATH}/webapps/geoserver/WEB-INF/lib下面

       3、把下面这些依赖复制到${GEOSERVER_PATH}/webapps/geoserver/WEB-INF/lib下面,重启Geoserver
  • commons-cli-1.2.jar
  • commons-configuration-1.6.jar
  • commons-io-2.5.jar
  • commons-logging-1.1.3.jar
  • hadoop-auth-2.8.5.jar
  • hadoop-common-2.8.5.jar
  • hadoop-hdfs-2.8.5.jar
  • hadoop-hdfs-client-2.8.5.jar
  • hadoop-mapreduce-client-core-2.8.5.jar
  • hbase-client-2.2.7.jar
  • hbase-common-2.2.7.jar
  • hbase-hadoop-compat-2.2.7.jar
  • hbase-mapreduce-2.2.7.jar
  • hbase-protocol-2.2.7.jar
  • hbase-protocol-shaded-2.2.7.jar
  • hbase-shaded-miscellaneous-2.2.1.jar
  • hbase-shaded-netty-2.2.1.jar
  • hbase-shaded-protobuf-2.2.1.jar
  • htrace-core4-4.1.0-incubating.jar
  • metrics-core-2.2.0.jar(新增)
  • metrics-core-3.2.6.jar
  • netty-3.6.2.Final.jar
  • netty-all-4.1.48.Final.jar
  • protobuf-java-2.5.0.jar
  • zookeeper-3.7.0.jar
  • zookeeper-jute-3.7.0.jar(新增)
  • curator-client-4.3.0.jar(新增)
  • curator-framework-4.3.0.jar(新增)
  • curator-recipes-4.3.0.jar(新增)
  • postgresql-42.2.14.jar(新增)

相关文章

  • GeoMesa实践教程(一):GeoMesa安装

    GeoMesa实践教程(一):GeoMesa安装 1、系统环境 主机操作系统masterUbuntu18.04sl...

  • Geomesa学习0 - 在Linux下的安装

    一、 安装 官网说明GeoMesa需要Hbase1.3版本或1.4版本,安装GeoMesa前首先安装Hbase...

  • Geomesa学习3 - 数据操作

    本章主要介绍GeoMesa的操作流程,包括数据写入、索引创建、数据查询等,GeoMesa前期的安装部署见GeoMe...

  • geomesa

    geomesa

  • Geomesa学习2 - 索引机制

    GeoMesa一共有两大类索引,分别是普通属性索引、时空索引。 Geomesa时空索引使用了基于Z-order填充...

  • GeoMesa的安装与Quick Start【HBase】

    GeoMesa是一个运行在分布式计算系统上,支持大规模时空矢量数据查询和分析的开源工具。 本文介绍GeoMesa安...

  • Geomesa 索引

    在之前的文章中,已经对Geomesa的基本功能和基本查询与写入操作做了介绍。我们了解到Geomesa是一个分布式地...

  • GeoMesa介绍

    GeoMesa 是由locationtech开源的一套地理大数据处理工具套件。其可在分布式计算系统上进行大规模的地...

  • GeoMesa架构

    GeoMesa和GeoServer Web Feature Service (WFS)Web Mapping Se...

  • GeoMesa Spark

    GeoMesa Spark一、Spark JTS1.1 示例1.2配置1.3 地理空间用户定义的类型和功能1.4 ...

网友评论

    本文标题:GeoMesa实践教程(一):GeoMesa安装

    本文链接:https://www.haomeiwen.com/subject/swlrzltx.html