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
Isn’t the error very clear?
Null pointer problem, we need to look at why it is a null object?
高洛峰2017-04-17 17:46:36
I don’t know the actual component version. According to the error report, not implemented by the distributedfilesystem filesystem implementation, it is judged that the hdfs object has not been initialized successfully. According to personal experience, sometimes the configuration of namenode in xml is invalid, that is to say, In the configuration of hdfs, conf.set("fs.defaultFS", namenode). Then try again