cdh4 ha (hadoop-2.0.0-cdh4.1.2.tar.gz)

网友投稿 264 2022-09-20

cdh4 ha (hadoop-2.0.0-cdh4.1.2.tar.gz)

$HADOOP_HOME/hdfs/name state: NON_EXISTENT因为没有formatformat时报错连接不上From all of your JN : sudo service hadoop-hdfs-journalnode start or if you deployed using tarball, maybe something like:hadoop-daemon.sh start journalnode(所有节点)然后才可以format namenode然后zookeeper在所有节点都zkServer.sh start,然后hdfs zkfc -formatZKhdfs-site.xml参考: dfs.replication 3 Default block replication. The actual number of replications can be specified when the file is created. The default is used if replication is not specified in create time. dfs.namenode.name.dir file:/usr/local/cloudwave2.0/hadoop/hdfs/name true dfs.datanode.data.dir file:/usr/local/cloudwave2.0/hadoop/hdfs/data true dfs.nameservices mycluster dfs.ha.namenodes.mycluster nn1,nn2 dfs.namenode.rpc-address.mycluster.nn1 cloudwave0:8020 dfs.namenode.rpc-address.mycluster.nn2 cloudwave1:8020 dfs.namenode. cloudwave0:50070 dfs.namenode. cloudwave1:50070 dfs.namenode.shared.edits.dir qjournal://cloudwave0:8485;cloudwave1:8485;cloudwave2:8485/myclusterjournalnode启动这几个 dfs.journalnode.edits.dir /usr/local/cloudwave2.0/hadoop/jndata/1/dfs/jn dfs.client.failover.proxy.provider.mycluster org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider dfs.ha.fencing.methods shell(/bin/true) dfs.ha.fencing.ssh.private-key-files /home/cloudwave/.ssh/id_rsa dfs.ha.automatic-failover.enabled true core-site.xml: ha.zookeeper.quorum cloudwave0:2181,cloudwave1:2181,cloudwave2:2181 fs.defaUltFS hdfs://mycluster 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. dataDir=/usr/local/cloudwave2.0/zookeeper/zookeeper_data # the port at which the clients will connect dataLogDir=/usr/local/cloudwave2.0/zookeeper/logs clientPort=2181 server.1=cloudwave0:2888:3888 server.2=cloudwave1:2888:3888 server.3=cloudwave2:2888:3888zookeeper启动这三个

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:广告情报局:一句文案的力量!
下一篇:使用Eclipse生成CHM帮助文档(图解)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~