windows下zookeeper启动报错

蓝色土耳其18 2017-08-20 04:20:07
zookeeper启动报错,
D:\work\zookeeper-3.5.3-beta\bin>call "D:\Java\jdk1.8.0_112\"\bin\java "-Dzookeeper.log.dir=D:\work\zookeeper-3.5.3-beta\bin\..\logs" "-Dzookeeper.root.logger=INFO,CONSOLE" "-Dzookeeper.log.file=zookeeper-vchen-server-DESKTOP-6L764P9.log" "-XX:+HeapDumpOnOutOfMemoryError" "-XX:OnOutOfMemoryError=cmd /c taskkill /pid %%p /t /f" -cp "D:\work\zookeeper-3.5.3-beta\bin\..\build\classes;D:\work\zookeeper-3.5.3-beta\bin\..\build\lib\*;D:\work\zookeeper-3.5.3-beta\bin\..\*;D:\work\zookeeper-3.5.3-beta\bin\..\lib\*;D:\work\zookeeper-3.5.3-beta\bin\..\conf" org.apache.zookeeper.server.quorum.QuorumPeerMain "D:\work\zookeeper-3.5.3-beta\bin\..\conf\zoo.cfg"
错误: 找不到或无法加载主类 .c
下面是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=D:\\work\\zookeeperdata
dataLogDir=D:\\work\\zookeeperdata\\logs
# the port at which the clients will connect
clientPort=2182
# 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
求大神解答


...全文
1131 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yougewe 2018-09-17
  • 打赏
  • 举报
回复
可能是下载的 zk 包不对,重新去下载一个,配置一个 zoo.cfg就可以了。
下载地址: https://mirrors.cnnic.cn/apache/zookeeper/
配置文件参考: https://www.cnblogs.com/yougewe/articles/9546233.html
  • 打赏
  • 举报
回复
楼主解决了吗 我也遇到同样问题
碧水幽幽泉 2017-09-15
  • 打赏
  • 举报
回复
Linux系统中的EOT和EOF

EOT usually means End Of Text. 也就是文字结束符号,

这在Linux很常见,如下列状况:
[root@centmini ~]# at 22:00
at> reboot
at> <EOT>
job 3 at 2009-09-28 22:00

EOF表示文件结尾,编程的书上一般会有。
这里也可以用作结尾:
[wss@centmini ~]$ write root
ni hao ya
[root@centmini ~]#
Message from wss@centmini on pts/1 at 20:25 …
ni hao ya
EOF
碧水幽幽泉 2017-09-15
  • 打赏
  • 举报
回复
SAS中的编程技巧:
SAS中的编程技巧:
1.Data步中加上LIST; /*显示每行的数据,以便核对。可省之*/
2.infile fileref PAD; /*PAD选项会在每条记录填补空格,使它们具有同样的长度*/
3.获取系统的日期、时间
利用date()/today()、time()等函数获取系统日期和时间。
例如:dt=date(); te=time();
利用sysdate、systime系统宏变量获取SAS启动时的日期时间。
例如:dd="&sysdate"d; tt="&systime"t;

补充说明:
yrdif(stardate,enddate,'actual') 返回两个日期之间的真实间隔年数
datdif(stardate,enddate,'actual') 返回两个日期之间的真实间隔天数, 与intck函数的效果是一样的
INTCK("day",d1,d2); /* 计算d1、d2日期之间的天数intd */

day() 返回日
month() 返回月
qrt() 返回季
year() 返回年
weekday() 返回星期, 值为一个1~7的数值,其中Sunday是1,而Saturday是7

intck() 返回计算两个日期之间的天数
intnx('interval',d1,d2) 返回d1之后d2个间隔后的日期
例如:
data tmp; /* 建立数据集tmp*/
informat d1 d2 YYMMDD10.;/* 设置变量d1、d2的日期输入格式*/
input d1 d2; /* 读入变量d1、d2的值*/
intd=intck("day",d1,d2); /* 计算d1、d2日期之间的天数intd */
d3=intnx("week",d1,10); /* 计算d1日期后10个星期时的日期d3 */
format d1-d3 YYMMDD8.; /* 设置变量d1、d2、d3的日期输出格式*/
cards;
2001/06/30 2002/06/30 结果:
2001:08:01 2001-10-01 OBS D1 D2 INTD D3
proc print; 1 01-06-30 02-06-30 365 01-09-02
run; 2 01-08-01 01-10-01 61 01-10-07

4.scan只能用于char类型的搜索。而index, indexc不受此局限。
5.像c语言一样,数组下标从0开始其实是有好处的,可以提高处理的速度。
6.如何将指针向左移动?
解答:可以采用+负数的形式,但是不要自作聪明的就写一个负数。
例如:
正确的写法 input @23 length 4. +(-5) width 4.;
错误的写法 input @23 length 4. -5 width 4.;
7.options ls=80 ps=60 replace;
ls(line size)是行数
ps(page size)是列数
replace是允许替换永久数据库
8._N_代表SAS执行DATA步的次数,一般来说,是等于读入观测的条数的

20,808

社区成员

发帖
与我相关
我的任务
社区描述
Hadoop生态大数据交流社区,致力于有Hadoop,hive,Spark,Hbase,Flink,ClickHouse,Kafka,数据仓库,大数据集群运维技术分享和交流等。致力于收集优质的博客
社区管理员
  • 分布式计算/Hadoop社区
  • 涤生大数据
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧