Skip to content

[Question] hugegraph1.5.0 store dont connected with pd #2830

@hexuxu110

Description

@hexuxu110

Problem Type (问题类型)

None

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: 1.5.0 (Apache Release Version)
  • Backend: hstore
  • OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
  • Data Size: xx vertices, xx edges

Your Question (问题描述)

部署的时候大家遇到 本地store连不上pd的情况吗
store启动报错: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hgStoreMetricsController': Unsatisfied dependency expressed through field 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hgStoreNodeService': Invocation of init method failed; nested exception is java.lang.RuntimeException: org.apache.hugegraph.pd.common.PDException: PD unreachable, pd.peers=127.0.0.1:8686

Vertex/Edge example (问题点 / 边数据举例)

**my configuration:**

1.**PD:**

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

spring:
  application:
    name: hugegraph-pd

management:
  metrics:
    export:
      prometheus:
        enabled: true
  endpoints:
    web:
      exposure:
        include: "*"

logging:
  config: 'file:./conf/log4j2.xml'
# TODO: handle the license file later (PDConfig)
license:
  verify-path: ./conf/verify-license.json
  license-path: ./conf/hugegraph.license
grpc:
  port: 8686
  # The service address of grpc needs to be changed to the actual local IPv4 address when deploying.
  host: 127.0.0.1

server:
  # REST service port number
  port: 8620

pd:
  # Storage path
  data-path: ./pd_data
  # The check cycle of automatic expansion regularly checks the number of partitions in each store and automatically balances the number of partitions
  patrol-interval: 1800
  # The minimum number of surviving store nodes, less than which the entire cluster is unavailable
  initial-store-count: 1
  # The initial store list, grpc IP: grpc port, the store in the list is automatically activated
  initial-store-list: 127.0.0.1:8500

raft:
  # The address of the local raft service
  address: 127.0.0.1:8610
  # The service address of the PD cluster
  peers-list: 127.0.0.1:8610

store:
  # The time when the store went offline. After that time, the store is considered permanently unavailable, and the replica is allocated to another machine, in seconds
  max-down-time: 172800
  # Specifies whether to enable store monitoring data storage
  monitor_data_enabled: true
  # The interval between monitoring data, minute, hour, second
  # default: 1 min * 1 day = 1440
  monitor_data_interval: 1 minute
  # Retention time of monitoring data is 1 day; day, month, year
  monitor_data_retention: 1 day

partition:
  # Default number of replicas per partition
  default-shard-count: 1
  # The default maximum number of replicas per machine
  # the initial number of partitions= store-max-shard-count * store-number / default-shard-count
  store-max-shard-count: 12

2.**server**
# gremlin entrance to create graph
# auth config: org.apache.hugegraph.auth.HugeFactoryAuthProxy
gremlin.graph=org.apache.hugegraph.HugeFactory

# cache config
#schema.cache_capacity=100000
# vertex-cache default is 1000w, 10min expired
vertex.cache_type=l2
#vertex.cache_capacity=10000000
#vertex.cache_expire=600
# edge-cache default is 100w, 10min expired
edge.cache_type=l2
#edge.cache_capacity=1000000
#edge.cache_expire=600


# schema illegal name template
#schema.illegal_name_regex=\s+|~.*

#vertex.default_label=vertex

backend=hstore
serializer=binary

store=hugegraph
task.scheduler_type=distributed

# pd config
#pd.peers=127.0.0.1:8686
pd.peers=127.0.0.1:8686,127.0.0.1:8687,127.0.0.1:8688

# search config
search.text_analyzer=jieba
search.text_analyzer_mode=INDEX

# rocksdb backend config
rocksdb.data_path=/path/to/disk
rocksdb.wal_path=/path/to/disk

raft.group_peers

3.**store**
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

pdserver:
  # PD service address, multiple PD addresses separated by commas
  address: 127.0.0.1:8686

management:
  metrics:
    export:
      prometheus:
        enabled: true
  endpoints:
    web:
      exposure:
        include: "*"

grpc:
  # grpc service address
  host: 127.0.0.1
  port: 8500
  netty-server:
    max-inbound-message-size: 1000MB
raft:
  # raft cache queue size
  disruptorBufferSize: 1024
  address: 127.0.0.1:8510
  max-log-file-size: 600000000000
  # Snapshot generation interval, in seconds
  snapshotInterval: 1800
server:
  # rest service address
  port: 8520

app:
  # Storage path, support multiple paths, separated by commas
  data-path: ./storage
  #raft-path: ./storage

spring:
  application:
    name: store-node-grpc-server
  profiles:
    active: default
    include: pd

logging:
  config: 'file:./conf/log4j2.xml'
  level:
    root: info

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

Metadata

Metadata

Assignees

No one assigned

    Labels

    pdPD modulequestionFurther information is requestedstoreStore module

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions