I encountered some problems in learning hadoop over the past two weeks.
Today's question is how to restore the deleted datanode
At that time, because refreshNodes was not executed, the datanode was not started successfully.
The following error is reported:
ERROR org. apache. hadoop. hdfs. server. datanode. DataNode: org. apache. hadoop. ipc. RemoteException:
Address: http://blog.csdn.net/kongxx/article/details/6896230
Assume that a hadoop cluster environment has been created and two slave nodes fkongnix1 and fkongnix2 are available. Here, a new node fkongnix3.
For how to build a hadoop distributed environment, referDistributed mode of hadoop Learning
1. Modify the $
The existing computing power in the cluster is insufficient, and when additional nodes are added, a new node can be dynamically added using the following method:
1, install the Hadoop program on the new node, be sure to control the version, can be from the cluster of other machines CP a modified also line
2. Copy the relevant configuration file of Namenode to this node
3, modify masters and slavers files
Recently used a cluster HP1, because the maintenance of the cluster of people do not give force, the node always over a period of time dropped one or two. When Hadoop was restarted today, HDFs was in protected mode.decided to filter out all the inaccessible nodes in the slaves node, so I wrote a small script, which is recorded here, and it is convenient to use it directly.PS: Written in C shellThe code is a
ProblemUpload file to Hadoop exception, error message is as follows:org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /home/input/qn_log.txt._COPYING_ could only be replicated to 0 nodes instead of minReplication (=1). There are 0 datanode(s) running and no node(s) are excluded in this operation.Solve1. View the process of the problem node:Datanode process does not start2. View
Today, when we set up the hadoop environment configuration, We need to log on via SSH without a password. It took a lot of effort and finally got it done.
First, different Linux operating systems may have slightly different commands. my operating system is Ubuntu, So I recorded what I did.
1. hadoop02 @ ubuntuserver2:/root $ ssh-keygen-t rsa command. When the result is displayed, I press enter until the end,
Generating public/private RSA key pair.
2.
the Hadoop middleware series which opened the zookeeper this default port to occupy.Not sure, so it's not good to kill this port, so you can only modify the default port:Modify in hbase-site.xmlMake 2181 into 2182
Post-execution resultsInformation display
[Root@master bin]#/start-hbase.sh
starting master, logging To/home/hbase/logs/hbase-root-master-master.out
Java HotSpot (TM) 64-bit Server VM warning:ignoring option permsize=128m; support is rem
=yeshostname=node1# you need to configure the Windows file to be uploaded to the virtual machine # C:\WINDOWS\SYSTEM32\DRIVERS\ETC Add the corresponding IP and machine name in the host file 192.168.6.131 node1192.168.6.132 node2192.168.6.133 node3 shutdown-h now# Snapshot initialization # clone Node2 Node3# ==================================================================node2vi/etc/hostnamenode2vi/etc/sysconfig/networknetworking=yeshostname=node2vi/etc/sysconfig/network-scripts/ ifcfg-ens33# b
=" Web.png "alt=" Wkiol1b9ctfxb4kuaabax2ov228555.png "/>650" this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/ 7e/5c/wkiom1b9cldtub7-aabs1sxmsyo778.png "title=" Web.png "alt=" Wkiom1b9cldtub7-aabs1sxmsyo778.png "/>Second, insert the nodeAppendChild-Parentnode.appendchild (Childnode) can be used to append the last child node to a parent element650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7E/58/wKioL1b9CaDwVcLCAABUOUXlT9g136.png "title=" Web.png "alt=" Wkiol1b9cadwvclcaabuouxlt9
Install times wrong: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (site) on project Hadoop-hdfs:an Ant B Uildexception has occured:input file/usr/local/hadoop-2.6.0-stable/hadoop-2.6.0-src/hadoop-hdfs-project/ Hadoop-hdfs/target/findbugsxml.xml
the individual operations on each server, Because each of these operations can be a huge project.
Installation Steps
1. Download Hadoop and JDK:
http://mirror.bit.edu.cn/apache/hadoop/common/
such as: hadoop-0.22.0
2. Configure DNS resolution host name
Note: In the production of Hadoop cluster environment, because
Problem: The storage data in the cluster increases, so that the datanode space is almost full (previously DFS. Data. dir =/data/HDFS/dfs/data), and the hard disk monitoring of the machineProgramNon-stop alarm.
A storage hard disk is doubled for
This article is reproduced from http://www.cnblogs.com/serendipity/archive/2012/04/17/2453428.html, where we thank bloggers for sharing.
Problem: The storage data in the cluster increases, causing the datanode space to fill up (formerly
One, using nodes to implement the linked list LinkedList, without changing the JAVAAPI set frameImport Java.util.scanner;public class Main {public static class Node {int data; Node Next=null; public Node (int data) {this.data=data;}; } public static class Mylinkedlist {Node head=null; Public mylinkedlist () {}//Add node public void AddNode (int d) {node newnode=new node (d); if (head==null) {head=newnode; return; } Node Tmp=h
as TD for a Object Array . getattribute (): Gets the property value based on the given property nameSuch as:title= "name">Jackie is happyp >Name can be obtained by document.getElementsByTagName ("P") [0].getattribute ("title").Note: This method cannot be called through the document and can only be called through an element node object. SetAttribute (): Sets the value of a property.If you pass document.getElementsByTagName ("P") [0].setattribute ("title", "Hobby"), the property value of titl
/*This is an ASP tutorial. NET TreeView Dynamic increase node, edit node, delete node function, the following our first example is to add a single function of the node, later is the specific example is OH TreeView dynamically add nodes, edit nodes, delete node functions.*/Display data modification Save in TreeView node Seletedindexchangeprotected void Treeview1_selectednodechanged (object sender, EventArgs
Clone ():Copy node, no event by default, if a parameter true is passed, the event that is bound in the element is copied while the node is being copied.1 Scripttype= "Text/javascript">2 $(function(){3 var$apple= $("ul li:eq (0)"). Clone ();4 $("ul"). Append ($apple);5 });6 Script>ReplaceWith ():Replaces all matching elements with the specified HTML or DOM element.1 Scripttype= "Text/javascript">2 $(function(){3 $("ul Li"). each (function(){4 $( Thi
)Configuration:
After hadoop is started, namenode starts and stops various daemon on each datanode through SSH (Secure Shell, this requires that you do not need to enter a password when executing commands between nodes. Therefore, we need to configure SSH to use the password-free public key authentication form.Take the three machines in this article as an example. Now node1 is the master node, and it need
)
Script>
BODY>
HTML>
Analyze the result of the run with the values of the three properties:Nodetype:element_nodeNodeType Value: 1NodeName: Element tag name//here is TDNodevalue:null2: Attribute nodeAttribute Node code
HTML>
HEAD>
title> Empty Valley leisurely title>
HEAD>
BODY>
table>
tr>
TD Id="John" name="myname">johntd>
TD>doetd>
TD Id="Jack">jacktd>
tr>
Table>
script>
var d = document.getElementById ("John"). GetAttr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.