在Keberos下在纱线上使用spark时,效果很好,但是当使用zeppelin时,遇到一个问题,我使用hdp2.3.4以及spark2.1和zeppelin0.73
谁能说出原因
org / apache / hadoop / hdfs / DFSClient.getQuotaUsage(Ljava / lang / String;)Lorg / apache / hadoop / fs / QuotaUsage
ERROR [2018-06-21 18:12:23,289] ({pool-2-thread-2} Utils.java[invokeMethod]:40) -
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.zeppelin.spark.Utils.invokeMethod(Utils.java:38)
at org.apache.zeppelin.spark.Utils.invokeMethod(Utils.java:33)
at org.apache.zeppelin.spark.SparkInterpreter.createSparkSession(SparkInterpreter.java:368)
at org.apache.zeppelin.spark.SparkInterpreter.getSparkSession(SparkInterpreter.java:233)
at org.apache.zeppelin.spark.SparkInterpreter.open(SparkInterpreter.java:841)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:70)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:491)
at org.apache.zeppelin.scheduler.Job.run(Job.java:175)
at org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.VerifyError: Bad return type
Exception Details:
Location:
org/apache/hadoop/hdfs/DFSClient.getQuotaUsage(Ljava/lang/String;)Lorg/apache/hadoop/fs/QuotaUsage; @97: areturn
Reason:
Type 'org/apache/hadoop/fs/ContentSummary' (current frame, stack[0]) is not assignable to 'org/apache/hadoop/fs/QuotaUsage' (from method signature)
Current Frame:
bci: @97
flags: { }
locals: { 'org/apache/hadoop/hdfs/DFSClient', 'java/lang/String', 'org/apache/htrace/TraceScope', 'org/apache/hadoop/ipc/RemoteException', 'java/io/IOException', 'org/apache/hadoop/fs/ContentSummary' }
stack: { 'org/apache/hadoop/fs/ContentSummary' }
Bytecode:
0x0000000: 2ab6 00ea 2a13 024f 2bb6 00b5 4d2a b400
0x0000010: 432b b902 5002 004e 2cb6 00b7 2db0 4e2d
0x0000020: 07bd 00cf 5903 1300 d153 5904 1300 e853
0x0000030: 5905 1300 e953 5906 1302 5153 b600 d23a
0x0000040: 0419 04c1 0251 9900 1cb2 001c 1302 52b9
0x0000050: 001e 0200 2a2b b602 533a 052c b600 b719
0x0000060: 05b0 1904 bf3a 062c b600 b719 06bf
Exception Handler Table: