<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>办法 on 庞玉栋个人博客</title><link>https://pangyd.com/tags/%E5%8A%9E%E6%B3%95/</link><description>Recent content in 办法 on 庞玉栋个人博客</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 12 Aug 2019 10:16:39 +0800</lastBuildDate><atom:link href="https://pangyd.com/tags/%E5%8A%9E%E6%B3%95/index.xml" rel="self" type="application/rss+xml"/><item><title>Hadoop 当中 Datanode节点不启动的解决办法</title><link>https://pangyd.com/post/214-hadoop-datanode/</link><pubDate>Sat, 06 Jul 2019 08:35:41 +0800</pubDate><guid>https://pangyd.com/post/214-hadoop-datanode/</guid><description>&lt;p>&lt;br>&lt;/p>&lt;p>&lt;/p>&lt;p>&lt;/p>&lt;pre lay-lang="HTML" class="layui-code" skin="notepad">2019-03-28 08:31:49,347 WARN org.apache.hadoop.hdfs.server.common.Storage: Failed to add storage directory [DISK]file:/opt/hadoop-repo/data/
java.io.IOException: Incompatible clusterIDs in /opt/hadoop-repo/data: namenode clusterID = CID-50b8afea-9e44-4363-970d-4a40917d968a; datanode clusterID = CID-865e7596-297e-4d6a-a997-afec3be712e9
	at org.apache.hadoop.hdfs.server.datanode.DataStorage.doTransition(DataStorage.java:777)
	at org.apache.hadoop.hdfs.server.datanode.DataStorage.loadStorageDirectory(DataStorage.java:300)
	at org.apache.hadoop.hdfs.server.datanode.DataStorage.loadDataStorage(DataStorage.java:416)
	at org.apache.hadoop.hdfs.server.datanode.DataStorage.addStorageLocations(DataStorage.java:395)
	at org.apache.hadoop.hdfs.server.datanode.DataStorage.recoverTransitionRead(DataStorage.java:573)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.initStorage(DataNode.java:1393)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.initBlockPool(DataNode.java:1358)
	at org.apache.hadoop.hdfs.server.datanode.BPOfferService.verifyAndSetNamespaceInfo(BPOfferService.java:313)
	at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.connectToNNAndHandshake(BPServiceActor.java:216)
	at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:637)
	at java.lang.Thread.run(Thread.java:748)&lt;/pre>&lt;p>直接删除数据节点DataNode的current文件夹，即可启动&lt;/p>&lt;p>&lt;/p>&lt;p>&lt;/p></description></item><item><title>java.lang.StackOverflowError 异常解决办法</title><link>https://pangyd.com/post/67-java-lang-stackoverflowerror/</link><pubDate>Sat, 19 Aug 2017 19:43:46 +0800</pubDate><guid>https://pangyd.com/post/67-java-lang-stackoverflowerror/</guid><description>&lt;p style="text-align: center">&amp;nbsp;这个错误是&amp;nbsp;相互引用,导致连锁&amp;nbsp;栈溢出,不知道那块循环没有停下来 &amp;nbsp;所以进程就一直在跑&lt;/p>&lt;p style="text-align: center">我一直在找到底哪的循环没停下来&amp;nbsp;&amp;nbsp;然后还是没找到。直接调用没错误&amp;nbsp;就是加表格上就出错&amp;nbsp;别的窗口都没错误就是这个论文查询有错误&lt;/p>&lt;p style="text-align: center">&amp;nbsp;&amp;nbsp;到最后发现就是接口调用的时候写错单词了&lt;img src="https://pangyd.com/uploads/2017/08/44ddb3ea33fe01f7.gif" alt="[微笑]">&amp;nbsp;心里十万个草泥马奔腾而过&lt;/p>&lt;p style="text-align: center">这个错误的官方解释是：&lt;/p>&lt;p style="text-align: center">递归调用没有明确的结束&lt;/p>&lt;p style="text-align: center">仔细查看自己的递归调用程序&lt;/p>&lt;p style="text-align: center">举例：递归没有边界条件或者递归的边界条件永远不能达到&lt;/p>&lt;p style="text-align: center">所以你就找找你哪里少写了几句 实在不行就重写&lt;/p>&lt;p style="text-align: center">&lt;b>结论：没有找不到的Bug 只有不努力没有耐心的人&lt;/b>&lt;/p></description></item><item><title>在有main函数的前提下 eclipse找不到主类 解决办法</title><link>https://pangyd.com/post/56-main-eclipse/</link><pubDate>Sun, 13 Aug 2017 21:49:23 +0800</pubDate><guid>https://pangyd.com/post/56-main-eclipse/</guid><description>&lt;p>&lt;br>&lt;/p>&lt;p>&lt;span>&lt;b>有时候在测试类的时候&lt;a target="_self" href="https://github.com/As-before">eclipse&lt;/a>会莫名奇妙的提示找不到主类 &amp;nbsp; 接下来分别有几种解决办法&lt;/b>&lt;/span>&lt;/p>&lt;p>&lt;span>&lt;b>&lt;br>&lt;/b>&lt;/span>&lt;/p>&lt;p>&lt;b>1.&lt;/b>在项目上右击&amp;gt; Builder Path -&amp;gt; Configure Build Path -&amp;gt; 选择Source面板 再点Add Folder, 把源代码所在的包路径的上层目录加进来，而且如果你是把两个类写在一个文件里的话,你在右键选择Run As Java Appication 的时候,要把光标至于包括main方法的类上&lt;/p>&lt;p>2复制粘贴带main函数的类 创建一个新的类把代码复制进去 即可ok&lt;/p>&lt;p>3 直接重建Java项目&lt;/p>&lt;p>如果还是不行 在命令管理器上测试java是否正常运行 &amp;nbsp;如果没有看一下环境变量是否错误 或者重新安装&lt;/p></description></item><item><title>The project: Java which is referenced by the classpath, does not exist. 错误处理办法</title><link>https://pangyd.com/post/53-the-project-java-which-is-referenced-by-the-clas/</link><pubDate>Sat, 12 Aug 2017 21:18:29 +0800</pubDate><guid>https://pangyd.com/post/53-the-project-java-which-is-referenced-by-the-clas/</guid><description>&lt;pre id="best-content-1737161415" accuse="aContent" class="best-text mb-10">在property-java build path-&amp;gt; project s tab把依赖去掉&lt;/pre></description></item></channel></rss>