You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/05/02 13:39:45 UTC

[GitHub] [incubator-seatunnel] ddfeiyu opened a new issue, #1784: [Bug] [Module Name] Bug title

ddfeiyu opened a new issue, #1784:
URL: https://github.com/apache/incubator-seatunnel/issues/1784

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   NoClassDefFoundError occurs when submitting a flink batch task
   
   ### SeaTunnel Version
   
   2.1.0-release
   
   ### SeaTunnel Config
   
   ```conf
   #
   # Licensed to the Apache Software Foundation (ASF) under one or more
   # contributor license agreements.  See the NOTICE file distributed with
   # this work for additional information regarding copyright ownership.
   # The ASF licenses this file to You under the Apache License, Version 2.0
   # (the "License"); you may not use this file except in compliance with
   # the License.  You may obtain a copy of the License at
   #
   #     http://www.apache.org/licenses/LICENSE-2.0
   #
   # Unless required by applicable law or agreed to in writing, software
   # distributed under the License is distributed on an "AS IS" BASIS,
   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   # See the License for the specific language governing permissions and
   # limitations under the License.
   #
   
   ######
   ###### This config file is a demonstration of batch processing in SeaTunnel config
   ######
   
   env {
     # You can set flink configuration here
     execution.parallelism = 1
   }
   
   source {
     # This is a example input plugin **only for test and demonstrate the feature input plugin**
     FileSource {
       path = "hdfs://master:9000/output/text"
       format.type = "text"
       schema = "string"
       result_table_name = "test"
     }
   
     # If you would like to get more information about how to configure seatunnel and see full list of input plugins,
     # please go to https://seatunnel.apache.org/docs/flink/configuration/source-plugins/Fake
   }
   
   transform {
     Sql {
       sql = "select * from test"
     }
   
     # If you would like to get more information about how to configure seatunnel and see full list of filter plugins,
     # please go to https://seatunnel.apache.org/docs/flink/configuration/transform-plugins/Sql
   }
   
   sink {
     # choose stdout output plugin to output data to console
     ConsoleSink {
     }
   
     # If you would like to get more information about how to configure seatunnel and see full list of output plugins,
     # please go to https://seatunnel.apache.org/docs/flink/configuration/sink-plugins/Console
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-flink.sh --config ./config/flink.batch.conf
   ```
   
   
   ### Error Exception
   
   ```log
   [INFO]  Loading config file: ./config/flink.batch.confjava.lang.NoClassDefFoundError: org/apache/flink/table/api/bridge/java/BatchTableEnvironment
   	at org.apache.seatunnel.flink.FlinkEnvironment.createBatchTableEnvironment(FlinkEnvironment.java:170)
   	at org.apache.seatunnel.flink.FlinkEnvironment.prepare(FlinkEnvironment.java:85)
   	at org.apache.seatunnel.flink.FlinkEnvironment.prepare(FlinkEnvironment.java:44)
   	at org.apache.seatunnel.config.ConfigBuilder.createEnv(ConfigBuilder.java:203)
   	at org.apache.seatunnel.config.ConfigBuilder.<init>(ConfigBuilder.java:67)
   	at org.apache.seatunnel.Seatunnel.entryPoint(Seatunnel.java:96)
   	at org.apache.seatunnel.Seatunnel.run(Seatunnel.java:63)
   	at org.apache.seatunnel.SeatunnelFlink.main(SeatunnelFlink.java:29)
   	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.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:355)
   	at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:222)
   	at org.apache.flink.client.ClientUtils.executeProgram(ClientUtils.java:114)
   	at org.apache.flink.client.cli.CliFrontend.executeProgram(CliFrontend.java:812)
   	at org.apache.flink.client.cli.CliFrontend.run(CliFrontend.java:246)
   	at org.apache.flink.client.cli.CliFrontend.parseAndRun(CliFrontend.java:1054)
   	at org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:1132)
   	at org.apache.flink.runtime.security.contexts.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:28)
   	at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1132)
   Caused by: java.lang.ClassNotFoundException: org.apache.flink.table.api.bridge.java.BatchTableEnvironment
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   	at org.apache.flink.util.FlinkUserCodeClassLoader.loadClassWithoutExceptionHandling(FlinkUserCodeClassLoader.java:64)
   	at org.apache.flink.util.ChildFirstClassLoader.loadClassWithoutExceptionHandling(ChildFirstClassLoader.java:65)
   	at org.apache.flink.util.FlinkUserCodeClassLoader.loadClass(FlinkUserCodeClassLoader.java:48)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   	... 21 more
   ```
   
   
   ### Flink or Spark Version
   
   flink v1.13.6
   
   ### Java or Scala Version
   
   java 1.8.0_311
   scala 2.11.8
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org