Uploaded image for project: 'Giraph (Retired)'
  1. Giraph (Retired)
  2. GIRAPH-795

NPE when trying to run Giraph YARN when no Zookeeper configuration is supplied

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.1.0
    • 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

        1. GIRAPH-795.patch
          1 kB
          Rob Vesse

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rvesse Rob Vesse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: