java - Ubuntu: datanode won't start -
java - Ubuntu: datanode won't start -
i have installed hadoop on ubuntu 14. have install next how-to:
http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/#java-io-ioexception-incompatible-namespaceids
but not first hadoop install.
the problem that: datanode don't start. log of datanode.log:
2014-06-22 18:51:34,438 info org.apache.hadoop.metrics2.impl.metricssystemimpl: datanode metrics scheme started 2014-06-22 18:51:35,640 info org.apache.hadoop.metrics2.impl.metricssourceadapter: mbean source ugi registered. 2014-06-22 18:51:35,719 warn org.apache.hadoop.metrics2.impl.metricssystemimpl: source name ugi exists! 2014-06-22 18:51:37,078 error org.apache.hadoop.hdfs.server.datanode.datanode: java.net.unknownhostexception: ubuntu: ubuntu @ java.net.inetaddress.getlocalhost(inetaddress.java:1402) @ org.apache.hadoop.security.securityutil.getlocalhostname(securityutil.java:252) @ org.apache.hadoop.security.securityutil.login(securityutil.java:270) @ org.apache.hadoop.hdfs.server.datanode.datanode.<init>(datanode.java:291) @ org.apache.hadoop.hdfs.server.datanode.datanode.makeinstance(datanode.java:1582) @ org.apache.hadoop.hdfs.server.datanode.datanode.instantiatedatanode(datanode.java:1521) @ org.apache.hadoop.hdfs.server.datanode.datanode.createdatanode(datanode.java:1539) @ org.apache.hadoop.hdfs.server.datanode.datanode.securemain(datanode.java:1665) @ org.apache.hadoop.hdfs.server.datanode.datanode.main(datanode.java:1682) 2014-06-22 18:51:37,102 info org.apache.hadoop.hdfs.server.datanode.datanode: shutdown_msg: /************************************************************ shutdown_msg: shutting downwards datanode @ java.net.unknownhostexception: ubuntu: ubuntu ************************************************************/
i have tried format namenode without result.
sometime in console read message:
sudo: unable resolve host ubuntu
what message?
what problem ? , how can solve it?
update /etc/hosts
127.0.0.1 ubuntu
and /etc/hostname
ubuntu
restart pc after this.
java ubuntu hadoop
Comments
Post a Comment