search

Home  >  Q&A  >  body text

hadoop2.7.1 - hadoop+zookeeper+hbase集群后,通过javaApi调用hbase进行增删改查时报错,麻烦懂的帮我看下!

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">

PHP中文网PHP中文网2811 days ago594

reply all(2)I'll reply

  • 高洛峰

    高洛峰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?

    reply
    0
  • 高洛峰

    高洛峰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

    reply
    0
  • Cancelreply