Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException: org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:549) #93

Open
abhishekkarigar opened this issue Aug 7, 2022 · 1 comment

Comments

@abhishekkarigar
Copy link

{"name":"org.apache.hadoop.hdfs.server.namenode.NameNode","time":1659856897268,"date":"2022-08-07 07:21:37,268","level":"INFO","thread":"main","message":"registered UNIX signal handlers for [TERM, HUP, INT]"} {"name":"org.apache.hadoop.hdfs.server.namenode.NameNode","time":1659856897390,"date":"2022-08-07 07:21:37,390","level":"INFO","thread":"main","message":"createNameNode [-bootstrapStandby, -nonInteractive]"} {"name":"org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby","time":1659856897795,"date":"2022-08-07 07:21:37,795","level":"INFO","thread":"main","message":"Found nn: apache-hadoop-namenode-0.apache-hadoop-namenode.nom-backend.svc.cluster.local, ipc: hdfs:8020"} {"name":"org.apache.hadoop.hdfs.server.namenode.NameNode","time":1659856897796,"date":"2022-08-07 07:21:37,796","level":"ERROR","thread":"main","message":"Failed to start namenode.","exceptionclass":"java.io.IOException","stack":["java.io.IOException: java.lang.NullPointerException","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:549)","\tat org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1741)","\tat org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1834)","Caused by: java.lang.NullPointerException","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.parseConfAndFindOtherNN(BootstrapStandby.java:435)","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:114)","\tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:81)","\tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:95)","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:544)","\t... 2 more"]} {"name":"org.apache.hadoop.util.ExitUtil","time":1659856897801,"date":"2022-08-07 07:21:37,801","level":"INFO","thread":"main","message":"Exiting with status 1: java.io.IOException: java.lang.NullPointerException"}

{"name":"org.apache.hadoop.hdfs.server.namenode.NameNode","time":1659856897804,"date":"2022-08-07 07:21:37,804","level":"INFO","thread":"shutdown-hook-0","message":"SHUTDOWN_MSG: \n/{}\nSHUTDOWN_MSG: Shutting down NameNode at apache-hadoop-namenode-1.apache-hadoop-namenode.nom-backend.svc.cluster.local/\n{}/"}

@abhishekkarigar
Copy link
Author

{"name":"org.apache.hadoop.hdfs.server.namenode.NameNode","time":1659856897268,"date":"2022-08-07 07:21:37,268","level":"INFO","thread":"main","message":"registered UNIX signal handlers for [TERM, HUP, INT]"} {"name":"org.apache.hadoop.hdfs.server.namenode.NameNode","time":1659856897390,"date":"2022-08-07 07:21:37,390","level":"INFO","thread":"main","message":"createNameNode [-bootstrapStandby, -nonInteractive]"} {"name":"org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby","time":1659856897795,"date":"2022-08-07 07:21:37,795","level":"INFO","thread":"main","message":"Found nn: apache-hadoop-namenode-0.apache-hadoop-namenode.nom-backend.svc.cluster.local, ipc: hdfs:8020"} {"name":"org.apache.hadoop.hdfs.server.namenode.NameNode","time":1659856897796,"date":"2022-08-07 07:21:37,796","level":"ERROR","thread":"main","message":"Failed to start namenode.","exceptionclass":"java.io.IOException","stack":["java.io.IOException: java.lang.NullPointerException","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:549)","\tat org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1741)","\tat org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1834)","Caused by: java.lang.NullPointerException","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.parseConfAndFindOtherNN(BootstrapStandby.java:435)","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:114)","\tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:81)","\tat org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:95)","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:544)","\t... 2 more"]} {"name":"org.apache.hadoop.util.ExitUtil","time":1659856897801,"date":"2022-08-07 07:21:37,801","level":"INFO","thread":"main","message":"Exiting with status 1: java.io.IOException: java.lang.NullPointerException"}

{"name":"org.apache.hadoop.hdfs.server.namenode.NameNode","time":1659856897804,"date":"2022-08-07 07:21:37,804","level":"INFO","thread":"shutdown-hook-0","message":"SHUTDOWN_MSG: \n/{}\nSHUTDOWN_MSG: Shutting down NameNode at apache-hadoop-namenode-1.apache-hadoop-namenode.nom-backend.svc.cluster.local/\n{}/"}

$HADOOP_HOME/bin/hdfs --config $HADOOP_CONF_DIR namenode -bootstrapStandby -nonInteractive is the command executed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant