zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maoling (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-3317) dynamic file for reconfig should support the relative path
Date Sat, 16 Mar 2019 07:10:00 GMT
maoling created ZOOKEEPER-3317:
----------------------------------

             Summary: dynamic file for reconfig should support the relative path
                 Key: ZOOKEEPER-3317
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3317
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server
            Reporter: maoling


dynamic file for reconfig should support the relative path,just like this:
*dynamicConfigFile=../zoo_replicated5.cfg.dynamic*
follow an example of *dataDir*:if use the relative path,log the warning info.


2019-03-14 11:02:39,028 [myid:] - INFO [main:QuorumPeerConfig@141] - Reading configuration
from: /data/software/zookeeper/zookeeper-test2/bin/../conf/zoo.cfg
2019-03-14 11:02:39,037 [myid:] - WARN [main:VerifyingFileFactory@59] - ../../zkdata2 is relative.
Prepend ./ to indicate that you're sure!
2019-03-14 11:02:39,037 [myid:] - WARN [main:VerifyingFileFactory@59] - ../../zkdataLog2 is
relative. Prepend ./ to indicate that you're sure!
2019-03-14 11:02:39,048 [myid:] - INFO [main:QuorumPeerConfig@406] - clientPortAddress is
0.0.0.0:22181
2019-03-14 11:02:39,048 [myid:] - INFO [main:QuorumPeerConfig@410] - secureClientPort is not
set
2019-03-14 11:02:39,048 [myid:] - INFO [main:QuorumPeerConfig@427] - observerMasterPort is
not set
2019-03-14 11:02:39,048 [myid:] - INFO [main:QuorumPeerConfig@445] - metricsProvider.className
is org.apache.zookeeper.metrics.impl.NullMetricsProvider
2019-03-14 11:02:39,048 [myid:] - ERROR [main:QuorumPeerMain@94] - Invalid config, exiting
abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing ../zoo_replicated2.cfg.dynamic
 at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:187)
 at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:118)
 at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:87)
Caused by: java.io.FileNotFoundException: ../zoo_replicated2.cfg.dynamic (No such file or
directory)
 at java.io.FileInputStream.open0(Native Method)
 at java.io.FileInputStream.open(FileInputStream.java:195)
 at java.io.FileInputStream.<init>(FileInputStream.java:138)
 at java.io.FileInputStream.<init>(FileInputStream.java:93)
 at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:168)
 ... 2 more
Invalid config, exiting abnormally



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message