- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我在 windows 环境下运行 zookeeper 有一些困难。
我下载了 zookeeper 3.4.6。提取它。在 conf 文件夹中创建了一个 zoo.cfg,详细信息如下:
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
然后我尝试从 bin 文件夹运行 zkServer.cmd。但我不确定这是否运行。
如何测试 Zookeeper 服务器是否在 Windows 上运行?
最佳答案
如果您想查看结果,请以管理员身份从 Windows 命令行工具运行 zkServer.cmd,而不是单击它,它会在最后关闭,您将无法看到结果。
此外,您应该将 dataDir 更新为 C:/tmp/... 形式的有效 Windows 目录。
在命令行上,调用 zkServer.cmd 后,您应该能够在命令行上看到不同的 [INFO] 消息,最后一条是绑定(bind)到端口 0.0.0.0/0.0.0.0:2181。
关于java - Windows 上的动物园管理员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24414082/
我是 Java 世界的新手(因为我主要用 C/C++ 编写)。我在我的应用程序中使用 map 。由于 java.util.Map 是抽象的,我需要实例化它的实现。通常我使用 HashMap 像: Ma
我不确定为什么会收到 当我将 MATCH 与动物园对象一起使用时在索引中。假设我有以下内容: a 在哪里行来自: mon mc mc2 matched 2012-01-0
我有一个 .csv 文件,其中包含 4 列数据,以一分钟为间隔针对一列日期/时间。缺少某些时间戳,因此我尝试生成缺少的日期/时间并在 Y 列中为它们分配 NA 值。我以前使用其他格式完全相同的 .cs
我在 R 中有一个动物园对象,它包含每日数据,但缺少周末数据。当我尝试在对象上运行某些函数(例如 ar() )时,我收到错误: mkt.ar <- ar(zoo_object) Error in na
我有一个每日动物园 (xts),其中包含以下格式的几十年数据: head(almorol) 1973-10-02 1973-10-03 1973-10-04 1973-10-05 1973-10-06
我有一个动物园对象,有一个 yearqtr 索引,涵盖大约 50 年。绘制时,x 轴每 10 年显示一次标签,感觉有点贫瘠: b=zoo(1:200,as.yearqtr(1900+seq(1,200
我正在使用类似于以下摘录的数据集: head(nomis.lng.agg) quarter decile avg.val 1 2004 Q4 1
我有两个具有不同时间分辨率的时间序列(传感器数据)。来自“xts/zoo”类( TS1 )的时间序列包括每小时值,而其他时间序列( TS2 )具有更好的时间分辨率(每 10 分钟观察一次)。即对于 T
我是一名优秀的程序员,十分优秀!