zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Olivelli (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-3317) dynamic file for reconfig should support the relative path
Date Mon, 18 Mar 2019 06:52:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16794778#comment-16794778
] 

Enrico Olivelli commented on ZOOKEEPER-3317:
--------------------------------------------

Yes.
I will assign this issue to myself as soon as I have cycles, it is not a priority for me currently.

> 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
>            Priority: Minor
>
> 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