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/09/20 02:16:45 UTC

[GitHub] [incubator-seatunnel] EricJoy2048 opened a new issue, #2799: [Bug] [Connector-V2] Hive Source Connector read text table error.

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

   ### 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
   
   The test data can be found in https://github.com/apache/incubator-seatunnel/issues/2793
   
   The hive table schema like this:
   
   <img width="717" alt="image" src="https://user-images.githubusercontent.com/32193458/191150318-7b358dc0-2180-4f45-ad98-5b72068b6b70.png">
   
   the job config file like this:
   
   ```
   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**
   
     Hive {
       table_name = "test_hive.test_hive_source"
       metastore_uri = "thrift://xxxx:9083"
     }
   
     # 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
   }
   
   
   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
   }
   ```
   
   
   ### SeaTunnel Version
   
   dev
   
   ### SeaTunnel Config
   
   ```conf
   dev
   ```
   
   
   ### Running Command
   
   ```shell
   sh start-seatunnel-flink-connector-v2.sh --config ../config/flink_hive_to_console.conf
   ```
   
   
   ### Error Exception
   
   ```log
   The program finished with the following exception:
   
   org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: Only support [text parquet orc] file now
           at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:366)
           at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:219)
           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 java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.Subject.doAs(Subject.java:422)
           at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1692)
           at org.apache.flink.runtime.security.contexts.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
           at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1132)
   Caused by: java.lang.RuntimeException: Only support [text parquet orc] file now
           at org.apache.seatunnel.connectors.seatunnel.hive.source.HiveSource.prepare(HiveSource.java:70)
           at org.apache.seatunnel.core.starter.flink.execution.SourceExecuteProcessor.initializePlugins(SourceExecuteProcessor.java:113)
           at org.apache.seatunnel.core.starter.flink.execution.AbstractPluginExecuteProcessor.<init>(AbstractPluginExecuteProcessor.java:57)
           at org.apache.seatunnel.core.starter.flink.execution.SourceExecuteProcessor.<init>(SourceExecuteProcessor.java:58)
           at org.apache.seatunnel.core.starter.flink.execution.FlinkExecution.<init>(FlinkExecution.java:59)
           at org.apache.seatunnel.core.starter.flink.command.FlinkApiTaskExecuteCommand.execute(FlinkApiTaskExecuteCommand.java:53)
           at org.apache.seatunnel.core.starter.Seatunnel.run(Seatunnel.java:40)
           at org.apache.seatunnel.core.starter.flink.SeatunnelFlink.main(SeatunnelFlink.java:34)
           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:349)
           ... 11 more
   ```
   
   
   ### Flink or Spark Version
   
   Flink Version: 1.12.7, Commit ID: 88d9950
   
   ### Java or Scala Version
   
   JDK 1.8
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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


[GitHub] [incubator-seatunnel] EricJoy2048 commented on issue #2799: [Bug] [Connector-V2] Hive Source Connector read text table error.

Posted by GitBox <gi...@apache.org>.
EricJoy2048 commented on issue #2799:
URL: https://github.com/apache/incubator-seatunnel/issues/2799#issuecomment-1251755983

   https://github.com/apache/incubator-seatunnel/pull/2797


-- 
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

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


[GitHub] [incubator-seatunnel] CalvinKirs closed issue #2799: [Bug] [Connector-V2] Hive Source Connector read text table error.

Posted by GitBox <gi...@apache.org>.
CalvinKirs closed issue #2799: [Bug] [Connector-V2] Hive Source Connector read text table error.
URL: https://github.com/apache/incubator-seatunnel/issues/2799


-- 
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

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