diff --git a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/LogMeta.java b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/LogMeta.java index ee791d5e04..90e042dc2b 100644 --- a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/LogMeta.java +++ b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/LogMeta.java @@ -25,11 +25,9 @@ public class LogMeta extends MetadataRocksDBStore { - private final PDConfig pdConfig; public LogMeta(PDConfig pdConfig) { super(pdConfig); - this.pdConfig = pdConfig; } public void insertLog(Metapb.LogRecord record) throws PDException { diff --git a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/PartitionMeta.java b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/PartitionMeta.java index 2952a1725d..599d5f5c9e 100644 --- a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/PartitionMeta.java +++ b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/PartitionMeta.java @@ -35,12 +35,10 @@ public class PartitionMeta extends MetadataRocksDBStore { static String CID_GRAPH_ID_KEY = "GraphID"; static int CID_GRAPH_ID_MAX = 0xFFFE; - private final PDConfig pdConfig; private final PartitionCache cache; public PartitionMeta(PDConfig pdConfig) { super(pdConfig); - this.pdConfig = pdConfig; //this.timeout = pdConfig.getEtcd().getTimeout(); this.cache = new PartitionCache(); } diff --git a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/StoreInfoMeta.java b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/StoreInfoMeta.java index 3019578ede..3037d457ba 100644 --- a/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/StoreInfoMeta.java +++ b/hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/meta/StoreInfoMeta.java @@ -33,11 +33,9 @@ @Slf4j public class StoreInfoMeta extends MetadataRocksDBStore { - private final PDConfig pdConfig; public StoreInfoMeta(PDConfig pdConfig) { super(pdConfig); - this.pdConfig = pdConfig; // this.timeout = pdConfig.getDiscovery().getHeartbeatOutTimes(); } diff --git a/hugegraph-server/hugegraph-dist/src/assembly/static/conf/rest-server.properties b/hugegraph-server/hugegraph-dist/src/assembly/static/conf/rest-server.properties index b67905fc19..507867380c 100644 --- a/hugegraph-server/hugegraph-dist/src/assembly/static/conf/rest-server.properties +++ b/hugegraph-server/hugegraph-dist/src/assembly/static/conf/rest-server.properties @@ -1,4 +1,5 @@ # bind url +# could use '0.0.0.0' or specified (real)IP to expose external network access restserver.url=http://127.0.0.1:8080 # gremlin server url, need to be consistent with host and port in gremlin-server.yaml #gremlinserver.url=http://127.0.0.1:8182