标签:查看 bat sam 丢失 ini title centos6.0 www 解压
vi /etc/profile #zk ZOOKEEPER_HOME=/usr/local/java/zookeeper-3.3.6 export PATH="$PATH:$ZOOKEEPER_HOME/bin" export ZOOKEEPER_HOME
cd /zookeeper-3.3.6/conf touch zoo.cfg 或 mv zoo-sample.cfg zoo.cfg vi zoo.cfg 插入如下的内容: tickTime=2000 initLimit=10 syncLimit=5 dataDir=/usr/local/java/zookeeper-3.3.6/data dataLogDir=/usr/local/java/zookeeper-3.3.6/logs clientPort=4180 server.3=192.168.204.3:2888:3888 server.4=192.168.204.4:2888:3888 server.5=192.168.204.5:2888:3888 --其中节点数量大于虚拟机数量,文件路径一定要存在,不存在后面要创建,路径后面不能有空格
完成配置:Esc -> :wq cd .. 到根目录 mkdir logs mkdir data 需要在data下面建立一个myid问价,内容为server的编号,一定是本机的server编号 touch myid vi myid 插入 主机对应的server号
报错如下 java.net.NoRouteToHostException: No route to host(没有到主机的路由) 之后检查网络,端口,hosts,iptables都没有用。 随后发现centos7的防火墙不再是iptables了,变成firewall。我之前不停地 service iptables stop 命令并没有用。 最后通过: -------------------------------------------------------------- centos7.0(默认是使用firewall作为防火墙,如若未改为iptables防火墙,使用以下命令查看和关闭防火墙) 查看防火墙状态:firewall-cmd --state 关闭防火墙:systemctl stop firewalld.service ------------------------------------------------------------------ Ubuntu(ubuntu-12.04-desktop-amd64) 查看防火墙状态:ufw status 关闭防火墙:ufw disable --------------------------------------------------------------- CentOS6.0 查看防火墙状态:service iptables status 关闭防火墙:chkconfig iptables off #开机不启动防火墙服务
[root@tm4 bin]# zkServer.sh status JMX enabled by default Using config: /usr/local/java/zookeeper-3.3.6/bin/../conf/zoo.cfg Mode: follower [root@tm4 bin]# jps 2473 QuorumPeerMain 2661 Jps
vi /etc/profile 插入 #jstorm export JSTORM_HOME=/usr/local/java/jstorm-0.9.6 export PATH=$PATH:$JSTORM_HOME/bin
########### These MUST be filled in for a storm configuration storm.zookeeper.servers: - "192.168.204.3" - "192.168.204.4" - "192.168.204.5" storm.zookeeper.root: "/jstorm" nimbus.host: "192.168.204.3" # %JSTORM_HOME% is the jstorm home directory storm.local.dir: "%JSTORM_HOME%/data" java.library.path: "/usr/local/java/jstorm-0.9.6/lib:/usr/local/lib:/opt/local/lib:/usr/lib" supervisor.slots.ports: - 6800 - 6801 - 6802 - 6803 # Default disable user-define classloader # If there are jar conflict between jstorm and application, # please enable it topology.enable.classloader: false # enable supervisor use cgroup to make resource isolation # Before enable it, you should make sure: # 1. Linux version (>= 2.6.18) # 2. Have installed cgroup (check the file‘s existence:/proc/cgroups) # 3. You should start your supervisor on root # You can get more about cgroup: # http://t.cn/8s7nexU supervisor.enable.cgroup: false ### Netty will send multiple messages in one batch ### Setting true will improve throughput, but more latency storm.messaging.netty.transfer.async.batch: true ### default worker memory size, unit is byte worker.memory.size: 2147483648 # Metrics Monitor # topology.performance.metrics: it is the switch flag for performance # purpose. When it is disabled, the data of timer and histogram metrics # will not be collected. # topology.alimonitor.metrics.post: If it is disable, metrics data # will only be printed to log. If it is enabled, the metrics data will be # posted to alimonitor besides printing to log. topology.performance.metrics: true topology.alimonitor.metrics.post: false ui.clusters: - { name: "jstorm", zkRoot: "/jstorm", zkServers: [ "192.168.204.3","192.168.204.4","192.168.204.5"], zkPort: 2181, }
ui.clusters:
- {
name: "jstorm",
zkRoot: "/jstorm",
zkServers:
[ "192.168.204.3","192.168.204.4","192.168.204.5"],
zkPort: 4180,
}
topology.backpressure.enable: true
supervisor.slots.ports.base: 6800
supervisor.slots.port.cpu.weight: 1.2
# supervisor.slots.port.cpu.weight: 0.5
supervisor.slots.port.mem.weight: 0.7
# supervisor.slots.port.mem.weight: 0.5
supervisor.slots.ports: null
标签:查看 bat sam 丢失 ini title centos6.0 www 解压
原文地址:http://www.cnblogs.com/opensesame/p/6074549.html