Skip to content

Instantly share code, notes, and snippets.

@myui
Last active August 29, 2015 14:04
Show Gist options
  • Save myui/04b266eefb781ffe177e to your computer and use it in GitHub Desktop.
Save myui/04b266eefb781ffe177e to your computer and use it in GitHub Desktop.

AMConfiguration should be remained public because it is called by Hive in org.apache.hadoop.hive.ql.exec.tez.TezSessionState.

The following exception caused when using Tez-trunk on Hive 0.13.1/Hadoop 2.4.1.

Exception in thread "main" java.lang.IllegalAccessError: tried to access class org.apache.tez.client.AMConfiguration fro
m class org.apache.hadoop.hive.ql.exec.tez.TezSessionState
        at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:184)
        at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:123)
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:355)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)
        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:601)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:212)