HIVE 4:由于找不到cortex.connector模块,无法启动。

问题描述 投票:0回答:1

我正在尝试设置The Hive 4,但它无法启动说。

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

因为它在第三版的The Hive中工作,我看了加载的模块,只发现:

/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
  }
}
java hive connector
1个回答
0
投票

这是我在TheHive github项目中得到的解决方案。

查看application.conf中的key "play.modules.enabled"。Replaceplay.modules.enabled += connectors.cortex.CortexConnectorbyplay.modules.enabled += org.thp.thehive.connector.cortex.CortexModule。

© www.soinside.com 2019 - 2024. All rights reserved.