{"id":872,"date":"2018-07-20T09:07:57","date_gmt":"2018-07-20T01:07:57","guid":{"rendered":"https:\/\/blog.jsjs.org\/?p=872"},"modified":"2018-07-20T09:07:57","modified_gmt":"2018-07-20T01:07:57","slug":"%e3%80%90%e5%a4%a7%e6%95%b0%e6%8d%ae%e3%80%91linux%e4%b8%8b%e5%ae%89%e8%a3%85hadoop2-7-1%e8%af%a6%e8%a7%a3%e5%8f%8awordcount%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/blog.jsjs.org\/?p=872","title":{"rendered":"\u3010\u5927\u6570\u636e\u3011Linux\u4e0b\u5b89\u88c5Hadoop(2.7.1)\u8be6\u89e3\u53caWordCount\u8fd0\u884c"},"content":{"rendered":"<p><strong>\u4e00\u3001\u5f15\u8a00<\/strong><\/p>\n<p>\u5728\u5b8c\u6210\u4e86Storm\u7684\u73af\u5883\u914d\u7f6e\u4e4b\u540e\uff0c\u60f3\u7740\u9f13\u6363\u4e00\u4e0bHadoop\u7684\u5b89\u88c5\uff0c\u7f51\u4e0a\u9762\u7684\u6559\u7a0b\u597d\u591a\uff0c\u4f46\u662f\u6ca1\u6709\u4e00\u4e2a\u7279\u522b\u5207\u5408\u7684\uff0c\u6240\u4ee5\u5728\u5b89\u88c5\u7684\u8fc7\u7a0b\u4e2d\u8fd8\u662f\u9047\u5230\u4e86\u5f88\u591a\u7684\u9ebb\u70e6\uff0c\u5e76\u4e14\u6700\u540e\u4e0d\u65ad\u7684\u67e5\u9605\u8d44\u6599\uff0c\u7ec8\u4e8e\u89e3\u51b3\u4e86\u95ee\u9898\uff0c\u611f\u89c9\u8fd8\u662f\u5f88\u597d\u7684\uff0c\u4e0b\u9762\u5e9f\u8bdd\u4e0d\u591a\u8bf4\uff0c\u5f00\u59cb\u8fdb\u5165\u6b63\u9898\u3002<\/p>\n<p>\u672c\u673a\u5668\u7684\u914d\u7f6e\u73af\u5883\u5982\u4e0b\uff1a<\/p>\n<p>Hadoop(2.7.1)<\/p>\n<p>Ubuntu Linux(64\u4f4d\u7cfb\u7edf)<\/p>\n<p>\u4e0b\u9762\u5206\u4e3a\u51e0\u4e2a\u6b65\u9aa4\u6765\u8be6\u89e3\u914d\u7f6e\u8fc7\u7a0b\u3002<\/p>\n<p><strong>\u4e8c\u3001\u5b89\u88c5ssh\u670d\u52a1<\/strong><\/p>\n<p>\u8fdb\u5165shell\u547d\u4ee4\uff0c\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff0c\u67e5\u770b\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u597dssh\u670d\u52a1\uff0c\u82e5\u6ca1\u6709\uff0c\u5219\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<p>sudo apt-get install ssh openssh-server<\/p>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u8fd8\u662f\u6bd4\u8f83\u8f7b\u677e\u52a0\u6109\u5feb\u7684\u3002<\/p>\n<p><strong>\u4e09\u3001\u4f7f\u7528ssh\u8fdb\u884c\u65e0\u5bc6\u7801\u9a8c\u8bc1\u767b\u5f55<\/strong><\/p>\n<p>1.\u521b\u5efassh-key\uff0c\u8fd9\u91cc\u6211\u4eec\u91c7\u7528rsa\u65b9\u5f0f\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>ssh-keygen -t rsa -P &#8220;&#8221;<\/p>\n<p>2.\u51fa\u73b0\u4e00\u4e2a\u56fe\u5f62\uff0c\u51fa\u73b0\u7684\u56fe\u5f62\u5c31\u662f\u5bc6\u7801\uff0c\u4e0d\u7528\u7ba1\u5b83<\/p>\n<p>cat ~\/.ssh\/id_rsa.pub &gt;&gt; authorized_keys(\u597d\u50cf\u662f\u53ef\u4ee5\u7701\u7565\u7684)<\/p>\n<p>3.\u7136\u540e\u5373\u53ef\u65e0\u5bc6\u7801\u9a8c\u8bc1\u767b\u5f55\u4e86\uff0c\u5982\u4e0b\uff1a<\/p>\n<p>ssh localhost<\/p>\n<p>\u6210\u529f\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909162236950-1228116112.png\" alt=\"\" \/><\/p>\n<p><strong>\u56db\u3001\u4e0b\u8f7dHadoop\u5b89\u88c5\u5305<\/strong><\/p>\n<p>\u4e0b\u8f7dHadoop\u5b89\u88c5\u4e5f\u6709\u4e24\u79cd\u65b9\u5f0f<\/p>\n<p>1.\u76f4\u63a5\u4e0a\u5b98\u7f51\u8fdb\u884c\u4e0b\u8f7d\uff0c<a href=\"http:\/\/mirrors.hust.edu.cn\/apache\/hadoop\/core\/stable\/hadoop-2.7.1.tar.gz\" target=\"_blank\" rel=\"noopener\">http:\/\/mirrors.hust.edu.cn\/apache\/hadoop\/core\/stable\/hadoop-2.7.1.tar.gz<\/a><\/p>\n<p>2.\u4f7f\u7528shell\u8fdb\u884c\u4e0b\u8f7d\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>wget\u00a0http:\/\/mirrors.hust.edu.cn\/apache\/hadoop\/core\/stable\/hadoop-2.7.1.tar.gz<\/p>\n<p>\u8c8c\u4f3c\u7b2c\u4e8c\u79cd\u7684\u65b9\u6cd5\u8981\u5feb\u70b9\uff0c\u7ecf\u8fc7\u6f2b\u957f\u7684\u7b49\u5f85\uff0c\u7ec8\u4e8e\u4e0b\u8f7d\u5b8c\u6210\u3002<\/p>\n<p><strong>\u4e94\u3001\u89e3\u538b\u7f29Hadoop\u5b89\u88c5\u5305<\/strong><\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u89e3\u538b\u7f29Hadoop\u5b89\u88c5\u5305<\/p>\n<p>tar -zxvf hadoop-2.7.1.tar.gz<\/p>\n<p>\u89e3\u538b\u7f29\u5b8c\u6210\u540e\u51fa\u73b0hadoop2.7.1\u7684\u6587\u4ef6\u5939<\/p>\n<p><strong>\u516d\u3001\u914d\u7f6eHadoop\u4e2d\u76f8\u5e94\u7684\u6587\u4ef6<\/strong><\/p>\n<p>\u9700\u8981\u914d\u7f6e\u7684\u6587\u4ef6\u5982\u4e0b\uff0chadoop-env.sh\uff0ccore-site.xml\uff0cmapred-site.xml.template\uff0chdfs-site.xml\uff0c\u6240\u6709\u7684\u6587\u4ef6\u5747\u4f4d\u4e8ehadoop2.7.1\/etc\/hadoop\u4e0b\u9762\uff0c\u5177\u4f53\u9700\u8981\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>1.core-site.xml \u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>&lt;configuration&gt;<br \/>\n&lt;property&gt;<br \/>\n&lt;name&gt;hadoop.tmp.dir&lt;\/name&gt;<br \/>\n&lt;value&gt;file:\/home\/leesf\/program\/hadoop\/tmp&lt;\/value&gt;<br \/>\n&lt;description&gt;Abase for other temporary directories.&lt;\/description&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;property&gt;<br \/>\n&lt;name&gt;fs.defaultFS&lt;\/name&gt;<br \/>\n&lt;value&gt;hdfs:\/\/localhost:9000&lt;\/value&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;\/configuration&gt;<\/p>\n<p>\u5176\u4e2d\u7684hadoop.tmp.dir\u7684\u8def\u5f84\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u4e60\u60ef\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<p>2.mapred-site.xml.template\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>&lt;configuration&gt;<br \/>\n&lt;property&gt;<br \/>\n&lt;name&gt;mapred.job.tracker&lt;\/name&gt;<br \/>\n&lt;value&gt;localhost:9001&lt;\/value&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;\/configuration&gt;<\/p>\n<p>3.hdfs-site.xml\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>&lt;configuration&gt;<br \/>\n&lt;property&gt;<br \/>\n&lt;name&gt;dfs.replication&lt;\/name&gt;<br \/>\n&lt;value&gt;1&lt;\/value&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;property&gt;<br \/>\n&lt;name&gt;dfs.namenode.name.dir&lt;\/name&gt;<br \/>\n&lt;value&gt;file:\/home\/leesf\/program\/hadoop\/tmp\/dfs\/name&lt;\/value&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;property&gt;<br \/>\n&lt;name&gt;dfs.datanode.data.dir&lt;\/name&gt;<br \/>\n&lt;value&gt;file:\/home\/leesf\/program\/hadoop\/tmp\/dfs\/data&lt;\/value&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;\/configuration&gt;<\/p>\n<p>\u5176\u4e2ddfs.namenode.name.dir\u548cdfs.datanode.data.dir\u7684\u8def\u5f84\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\uff0c\u6700\u597d\u5728hadoop.tmp.dir\u7684\u76ee\u5f55\u4e0b\u9762\u3002<\/p>\n<p>\u8865\u5145\uff0c\u5982\u679c\u8fd0\u884cHadoop\u7684\u65f6\u5019\u53d1\u73b0\u627e\u4e0d\u5230jdk\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06jdk\u7684\u8def\u5f84\u653e\u7f6e\u5728hadoop.env.sh\u91cc\u9762\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n<p>export JAVA_HOME=&#8221;\/home\/leesf\/program\/java\/jdk1.8.0_60&#8243;<\/p>\n<p><strong>\u4e03\u3001\u8fd0\u884cHadoop<\/strong><\/p>\n<p>\u5728\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u8fd0\u884chadoop\u3002<\/p>\n<p>1.\u521d\u59cb\u5316HDFS\u7cfb\u7edf<\/p>\n<p>\u5728hadop2.7.1\u76ee\u5f55\u4e0b\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>bin\/hdfs namenode -format<\/p>\n<p>\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909165552715-819615850.png\" alt=\"\" \/><\/p>\n<p>\u8fc7\u7a0b\u9700\u8981\u8fdb\u884cssh\u9a8c\u8bc1\uff0c\u4e4b\u524d\u5df2\u7ecf\u767b\u5f55\u4e86\uff0c\u6240\u4ee5\u521d\u59cb\u5316\u8fc7\u7a0b\u4e4b\u95f4\u952e\u5165y\u5373\u53ef\u3002<\/p>\n<p>\u6210\u529f\u7684\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909165706137-934345860.png\" alt=\"\" \/><\/p>\n<p>\u8868\u793a\u5df2\u7ecf\u521d\u59cb\u5316\u5b8c\u6210\u3002<\/p>\n<p>2.\u5f00\u542f<code>NameNode<\/code>\u548c<code>DataNode<\/code>\u5b88\u62a4\u8fdb\u7a0b<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5f00\u542f\uff1a<\/p>\n<p><code>sbin\/start-dfs.sh\uff0c\u6210\u529f\u7684\u622a\u56fe\u5982\u4e0b\uff1a<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909170050919-1241235078.png\" alt=\"\" \/><\/p>\n<p>3.\u67e5\u770b\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<p>jps\uff0c\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909170411528-1181039751.png\" alt=\"\" \/><\/p>\n<p>\u8868\u793a\u6570\u636eDataNode\u548cNameNode\u90fd\u5df2\u7ecf\u5f00\u542f<\/p>\n<p>4.\u67e5\u770bWeb UI<\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165<a href=\"http:\/\/localhost:50070\/\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost:50070<\/a>\uff0c\u5373\u53ef\u67e5\u770b\u76f8\u5173\u4fe1\u606f\uff0c\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909170629262-1922567503.png\" alt=\"\" \/><\/p>\n<p>\u81f3\u6b64\uff0chadoop\u7684\u73af\u5883\u5c31\u5df2\u7ecf\u642d\u5efa\u597d\u4e86\u3002\u4e0b\u9762\u5f00\u59cb\u4f7f\u7528hadoop\u6765\u8fd0\u884c\u4e00\u4e2aWordCount\u4f8b\u5b50\u3002<\/p>\n<p><strong>\u516b\u3001\u8fd0\u884cWordCount Demo<\/strong><\/p>\n<p>1.\u5728\u672c\u5730\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u7b14\u8005\u5728home\/leesf\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e86\u4e00\u4e2awords\u6587\u6863\uff0c\u91cc\u9762\u7684\u5185\u5bb9\u53ef\u4ee5\u968f\u4fbf\u586b\u5199\u3002<\/p>\n<p>2.\u5728HDFS\u4e2d\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u7528\u4e8e\u4e0a\u4f20\u672c\u5730\u7684words\u6587\u6863\uff0c\u5728hadoop2.7.1\u76ee\u5f55\u4e0b\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>bin\/hdfs dfs -mkdir \/test\uff0c\u8868\u793a\u5728hdfs\u7684\u6839\u76ee\u5f55\u4e0b\u5efa\u7acb\u4e86\u4e00\u4e2atest\u76ee\u5f55<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bHDFS\u6839\u76ee\u5f55\u4e0b\u7684\u76ee\u5f55\u7ed3\u6784<\/p>\n<p>bin\/hdfs dfs -ls \/<\/p>\n<p>\u5177\u4f53\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909171417997-2002241459.png\" alt=\"\" \/><\/p>\n<p>\u8868\u793a\u5728HDFS\u7684\u6839\u76ee\u5f55\u4e0b\u5df2\u7ecf\u5efa\u7acb\u4e86\u4e00\u4e2atest\u76ee\u5f55<\/p>\n<p>3.\u5c06\u672c\u5730words\u6587\u6863\u4e0a\u4f20\u5230test\u76ee\u5f55\u4e2d<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u8fdb\u884c\u4e0a\u4f20\u64cd\u4f5c\uff1a<\/p>\n<p>bin\/hdfs dfs -put \/home\/leesf\/words \/test\/<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u8fdb\u884c\u67e5\u770b<\/p>\n<p>bin\/hdfs dfs -ls \/test\/<\/p>\n<p>\u7ed3\u679c\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909171744981-427834762.png\" alt=\"\" \/><\/p>\n<p>\u8868\u793a\u5df2\u7ecf\u5c06\u672c\u5730\u7684words\u6587\u6863\u4e0a\u4f20\u5230\u4e86test\u76ee\u5f55\u4e0b\u4e86\u3002<\/p>\n<p>4.\u8fd0\u884cwordcount<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u8fd0\u884cwordcount\uff1a<\/p>\n<p>bin\/hadoop jar share\/hadoop\/mapreduce\/hadoop-mapreduce-examples-2.7.1.jar wordcount \/test\/words \/test\/out<\/p>\n<p>\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909173521075-1949140997.png\" alt=\"\" \/><\/p>\n<p>\u8fd0\u884c\u5b8c\u6210\u540e\uff0c\u5728\/test\u76ee\u5f55\u4e0b\u751f\u6210\u540d\u4e3aout\u7684\u6587\u4ef6\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\/test\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6<\/p>\n<p>bin\/hdfs dfs -ls \/test<\/p>\n<p>\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909173716278-581009919.png\" alt=\"\" \/><\/p>\n<p>\u8868\u793a\u5728test\u76ee\u5f55\u4e0b\u5df2\u7ecf\u6709\u4e86\u4e00\u4e2a\u540d\u4e3aOut\u7684\u6587\u4ef6\u76ee\u5f55<\/p>\n<p>\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\u67e5\u770bout\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\uff1a<\/p>\n<p>bin\/hdfs dfs -ls \/test\/out\uff0c\u7ed3\u679c\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909173959544-1218198107.png\" alt=\"\" \/><\/p>\n<p>\u8868\u793a\u5df2\u7ecf\u6210\u529f\u8fd0\u884c\u4e86\uff0c\u7ed3\u679c\u4fdd\u5b58\u5728part-r-00000\u4e2d\u3002<\/p>\n<p>5.\u67e5\u770b\u8fd0\u884c\u7ed3\u679c<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n<p>bin\/hadoop fs -cat \/test\/out\/part-r-00000<\/p>\n<p>\u7ed3\u679c\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2015.cnblogs.com\/blog\/616953\/201509\/616953-20150909174117872-1223928898.png\" alt=\"\" \/><\/p>\n<p>\u81f3\u6b64\uff0c\u8fd0\u884c\u8fc7\u7a0b\u5c31\u5df2\u7ecf\u5b8c\u6210\u4e86\u3002<\/p>\n<p><strong>\u4e5d\u3001\u603b\u7ed3<\/strong><\/p>\n<p>\u5728\u6b64\u6b21\u7684hadoop\u914d\u7f6e\u8fc7\u7a0b\u9047\u5230\u4e86\u5f88\u591a\u95ee\u9898\uff0chadoop1.x\u548c2.x\u7684\u547d\u4ee4\u8fd8\u662f\u5dee\u522b\u5f88\u5927\u7684\uff0c\u914d\u7f6e\u8fc7\u7a0b\u4e2d\u8fd8\u662f\u4e00\u4e00\u7684\u89e3\u51b3\u4e86\u95ee\u9898\uff0c\u914d\u7f6e\u6210\u529f\u4e86\uff0c\u6536\u83b7\u4e5f\u5f88\u591a\uff0c\u7279\u6b64\u628a\u8fd9\u6b21\u914d\u7f6e\u7684\u7ecf\u9a8c\u5206\u4eab\u51fa\u6765\uff0c\u4e5f\u65b9\u4fbf\u60f3\u8981\u914d\u7f6ehadoop\u73af\u5883\u7684\u5404\u4f4d\u56ed\u53cb\uff0c\u5728\u914d\u7f6e\u7684\u8fc7\u7a0b\u4e2d\u6709\u4efb\u4f55\u95ee\u9898\u90fd\u6b22\u8fce\u8ba8\u8bba\uff0c\u8c22\u8c22\u5404\u4f4d\u56ed\u53cb\u7684\u89c2\u770b~<\/p>\n<p>&nbsp;<\/p>\n<p>\u53c2\u8003\u94fe\u63a5\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"http:\/\/www.linuxidc.com\/Linux\/2015-02\/113487.htm\" target=\"_blank\" rel=\"noopener\">http:\/\/www.linuxidc.com\/Linux\/2015-02\/113487.htm<\/a><\/p>\n<p><a href=\"http:\/\/www.cnblogs.com\/madyina\/p\/3708153.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.cnblogs.com\/madyina\/p\/3708153.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5f15\u8a00 \u5728\u5b8c\u6210\u4e86Storm\u7684\u73af\u5883\u914d\u7f6e\u4e4b\u540e\uff0c\u60f3\u7740\u9f13\u6363\u4e00\u4e0bHadoop\u7684\u5b89\u88c5\uff0c\u7f51\u4e0a\u9762\u7684\u6559\u7a0b\u597d\u591a\uff0c\u4f46\u662f\u6ca1\u6709\u4e00\u4e2a\u7279\u522b\u5207\u5408\u7684\uff0c\u6240\u4ee5\u5728\u5b89\u88c5\u7684\u8fc7\u7a0b\u4e2d\u8fd8\u662f\u9047\u5230\u4e86\u5f88\u591a\u7684\u9ebb\u70e6\uff0c\u5e76\u4e14\u6700\u540e\u4e0d\u65ad\u7684\u67e5\u9605\u8d44\u6599\uff0c\u7ec8\u4e8e\u89e3\u51b3\u4e86\u95ee\u9898\uff0c\u611f\u89c9\u8fd8\u662f\u5f88\u597d\u7684\uff0c\u4e0b\u9762\u5e9f\u8bdd\u4e0d\u591a\u8bf4\uff0c\u5f00\u59cb\u8fdb\u5165\u6b63\u9898\u3002 \u672c\u673a\u5668\u7684\u914d\u7f6e\u73af\u5883\u5982\u4e0b\uff1a Hadoop(2.7.1) Ubuntu Linux(64\u4f4d\u7cfb\u7edf) \u4e0b\u9762\u5206\u4e3a\u51e0\u4e2a\u6b65\u9aa4\u6765\u8be6\u89e3\u914d\u7f6e\u8fc7\u7a0b\u3002 \u4e8c\u3001\u5b89\u88c5ssh\u670d\u52a1 \u8fdb\u5165shell\u547d\u4ee4\uff0c\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff0c\u67e5\u770b\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u597dssh\u670d\u52a1\uff0c\u82e5\u6ca1\u6709\uff0c\u5219\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a sudo apt-get install ssh openssh-server \u5b89\u88c5\u8fc7\u7a0b\u8fd8\u662f\u6bd4\u8f83\u8f7b\u677e\u52a0\u6109\u5feb\u7684\u3002 \u4e09\u3001\u4f7f\u7528ssh\u8fdb\u884c\u65e0\u5bc6\u7801\u9a8c\u8bc1\u767b\u5f55 1.\u521b\u5efassh-key\uff0c\u8fd9\u91cc\u6211\u4eec\u91c7\u7528rsa\u65b9\u5f0f\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a ssh-keygen -t rsa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-872","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts\/872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=872"}],"version-history":[{"count":0,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts\/872\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}