Window下使用eclipse连接hadoop报错(二)
来源:互联网 发布:最优化问题求解 编辑:程序博客网 时间:2024/06/05 08:31
报错
15/05/10 14:12:11 INFOip.Client: Retrying connect to server: hadoop/192.168.110:9000.Already tried 0time(s); maxRet
15/05/10 14:12:11 INFOip.Client: Retrying connect to server: hadoop/192.168.110:9000.Already tried 1time(s); maxRet
15/05/10 14:12:11 INFOip.Client: Retrying connect to server: hadoop/192.168.110:9000.Already tried 2time(s); maxRet
可能原因1)网络原因:关闭防火墙—我就是在这里栽跟头了
永久关闭防火墙 关闭: chkconfigiptables off
即时生效,重启后复原 关闭: service iptables stop
2)参数原因:(网上说法)
原因是:hadoop默认配置是把一些tmp文件放在/tmp目录下,重启系统后,tmp目录下的东西被清除,所以报错 解决方法:在conf/core-site.xml(0.19.2版本的为conf/hadoop-site.xml)中增加以下内容
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/newdir/hadoop/tmp</value>
<description>Abase for other temporary directories</description>
</property>
重启hadoop后,格式化namenode即可
报错Exceptionin thread "main"java.io.FileNotFoundException: File does not exist: /hello atorg.apache.hadoop.hdfs.DFSClient$DFSInputStream.fetchLocatedBlocks(DFSClient.java:2006)
atorg.apache.hadoop.hdfs.DFSClient$DFSInputStream.openInfo(DFSClient.java:1975)
atorg.apache.hadoop.hdfs.DFSClient$DFSInputStream.<init>(DFSClient.java:1967)
atorg.apache.hadoop.hdfs.DFSClient.open(DFSClient.java:735)
atorg.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:165)
atorg.apache.hadoop.fs.FileSystem.open(FileSystem.java:436)
atorg.apache.hadoop.fs.FsUrlConnection.connect(FsUrlConnection.java:46)
atorg.apache.hadoop.fs.FsUrlConnection.getInputStream(FsUrlConnection.java:56)
atjava.net.URL.openStream(URL.java:1037)
athdfs.App1.main(App1.java:20)
问题原因:HDFS根目录下没有hello文件
解决方法新建hello文件上传到HDFS
touch hello
vi hello
hello you
hello me
hadoop fs –put ./hello /
重新连接成功问题解决
- Window下使用eclipse连接hadoop报错(二)
- Window下使用eclipse连接hadoop报错
- win7使用eclipse连接hadoop集群,运行mapreduce报错之:org.apache.hadoop.security.AccessControlException
- win7下使用eclipse远程连接hadoop
- 【甘道夫】win7环境下eclipse连接hadoop报错简单解决:重编译FileUtil.java
- window下使用doc连接mysql插入中文报错解决
- 使用eclipse连接hadoop
- window下myeclipse2014下连接hadoop集群
- eclipse window下连接Hadoop2.0报错:local host is: "win/127.0.0.1"; destination host is: "10.2.3.1":50070;
- window下eclipse配制hadoop插件 (四)
- Windows下Eclipse连接hadoop
- Windows下Eclipse连接hadoop
- Windows下Eclipse连接hadoop
- Windows下Eclipse连接hadoop
- win7下eclipse连接hadoop
- Windows下Eclipse连接hadoop
- windows下eclipse连接hadoop
- Windows下Eclipse连接hadoop
- 斐波那契的两种实现方法
- thinkphp verify验证码使用
- android.view.InflateException: Binary XML file line #7: Error inflating class
- 数据库的最简单实现
- c 语言常用基础语句
- Window下使用eclipse连接hadoop报错(二)
- nyoj题目277:车牌号
- 网页上不带下载链接但可播放的歌曲可以如何下载呢?
- eclipse3.X集成maven3.0.4插件详细图解(安装、配置)
- From Apprentice To Artisan 01
- Two ways to create a new thread of execution
- 分数类中的运算符重载(续)
- Android之Android apk动态加载机制的研究
- 设计4个线程,其中两个线程每次对j增加1,另外两个线程对j每次减少1。写出程序。