Heim > Fragen und Antworten > Hauptteil
core-site.xml
<IMG src="file:///C:\Users\Administrator\AppData\Roaming\feiq\RichOle\1629161567.bmp">
hbase-site.xml
<IMG src="file:///C:\Users\Administrator\AppData\Roaming\feiq\RichOle\3594932205.bmp">
我的代码
<IMG src="file:///C:\Users\Administrator\AppData\Roaming\feiq\RichOle\3014879666.bmp">
<IMG src="file:///C:\Users\Administrator\AppData\Roaming\feiq\RichOle\1325124368.bmp">
报错信息
<IMG src="file:///C:\Users\Administrator\AppData\Roaming\feiq\RichOle\651949064.bmp">
<IMG src="file:///C:\Users\Administrator\AppData\Roaming\feiq\RichOle\3312510756.bmp">
高洛峰2017-04-17 17:46:36
不清楚实际组件版本,根据报错,not implemented by the distributedfilesystem filesystem implementation,判断没有初始化成功hdfs的对象,根据个人经验,某些时候xml里面关于namenode的配置是无效的,也就是说,在hdfs的configuration里面,conf.set("fs.defaultFS", namenode)。然后再试试