Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-943

java.lang.IllegalAccessError occur at run time when set default "bsp.user.name"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.4
    • Fix Version/s: 0.7.0
    • Component/s: yarn
    • Labels:
      None
    • Environment:

      3 clusters on Amazon EMR

      Description

      java.lang.IllegalAccessError occur at run time when set default "bsp.user.name".

      Error message is as below.

      Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.hama.bsp.BSPJobClient.getUnixUserName()Ljava/lang/String; from class org.apache.hama.bsp.YARNBSPJobClient
      	at org.apache.hama.bsp.YARNBSPJobClient.launchJob(YARNBSPJobClient.java:153)
      	at org.apache.hama.bsp.BSPJobClient.submitJobInternal(BSPJobClient.java:400)
      	at org.apache.hama.bsp.YARNBSPJob.submit(YARNBSPJob.java:79)
      	at org.apache.hama.bsp.YARNBSPJob.waitForCompletion(YARNBSPJob.java:103)
      	at org.apache.hama.bsp.YarnSerializePrinting.main(YarnSerializePrinting.java:71)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.hama.util.RunJar.main(RunJar.java:146)
      

      I think the reason why this error was occurred is I accessed directly parent class method "getUnixUserName()" which is not protected or public.
      So I'll fix this issue soon.

        Attachments

        1. HAMA-943.patch
          1 kB
          Minho Kim

          Activity

            People

            • Assignee:
              conquestor Minho Kim
              Reporter:
              conquestor Minho Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: