After start-dfs.sh
, I can navigate to http://localhost:9870
. The NameNode seems to be running just fine.
Then I click on "Utilities -> Browse the file system" and I get this prompted in the web browser:
Failed to retrieve data from /webhdfs/v1/?op=LISTSTATUS: Server Error
Digging into the logfile ($HADOOP_HOME/logs/hadoop-xxx-namenode-xxx.log
), I find this:
2018-11-30 16:47:25,097 WARN org.eclipse.jetty.servlet.ServletHandler: Error for /webhdfs/v1/
java.lang.NoClassDefFoundError: javax/activation/DataSource
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.(RuntimeBuiltinLeafInfoImpl.java:457)
at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.(RuntimeTypeInfoSetImpl.java:65)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:133)
So a class is missing. Why is this and how do I fix the problem?