Hive4:无法启动,因为找不到cortex.connector模块

hiz5n14c  于 2021-06-24  发布在  Hive
关注(0)|答案(1)|浏览(332)

我试图设置Hive4,但它没有开始说:

Cannot load module[Module [connectors.cortex.CortexConnector] cannot be instantiated

我查看java进程模块列表中加载的模块,发现:

/opt/thehive/lib/org.thp.thehive-cortex-4.0.0-RC1.jar
/opt/thehive/lib/org.thp.cortex-client-4.0.0-RC1.jar
/opt/thehive/lib/org.thp.cortex-dto-4.0.0-RC1.jar

由于它正在使用配置单元的版本3,我查看了加载的模块,只发现:

/opt/thehive/lib/org.thehive-project.thehivecortex-3.3.0-1.jar

我检查了与cortex服务器的连接:

curl -H 'Authorization: Bearer OBFUSCATED' http://OBFUSCATED:9001/api/analyzer

它起作用了
我希望有人能帮我,因为我完全卡住了。提前谢谢
这是我的application.conf

play.http.secret.key = OBFUSCATED

# Authentication

auth {
        # ad : use ActiveDirectory to authenticate users. Configuration is under "auth.ad" key
        provider = [local]
}

# Maximum time between two requests without requesting authentication

session {
  warning = 5m
  inactivity = 1h
}

play.http.parser.maxMemoryBuffer= 1M
play.http.parser.maxDiskBuffer = 1D

# Cortex

play.modules.enabled += connectors.cortex.CortexConnector

cortex {
  "CORTEX-SERVER-ID" {
    url = "https://OBFUSCATED:9001/"
    key = "OBFUSCATED"
  }
  refreshDelay = 1 minute
  maxRetryOnError = 3
  statusCheckInterval = 1 minute
}

https.port: 9000
play.server.https.keyStore {
      path: /etc/thehive/keystore.jks
      type: JKS
      password: OBFUSCATED
    }
http.port: disabled
auth.method.basic = true

db {
  provider: janusgraph
  janusgraph {
    storage {
      backend: cql
      hostname: [
        "127.0.0.1"
      ] # seed node ip addresses

      #username: "<cassandra_username>"       # login to connect to database (if configured in Cassandra)
      #password: "<cassandra_passowrd"

      cql {
        cluster-name: thehivedb       # cluster name
        keyspace: thehive           # name of the keyspace
        local-datacenter: datacenter1   # name of the datacenter where TheHive runs (relevant only on multi datacenter setup)
        # replication-factor: 2 # number of replica
        read-consistency-level: ONE
        write-consistency-level: ONE
      }
    }
  }
}
storage {
  provider: hdfs
  hdfs {
    root: "hdfs://thehive1:10000" # namenode server
    location: "/thehive"
    username: thehive
  }
}
unftdfkk

unftdfkk1#

这是我在thehive github项目上获得的解决方案:
请参见application.conf中的键“play.modules.enabled”。将play.modules.enabled+=connectors.cortex.cortexconnector替换为play.modules.enabled+=org.thp.thehive.connector.cortex.cortexmodule

相关问题