Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.1.0
-
None
-
None
Description
If you try and run Giraph compiled for YARN but have not specified any external Zookeeper settings in your Hadoop configuration files you'll receive the following error:
Exception in thread "main" java.lang.NullPointerException at org.apache.giraph.yarn.GiraphYarnClient.checkJobLocalZooKeeperSupported(GiraphYarnClient.java:460) at org.apache.giraph.yarn.GiraphYarnClient.run(GiraphYarnClient.java:116) at org.apache.giraph.GiraphRunner.run(GiraphRunner.java:96) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84) at org.apache.giraph.GiraphRunner.main(GiraphRunner.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
When actually in the situations where the NPE is hit Giraph is supposed to be throwing an informative error message about the need for an external Zookeeper configuration.
This looks to be a trivial fix for which I will attach a proposed patch
Attachments
Attachments
Issue Links
- is duplicated by
-
GIRAPH-805 getZookeeperList can return null
-
- Resolved
-
- is related to
-
GIRAPH-805 getZookeeperList can return null
-
- Resolved
-